aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2022-02-12 00:24:04 +0100
committerDario Nieuwenhuis <[email protected]>2022-02-12 01:16:31 +0100
commit20e14b8edbbf067ab683ffdb170938838d9167b3 (patch)
tree159c4d03cc7eb74dd88357d28bb93b2445dba163 /examples
parent611961b499f8d4fee4f556c56606a2481e944791 (diff)
embassy, embassy-nrf: add `nightly` Cargo feature to gate nightly-only features.
Diffstat (limited to 'examples')
-rw-r--r--examples/nrf/Cargo.toml3
-rw-r--r--examples/std/Cargo.toml2
-rw-r--r--examples/wasm/Cargo.toml2
3 files changed, 5 insertions, 2 deletions
diff --git a/examples/nrf/Cargo.toml b/examples/nrf/Cargo.toml
index da16bcbaf..2d9c99530 100644
--- a/examples/nrf/Cargo.toml
+++ b/examples/nrf/Cargo.toml
@@ -4,6 +4,9 @@ edition = "2018"
4name = "embassy-nrf-examples" 4name = "embassy-nrf-examples"
5version = "0.1.0" 5version = "0.1.0"
6 6
7[features]
8default = ["nightly"]
9nightly = ["embassy-nrf/nightly"]
7 10
8[dependencies] 11[dependencies]
9embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt"] } 12embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt"] }
diff --git a/examples/std/Cargo.toml b/examples/std/Cargo.toml
index 450911fa1..ef60fe992 100644
--- a/examples/std/Cargo.toml
+++ b/examples/std/Cargo.toml
@@ -5,7 +5,7 @@ name = "embassy-std-examples"
5version = "0.1.0" 5version = "0.1.0"
6 6
7[dependencies] 7[dependencies]
8embassy = { version = "0.1.0", path = "../../embassy", features = ["log", "std", "time"] } 8embassy = { version = "0.1.0", path = "../../embassy", features = ["log", "std", "time", "nightly"] }
9embassy-net = { version = "0.1.0", path = "../../embassy-net", features=["std", "log", "medium-ethernet", "tcp", "dhcpv4"] } 9embassy-net = { version = "0.1.0", path = "../../embassy-net", features=["std", "log", "medium-ethernet", "tcp", "dhcpv4"] }
10 10
11async-io = "1.6.0" 11async-io = "1.6.0"
diff --git a/examples/wasm/Cargo.toml b/examples/wasm/Cargo.toml
index c6218a805..6750f6a6c 100644
--- a/examples/wasm/Cargo.toml
+++ b/examples/wasm/Cargo.toml
@@ -8,7 +8,7 @@ version = "0.1.0"
8crate-type = ["cdylib"] 8crate-type = ["cdylib"]
9 9
10[dependencies] 10[dependencies]
11embassy = { version = "0.1.0", path = "../../embassy", features = ["log", "wasm"] } 11embassy = { version = "0.1.0", path = "../../embassy", features = ["log", "wasm", "nightly"] }
12 12
13wasm-logger = "0.2.0" 13wasm-logger = "0.2.0"
14wasm-bindgen = "0.2" 14wasm-bindgen = "0.2"