diff options
| author | Dario Nieuwenhuis <[email protected]> | 2021-10-18 01:19:01 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2021-10-18 01:19:01 +0200 |
| commit | f5e251fc8176000a9156e29b25e3a5f18229acc0 (patch) | |
| tree | 9aec97c4bd61f26f49eeb0e739caabd1c12b0548 /examples/std | |
| parent | a2e7c24e0055d13a61345dfce9fbe7fcf4e0d306 (diff) | |
Update clap
Diffstat (limited to 'examples/std')
| -rw-r--r-- | examples/std/Cargo.toml | 2 | ||||
| -rw-r--r-- | examples/std/src/bin/net.rs | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/examples/std/Cargo.toml b/examples/std/Cargo.toml index 3ba495e59..b494cd3be 100644 --- a/examples/std/Cargo.toml +++ b/examples/std/Cargo.toml | |||
| @@ -15,6 +15,6 @@ futures = { version = "0.3.17", default-features = false, features = ["async-awa | |||
| 15 | log = "0.4.14" | 15 | log = "0.4.14" |
| 16 | nix = "0.22.1" | 16 | nix = "0.22.1" |
| 17 | libc = "0.2.101" | 17 | libc = "0.2.101" |
| 18 | clap = { version = "3.0.0-beta.4", features = ["derive"] } | 18 | clap = { version = "3.0.0-beta.5", features = ["derive"] } |
| 19 | rand_core = { version = "0.6.3", features = ["std"] } | 19 | rand_core = { version = "0.6.3", features = ["std"] } |
| 20 | heapless = { version = "0.7.5", default-features = false } | 20 | heapless = { version = "0.7.5", default-features = false } |
diff --git a/examples/std/src/bin/net.rs b/examples/std/src/bin/net.rs index c44f1c5b0..8abcc586f 100644 --- a/examples/std/src/bin/net.rs +++ b/examples/std/src/bin/net.rs | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | #![feature(type_alias_impl_trait)] | 1 | #![feature(type_alias_impl_trait)] |
| 2 | 2 | ||
| 3 | use clap::{AppSettings, Clap}; | 3 | use clap::Parser; |
| 4 | use embassy::executor::{Executor, Spawner}; | 4 | use embassy::executor::{Executor, Spawner}; |
| 5 | use embassy::io::AsyncWriteExt; | 5 | use embassy::io::AsyncWriteExt; |
| 6 | use embassy::util::Forever; | 6 | use embassy::util::Forever; |
| @@ -18,9 +18,8 @@ static CONFIG_STATIC: Forever<StaticConfigurator> = Forever::new(); | |||
| 18 | static CONFIG_DYNAMIC: Forever<DhcpConfigurator> = Forever::new(); | 18 | static CONFIG_DYNAMIC: Forever<DhcpConfigurator> = Forever::new(); |
| 19 | static NET_RESOURCES: Forever<StackResources<1, 2, 8>> = Forever::new(); | 19 | static NET_RESOURCES: Forever<StackResources<1, 2, 8>> = Forever::new(); |
| 20 | 20 | ||
| 21 | #[derive(Clap)] | 21 | #[derive(Parser)] |
| 22 | #[clap(version = "1.0")] | 22 | #[clap(version = "1.0")] |
| 23 | #[clap(setting = AppSettings::ColoredHelp)] | ||
| 24 | struct Opts { | 23 | struct Opts { |
| 25 | /// TAP device name | 24 | /// TAP device name |
| 26 | #[clap(long, default_value = "tap0")] | 25 | #[clap(long, default_value = "tap0")] |
