diff options
Diffstat (limited to 'embassy-time/Cargo.toml')
| -rw-r--r-- | embassy-time/Cargo.toml | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/embassy-time/Cargo.toml b/embassy-time/Cargo.toml index 570e0efa7..5cbb44b33 100644 --- a/embassy-time/Cargo.toml +++ b/embassy-time/Cargo.toml | |||
| @@ -22,23 +22,16 @@ links = "embassy-time" | |||
| 22 | [package.metadata.embassy_docs] | 22 | [package.metadata.embassy_docs] |
| 23 | src_base = "https://github.com/embassy-rs/embassy/blob/embassy-time-v$VERSION/embassy-time/src/" | 23 | src_base = "https://github.com/embassy-rs/embassy/blob/embassy-time-v$VERSION/embassy-time/src/" |
| 24 | src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-time/src/" | 24 | src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-time/src/" |
| 25 | features = ["nightly", "defmt", "unstable-traits", "std"] | 25 | features = ["defmt", "std"] |
| 26 | target = "x86_64-unknown-linux-gnu" | 26 | target = "x86_64-unknown-linux-gnu" |
| 27 | 27 | ||
| 28 | [package.metadata.docs.rs] | 28 | [package.metadata.docs.rs] |
| 29 | features = ["nightly", "defmt", "unstable-traits", "std"] | 29 | features = ["defmt", "std"] |
| 30 | 30 | ||
| 31 | [features] | 31 | [features] |
| 32 | std = ["tick-hz-1_000_000", "critical-section/std"] | 32 | std = ["tick-hz-1_000_000", "critical-section/std"] |
| 33 | wasm = ["dep:wasm-bindgen", "dep:js-sys", "dep:wasm-timer", "tick-hz-1_000_000"] | 33 | wasm = ["dep:wasm-bindgen", "dep:js-sys", "dep:wasm-timer", "tick-hz-1_000_000"] |
| 34 | 34 | ||
| 35 | # Enable nightly-only features | ||
| 36 | nightly = ["embedded-hal-async"] | ||
| 37 | |||
| 38 | # Implement embedded-hal 1.0 alpha and embedded-hal-async traits. | ||
| 39 | # Implement embedded-hal-async traits if `nightly` is set as well. | ||
| 40 | unstable-traits = ["embedded-hal-1"] | ||
| 41 | |||
| 42 | # Display a timestamp of the number of seconds since startup next to defmt log messages | 35 | # Display a timestamp of the number of seconds since startup next to defmt log messages |
| 43 | # To use this you must have a time driver provided. | 36 | # To use this you must have a time driver provided. |
| 44 | defmt-timestamp-uptime = ["defmt"] | 37 | defmt-timestamp-uptime = ["defmt"] |
| @@ -242,8 +235,8 @@ defmt = { version = "0.3", optional = true } | |||
| 242 | log = { version = "0.4.14", optional = true } | 235 | log = { version = "0.4.14", optional = true } |
| 243 | 236 | ||
| 244 | embedded-hal-02 = { package = "embedded-hal", version = "0.2.6" } | 237 | embedded-hal-02 = { package = "embedded-hal", version = "0.2.6" } |
| 245 | embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-rc.2", optional = true} | 238 | embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-rc.2" } |
| 246 | embedded-hal-async = { version = "=1.0.0-rc.2", optional = true} | 239 | embedded-hal-async = { version = "=1.0.0-rc.2" } |
| 247 | 240 | ||
| 248 | futures-util = { version = "0.3.17", default-features = false } | 241 | futures-util = { version = "0.3.17", default-features = false } |
| 249 | critical-section = "1.1" | 242 | critical-section = "1.1" |
| @@ -258,4 +251,4 @@ wasm-timer = { version = "0.2.5", optional = true } | |||
| 258 | [dev-dependencies] | 251 | [dev-dependencies] |
| 259 | serial_test = "0.9" | 252 | serial_test = "0.9" |
| 260 | critical-section = { version = "1.1", features = ["std"] } | 253 | critical-section = { version = "1.1", features = ["std"] } |
| 261 | embassy-executor = { version = "0.3.3", path = "../embassy-executor", features = ["nightly"] } | 254 | embassy-executor = { version = "0.3.3", path = "../embassy-executor" } |
