aboutsummaryrefslogtreecommitdiff
path: root/embassy-time/Cargo.toml
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2023-11-29 17:23:48 +0100
committerDario Nieuwenhuis <[email protected]>2023-11-29 17:26:33 +0100
commitc6989dfbca51787146f50270c671af9db434f577 (patch)
tree5974a8ec41c108d5208e4f68027b918d424a2046 /embassy-time/Cargo.toml
parent384bad7bfaa1f2415baf2cd3b69ebf36dc0a02d7 (diff)
Remove nightly and unstable-traits features in preparation for 1.75.
Diffstat (limited to 'embassy-time/Cargo.toml')
-rw-r--r--embassy-time/Cargo.toml17
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]
23src_base = "https://github.com/embassy-rs/embassy/blob/embassy-time-v$VERSION/embassy-time/src/" 23src_base = "https://github.com/embassy-rs/embassy/blob/embassy-time-v$VERSION/embassy-time/src/"
24src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-time/src/" 24src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-time/src/"
25features = ["nightly", "defmt", "unstable-traits", "std"] 25features = ["defmt", "std"]
26target = "x86_64-unknown-linux-gnu" 26target = "x86_64-unknown-linux-gnu"
27 27
28[package.metadata.docs.rs] 28[package.metadata.docs.rs]
29features = ["nightly", "defmt", "unstable-traits", "std"] 29features = ["defmt", "std"]
30 30
31[features] 31[features]
32std = ["tick-hz-1_000_000", "critical-section/std"] 32std = ["tick-hz-1_000_000", "critical-section/std"]
33wasm = ["dep:wasm-bindgen", "dep:js-sys", "dep:wasm-timer", "tick-hz-1_000_000"] 33wasm = ["dep:wasm-bindgen", "dep:js-sys", "dep:wasm-timer", "tick-hz-1_000_000"]
34 34
35# Enable nightly-only features
36nightly = ["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.
40unstable-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.
44defmt-timestamp-uptime = ["defmt"] 37defmt-timestamp-uptime = ["defmt"]
@@ -242,8 +235,8 @@ defmt = { version = "0.3", optional = true }
242log = { version = "0.4.14", optional = true } 235log = { version = "0.4.14", optional = true }
243 236
244embedded-hal-02 = { package = "embedded-hal", version = "0.2.6" } 237embedded-hal-02 = { package = "embedded-hal", version = "0.2.6" }
245embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-rc.2", optional = true} 238embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-rc.2" }
246embedded-hal-async = { version = "=1.0.0-rc.2", optional = true} 239embedded-hal-async = { version = "=1.0.0-rc.2" }
247 240
248futures-util = { version = "0.3.17", default-features = false } 241futures-util = { version = "0.3.17", default-features = false }
249critical-section = "1.1" 242critical-section = "1.1"
@@ -258,4 +251,4 @@ wasm-timer = { version = "0.2.5", optional = true }
258[dev-dependencies] 251[dev-dependencies]
259serial_test = "0.9" 252serial_test = "0.9"
260critical-section = { version = "1.1", features = ["std"] } 253critical-section = { version = "1.1", features = ["std"] }
261embassy-executor = { version = "0.3.3", path = "../embassy-executor", features = ["nightly"] } 254embassy-executor = { version = "0.3.3", path = "../embassy-executor" }