blob: 5109187900ff36e0e66fe2ab3d2f73d6f691093a [file] [log] [blame]
Amit Aryeh Levy83fecc22017-05-03 02:50:25 -05001[package]
torfmasterc84685a2019-02-08 19:23:22 +01002name = "libtock"
Woytenc37d4282019-11-15 10:03:32 +01003version = "0.2.0"
Amit Aryeh Levy8ef5d402017-05-03 16:58:48 -04004authors = ["Tock Project Developers <tock-dev@googlegroups.com>"]
Pat Pannuto0dc3e132017-05-11 16:22:12 -04005license = "MIT/Apache-2.0"
Woyten30fc95b2019-01-10 21:09:46 +01006edition = "2018"
Amit Aryeh Levy83fecc22017-05-03 02:50:25 -05007
Woytend4768832020-02-18 17:24:26 +01008[features]
Johnathan Van Whya6c5c9d2020-06-19 15:15:14 -07009alloc = ["libtock_core/alloc"]
10custom_panic_handler = ["libtock_core/custom_panic_handler"]
11custom_alloc_error_handler = ["libtock_core/custom_alloc_error_handler"]
Johnathan Van Why3cbb1142020-08-03 16:24:51 -070012# In the QEMU-emulated HiFive1 target, we do not have connected GPIO pins or a
13# working timer interface. These features allow the test's user to disable these
14# tests in environments where they will not pass.
torfmasterf457e002020-03-22 13:27:51 +010015__internal_disable_gpio_in_integration_test = []
Johnathan Van Why3cbb1142020-08-03 16:24:51 -070016__internal_disable_timer_in_integration_test = []
Woytend4768832020-02-18 17:24:26 +010017
Amit Aryeh Levy83fecc22017-05-03 02:50:25 -050018[dependencies]
Johnathan Van Whya6c5c9d2020-06-19 15:15:14 -070019libtock_core = { path = "core" }
torfmasterb06f6372019-12-17 09:20:48 +010020libtock_codegen = { path = "codegen" }
Alistair Francisc1ba2552020-02-21 16:48:39 -080021futures = { version = "0.3.1", default-features = false, features = ["unstable", "cfg-target-has-atomic"] }
Woyten012fe572018-08-24 21:46:51 +020022
Philipp Vollmer349417d2018-02-24 17:29:19 +010023[dev-dependencies]
Woyten012fe572018-08-24 21:46:51 +020024corepack = { version = "0.4.0", default-features = false, features = ["alloc"] }
Johnathan Van Whye4883342019-08-08 17:28:32 -070025# We pin the serde version because newer serde versions may not be compatible
26# with the nightly toolchain used by libtock-rs.
Alistair Francisd67a7762020-09-10 18:56:10 -070027serde = { version = "=1.0.114", default-features = false, features = ["derive"] }
Philipp Vollmer349417d2018-02-24 17:29:19 +010028
Woytend4768832020-02-18 17:24:26 +010029[[example]]
30name = "alloc_error"
Woyten964bb722020-03-18 20:25:58 +010031path = "examples-features/alloc_error.rs"
32required-features = ["alloc", "custom_alloc_error_handler"]
Woytend4768832020-02-18 17:24:26 +010033
34[[example]]
35name = "ble_scanning"
Woyten964bb722020-03-18 20:25:58 +010036path = "examples-features/ble_scanning.rs"
Woytend4768832020-02-18 17:24:26 +010037required-features = ["alloc"]
38
39[[example]]
Woyten556a45c2020-02-16 22:49:00 +010040name = "libtock_test"
Woyten964bb722020-03-18 20:25:58 +010041path = "examples-features/libtock_test.rs"
Woytend4768832020-02-18 17:24:26 +010042required-features = ["alloc"]
43
44[[example]]
Woyten964bb722020-03-18 20:25:58 +010045name = "panic"
46path = "examples-features/panic.rs"
47required-features = ["custom_panic_handler"]
48
49[[example]]
Woytend4768832020-02-18 17:24:26 +010050name = "simple_ble"
Woyten964bb722020-03-18 20:25:58 +010051path = "examples-features/simple_ble.rs"
Woytend4768832020-02-18 17:24:26 +010052required-features = ["alloc"]
53
Amit Aryeh Levy83fecc22017-05-03 02:50:25 -050054[profile.dev]
55panic = "abort"
56lto = true
Bryan Cantrill3865ebe2020-03-30 16:34:12 -070057debug = true
Amit Aryeh Levy83fecc22017-05-03 02:50:25 -050058
59[profile.release]
60panic = "abort"
Amit Aryeh Levyd508bde2017-05-03 03:16:45 -050061lto = true
Bryan Cantrill3865ebe2020-03-30 16:34:12 -070062debug = true
torfmaster7a185882019-12-15 13:29:19 +010063
64[workspace]
Johnathan Van Whyc0d2b6f2020-06-15 15:29:54 -070065exclude = [ "tock" ]
torfmaster7a185882019-12-15 13:29:19 +010066members = [
torfmasterb06f6372019-12-17 09:20:48 +010067 "codegen",
torfmasterd971c7d2020-02-28 16:43:26 +010068 "core",
Johnathan Van Why988305c2020-07-08 15:50:45 -070069 "core/platform",
Johnathan Van Whya6c5c9d2020-06-19 15:15:14 -070070 "test_runner",
71 "tools/print_sizes",
torfmaster3d605242019-12-16 22:36:39 +010072]