From 008ea9ec655bac0a70d7a5af46e5b235ae569db8 Mon Sep 17 00:00:00 2001 From: Sam Poder Date: Tue, 6 Jun 2023 15:15:13 +0000 Subject: [PATCH] Enable derive on Clap This let's us use the derive feature. --- Cargo.lock | 20 ++++++++++++++++++++ burrow/Cargo.toml | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 53cbe29..8677d43 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -230,6 +230,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "401a4694d2bf92537b6867d94de48c4842089645fdcdf6c71865b175d836e9c2" dependencies = [ "clap_builder", + "clap_derive", + "once_cell", ] [[package]] @@ -245,6 +247,18 @@ dependencies = [ "strsim", ] +[[package]] +name = "clap_derive" +version = "4.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8cd2b2a819ad6eec39e8f1d6b53001af1e5469f8c177579cdaeb313115b825f" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn 2.0.15", +] + [[package]] name = "clap_lex" version = "0.5.0" @@ -512,6 +526,12 @@ version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" +[[package]] +name = "heck" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" + [[package]] name = "hermit-abi" version = "0.3.1" diff --git a/burrow/Cargo.toml b/burrow/Cargo.toml index c47bc98..8880c8b 100644 --- a/burrow/Cargo.toml +++ b/burrow/Cargo.toml @@ -9,4 +9,4 @@ crate-type = ["lib", "staticlib"] [dependencies] tokio = { version = "1.21", features = ["rt", "macros"] } tun = { version = "0.1", path = "../tun" } -clap = "4.3.2" +clap = { version = "4.3.2", features = ["derive"] }