blob: 26aee41cfcc843b378f576686357f875e6e6d31d [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]
Woyten043ce902020-03-13 17:15:45 +01009alloc = ["libtock-core/alloc"]
Woyten9d9edc92020-03-17 22:58:07 +010010custom_panic_handler = ["libtock-core/custom_panic_handler"]
11custom_alloc_error_handler = ["libtock-core/custom_alloc_error_handler"]
torfmasterf457e002020-03-22 13:27:51 +010012__internal_disable_gpio_in_integration_test = []
Woytend4768832020-02-18 17:24:26 +010013
Amit Aryeh Levy83fecc22017-05-03 02:50:25 -050014[dependencies]
Woyten2c1a7592019-11-11 11:50:31 +010015core = { package = "async-support", path = "async-support" }
Woytena3d10cb2020-03-13 16:00:47 +010016libtock-core = { path = "core" }
torfmasterb06f6372019-12-17 09:20:48 +010017libtock_codegen = { path = "codegen" }
Alistair Francisc1ba2552020-02-21 16:48:39 -080018futures = { version = "0.3.1", default-features = false, features = ["unstable", "cfg-target-has-atomic"] }
Woyten012fe572018-08-24 21:46:51 +020019
Philipp Vollmer349417d2018-02-24 17:29:19 +010020[dev-dependencies]
Woyten012fe572018-08-24 21:46:51 +020021corepack = { version = "0.4.0", default-features = false, features = ["alloc"] }
Johnathan Van Whye4883342019-08-08 17:28:32 -070022# We pin the serde version because newer serde versions may not be compatible
23# with the nightly toolchain used by libtock-rs.
24serde = { version = "=1.0.84", default-features = false, features = ["derive"] }
Philipp Vollmer349417d2018-02-24 17:29:19 +010025
Woytend4768832020-02-18 17:24:26 +010026[[example]]
27name = "alloc_error"
Woyten964bb722020-03-18 20:25:58 +010028path = "examples-features/alloc_error.rs"
29required-features = ["alloc", "custom_alloc_error_handler"]
Woytend4768832020-02-18 17:24:26 +010030
31[[example]]
32name = "ble_scanning"
Woyten964bb722020-03-18 20:25:58 +010033path = "examples-features/ble_scanning.rs"
Woytend4768832020-02-18 17:24:26 +010034required-features = ["alloc"]
35
36[[example]]
Woyten556a45c2020-02-16 22:49:00 +010037name = "libtock_test"
Woyten964bb722020-03-18 20:25:58 +010038path = "examples-features/libtock_test.rs"
Woytend4768832020-02-18 17:24:26 +010039required-features = ["alloc"]
40
41[[example]]
Woyten964bb722020-03-18 20:25:58 +010042name = "panic"
43path = "examples-features/panic.rs"
44required-features = ["custom_panic_handler"]
45
46[[example]]
Woytend4768832020-02-18 17:24:26 +010047name = "simple_ble"
Woyten964bb722020-03-18 20:25:58 +010048path = "examples-features/simple_ble.rs"
Woytend4768832020-02-18 17:24:26 +010049required-features = ["alloc"]
50
Amit Aryeh Levy83fecc22017-05-03 02:50:25 -050051[profile.dev]
52panic = "abort"
53lto = true
Bryan Cantrill3865ebe2020-03-30 16:34:12 -070054debug = true
Amit Aryeh Levy83fecc22017-05-03 02:50:25 -050055
56[profile.release]
57panic = "abort"
Amit Aryeh Levyd508bde2017-05-03 03:16:45 -050058lto = true
Bryan Cantrill3865ebe2020-03-30 16:34:12 -070059debug = true
torfmaster7a185882019-12-15 13:29:19 +010060
61[workspace]
62members = [
63 "async-support",
torfmasterb06f6372019-12-17 09:20:48 +010064 "codegen",
torfmasterd971c7d2020-02-28 16:43:26 +010065 "core",
66 "test-runner"
torfmaster3d605242019-12-16 22:36:39 +010067]