mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 08:12:30 +00:00
Update clap
This commit is contained in:
parent
a2e7c24e00
commit
f5e251fc81
@ -15,6 +15,6 @@ futures = { version = "0.3.17", default-features = false, features = ["async-awa
|
|||||||
log = "0.4.14"
|
log = "0.4.14"
|
||||||
nix = "0.22.1"
|
nix = "0.22.1"
|
||||||
libc = "0.2.101"
|
libc = "0.2.101"
|
||||||
clap = { version = "3.0.0-beta.4", features = ["derive"] }
|
clap = { version = "3.0.0-beta.5", features = ["derive"] }
|
||||||
rand_core = { version = "0.6.3", features = ["std"] }
|
rand_core = { version = "0.6.3", features = ["std"] }
|
||||||
heapless = { version = "0.7.5", default-features = false }
|
heapless = { version = "0.7.5", default-features = false }
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#![feature(type_alias_impl_trait)]
|
#![feature(type_alias_impl_trait)]
|
||||||
|
|
||||||
use clap::{AppSettings, Clap};
|
use clap::Parser;
|
||||||
use embassy::executor::{Executor, Spawner};
|
use embassy::executor::{Executor, Spawner};
|
||||||
use embassy::io::AsyncWriteExt;
|
use embassy::io::AsyncWriteExt;
|
||||||
use embassy::util::Forever;
|
use embassy::util::Forever;
|
||||||
@ -18,9 +18,8 @@ static CONFIG_STATIC: Forever<StaticConfigurator> = Forever::new();
|
|||||||
static CONFIG_DYNAMIC: Forever<DhcpConfigurator> = Forever::new();
|
static CONFIG_DYNAMIC: Forever<DhcpConfigurator> = Forever::new();
|
||||||
static NET_RESOURCES: Forever<StackResources<1, 2, 8>> = Forever::new();
|
static NET_RESOURCES: Forever<StackResources<1, 2, 8>> = Forever::new();
|
||||||
|
|
||||||
#[derive(Clap)]
|
#[derive(Parser)]
|
||||||
#[clap(version = "1.0")]
|
#[clap(version = "1.0")]
|
||||||
#[clap(setting = AppSettings::ColoredHelp)]
|
|
||||||
struct Opts {
|
struct Opts {
|
||||||
/// TAP device name
|
/// TAP device name
|
||||||
#[clap(long, default_value = "tap0")]
|
#[clap(long, default_value = "tap0")]
|
||||||
|
Loading…
Reference in New Issue
Block a user