From 52ed2f772cf9be03b7f4e0d1322d88adfda3de6c Mon Sep 17 00:00:00 2001 From: arty Date: Wed, 13 Nov 2024 11:06:29 -0800 Subject: [PATCH] Remove derivative as it became unmaintained --- Cargo.lock | 23 ----------------------- Cargo.toml | 1 - src/classic/platform/argparse.rs | 8 +++----- src/lib.rs | 3 --- 4 files changed, 3 insertions(+), 32 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6d69792bd..2f56918ce 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -213,7 +213,6 @@ dependencies = [ "bls12_381", "bytestream", "clvmr", - "derivative", "do-notation", "encoding8", "getrandom", @@ -316,17 +315,6 @@ dependencies = [ "zeroize", ] -[[package]] -name = "derivative" -version = "2.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b" -dependencies = [ - "proc-macro2 1.0.66", - "quote 1.0.32", - "syn 1.0.109", -] - [[package]] name = "digest" version = "0.9.0" @@ -1250,17 +1238,6 @@ dependencies = [ "unicode-xid", ] -[[package]] -name = "syn" -version = "1.0.109" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" -dependencies = [ - "proc-macro2 1.0.66", - "quote 1.0.32", - "unicode-ident", -] - [[package]] name = "syn" version = "2.0.32" diff --git a/Cargo.toml b/Cargo.toml index f6561a970..c6a2c612f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,7 +23,6 @@ bytestream = "0.4.1" num-traits = "0.2.14" lazy_static = "1.4.0" unicode-segmentation = "1.8.0" -derivative = "2.2.0" encoding8 = "0.3.2" num = "0.4.3" indoc = "1.0" diff --git a/src/classic/platform/argparse.rs b/src/classic/platform/argparse.rs index b1d4697e2..111876bc8 100644 --- a/src/classic/platform/argparse.rs +++ b/src/classic/platform/argparse.rs @@ -69,11 +69,9 @@ impl IntConversion { } } -#[derive(Derivative, Clone)] -#[derivative(Debug)] +#[derive(Clone)] pub struct Argument { action: TArgOptionAction, - #[derivative(Debug = "ignore")] typeofarg: Rc, default: Option, help: String, @@ -124,7 +122,7 @@ impl Default for Argument { } } -#[derive(Debug, Clone)] +#[derive(Clone)] pub struct Arg { names: Vec, options: Argument, @@ -141,7 +139,7 @@ pub struct TArgumentParserProps { pub prog: String, } -#[derive(Debug, Clone)] +#[derive(Clone)] pub struct ArgumentParser { prog: String, // desc: String, diff --git a/src/lib.rs b/src/lib.rs index 770c8b8c6..aa1959f6a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,9 +1,6 @@ #[macro_use] extern crate lazy_static; -#[macro_use] -extern crate derivative; - #[macro_use] extern crate indoc;