Amit Aryeh Levy | 83fecc2 | 2017-05-03 02:50:25 -0500 | [diff] [blame] | 1 | [package] |
torfmaster | c84685a | 2019-02-08 19:23:22 +0100 | [diff] [blame] | 2 | name = "libtock" |
Woyten | c37d428 | 2019-11-15 10:03:32 +0100 | [diff] [blame] | 3 | version = "0.2.0" |
Amit Aryeh Levy | 8ef5d40 | 2017-05-03 16:58:48 -0400 | [diff] [blame] | 4 | authors = ["Tock Project Developers <tock-dev@googlegroups.com>"] |
Pat Pannuto | 0dc3e13 | 2017-05-11 16:22:12 -0400 | [diff] [blame] | 5 | license = "MIT/Apache-2.0" |
Woyten | 30fc95b | 2019-01-10 21:09:46 +0100 | [diff] [blame] | 6 | edition = "2018" |
Amit Aryeh Levy | 83fecc2 | 2017-05-03 02:50:25 -0500 | [diff] [blame] | 7 | |
Woyten | d476883 | 2020-02-18 17:24:26 +0100 | [diff] [blame] | 8 | [features] |
Johnathan Van Why | a6c5c9d | 2020-06-19 15:15:14 -0700 | [diff] [blame] | 9 | alloc = ["libtock_core/alloc"] |
| 10 | custom_panic_handler = ["libtock_core/custom_panic_handler"] |
| 11 | custom_alloc_error_handler = ["libtock_core/custom_alloc_error_handler"] |
Johnathan Van Why | 3cbb114 | 2020-08-03 16:24:51 -0700 | [diff] [blame] | 12 | # 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. |
torfmaster | f457e00 | 2020-03-22 13:27:51 +0100 | [diff] [blame] | 15 | __internal_disable_gpio_in_integration_test = [] |
Johnathan Van Why | 3cbb114 | 2020-08-03 16:24:51 -0700 | [diff] [blame] | 16 | __internal_disable_timer_in_integration_test = [] |
Woyten | d476883 | 2020-02-18 17:24:26 +0100 | [diff] [blame] | 17 | |
Amit Aryeh Levy | 83fecc2 | 2017-05-03 02:50:25 -0500 | [diff] [blame] | 18 | [dependencies] |
Johnathan Van Why | a6c5c9d | 2020-06-19 15:15:14 -0700 | [diff] [blame] | 19 | libtock_core = { path = "core" } |
torfmaster | b06f637 | 2019-12-17 09:20:48 +0100 | [diff] [blame] | 20 | libtock_codegen = { path = "codegen" } |
Alistair Francis | c1ba255 | 2020-02-21 16:48:39 -0800 | [diff] [blame] | 21 | futures = { version = "0.3.1", default-features = false, features = ["unstable", "cfg-target-has-atomic"] } |
Woyten | 012fe57 | 2018-08-24 21:46:51 +0200 | [diff] [blame] | 22 | |
Philipp Vollmer | 349417d | 2018-02-24 17:29:19 +0100 | [diff] [blame] | 23 | [dev-dependencies] |
Woyten | 012fe57 | 2018-08-24 21:46:51 +0200 | [diff] [blame] | 24 | corepack = { version = "0.4.0", default-features = false, features = ["alloc"] } |
Johnathan Van Why | e488334 | 2019-08-08 17:28:32 -0700 | [diff] [blame] | 25 | # We pin the serde version because newer serde versions may not be compatible |
| 26 | # with the nightly toolchain used by libtock-rs. |
Alistair Francis | d67a776 | 2020-09-10 18:56:10 -0700 | [diff] [blame] | 27 | serde = { version = "=1.0.114", default-features = false, features = ["derive"] } |
Philipp Vollmer | 349417d | 2018-02-24 17:29:19 +0100 | [diff] [blame] | 28 | |
Woyten | d476883 | 2020-02-18 17:24:26 +0100 | [diff] [blame] | 29 | [[example]] |
| 30 | name = "alloc_error" |
Woyten | 964bb72 | 2020-03-18 20:25:58 +0100 | [diff] [blame] | 31 | path = "examples-features/alloc_error.rs" |
| 32 | required-features = ["alloc", "custom_alloc_error_handler"] |
Woyten | d476883 | 2020-02-18 17:24:26 +0100 | [diff] [blame] | 33 | |
| 34 | [[example]] |
| 35 | name = "ble_scanning" |
Woyten | 964bb72 | 2020-03-18 20:25:58 +0100 | [diff] [blame] | 36 | path = "examples-features/ble_scanning.rs" |
Woyten | d476883 | 2020-02-18 17:24:26 +0100 | [diff] [blame] | 37 | required-features = ["alloc"] |
| 38 | |
| 39 | [[example]] |
Woyten | 556a45c | 2020-02-16 22:49:00 +0100 | [diff] [blame] | 40 | name = "libtock_test" |
Woyten | 964bb72 | 2020-03-18 20:25:58 +0100 | [diff] [blame] | 41 | path = "examples-features/libtock_test.rs" |
Woyten | d476883 | 2020-02-18 17:24:26 +0100 | [diff] [blame] | 42 | required-features = ["alloc"] |
| 43 | |
| 44 | [[example]] |
Woyten | 964bb72 | 2020-03-18 20:25:58 +0100 | [diff] [blame] | 45 | name = "panic" |
| 46 | path = "examples-features/panic.rs" |
| 47 | required-features = ["custom_panic_handler"] |
| 48 | |
| 49 | [[example]] |
Woyten | d476883 | 2020-02-18 17:24:26 +0100 | [diff] [blame] | 50 | name = "simple_ble" |
Woyten | 964bb72 | 2020-03-18 20:25:58 +0100 | [diff] [blame] | 51 | path = "examples-features/simple_ble.rs" |
Woyten | d476883 | 2020-02-18 17:24:26 +0100 | [diff] [blame] | 52 | required-features = ["alloc"] |
| 53 | |
Amit Aryeh Levy | 83fecc2 | 2017-05-03 02:50:25 -0500 | [diff] [blame] | 54 | [profile.dev] |
| 55 | panic = "abort" |
| 56 | lto = true |
Bryan Cantrill | 3865ebe | 2020-03-30 16:34:12 -0700 | [diff] [blame] | 57 | debug = true |
Amit Aryeh Levy | 83fecc2 | 2017-05-03 02:50:25 -0500 | [diff] [blame] | 58 | |
| 59 | [profile.release] |
| 60 | panic = "abort" |
Amit Aryeh Levy | d508bde | 2017-05-03 03:16:45 -0500 | [diff] [blame] | 61 | lto = true |
Bryan Cantrill | 3865ebe | 2020-03-30 16:34:12 -0700 | [diff] [blame] | 62 | debug = true |
torfmaster | 7a18588 | 2019-12-15 13:29:19 +0100 | [diff] [blame] | 63 | |
| 64 | [workspace] |
Johnathan Van Why | c0d2b6f | 2020-06-15 15:29:54 -0700 | [diff] [blame] | 65 | exclude = [ "tock" ] |
torfmaster | 7a18588 | 2019-12-15 13:29:19 +0100 | [diff] [blame] | 66 | members = [ |
torfmaster | b06f637 | 2019-12-17 09:20:48 +0100 | [diff] [blame] | 67 | "codegen", |
torfmaster | d971c7d | 2020-02-28 16:43:26 +0100 | [diff] [blame] | 68 | "core", |
Johnathan Van Why | 988305c | 2020-07-08 15:50:45 -0700 | [diff] [blame] | 69 | "core/platform", |
Johnathan Van Why | a6c5c9d | 2020-06-19 15:15:14 -0700 | [diff] [blame] | 70 | "test_runner", |
| 71 | "tools/print_sizes", |
torfmaster | 3d60524 | 2019-12-16 22:36:39 +0100 | [diff] [blame] | 72 | ] |