From c954950c5e8d3f3e16c5f61b3e0d3eeda9d5e000 Mon Sep 17 00:00:00 2001 From: HoLLy Date: Sun, 21 Jan 2024 13:08:58 +0100 Subject: Remove unused dependencies in mastodon-async-entities This brings down total crate count from 49 to 28. --- entities/Cargo.toml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/entities/Cargo.toml b/entities/Cargo.toml index 1b6c1dc..e6c89f4 100644 --- a/entities/Cargo.toml +++ b/entities/Cargo.toml @@ -11,15 +11,10 @@ rust-version.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -futures = "0.3.25" thiserror = "1" static_assertions = "1" derive_is_enum_variant = "0.1.1" -[dependencies.log] -version = "0.4" -features = ["kv_unstable", "serde", "std", "kv_unstable_serde", "kv_unstable_std"] - [dependencies.serde] version = "1" features = ["derive"] -- cgit v1.2.3 From 53d655ffa31a69c754b2d4746fd2fa1efe165c45 Mon Sep 17 00:00:00 2001 From: HoLLy Date: Sun, 21 Jan 2024 13:11:49 +0100 Subject: Remove unused dependencies in mastodon-async This brings down crate count for a standard windows build from 179 to 178, and `--all-targets --features all` from 287 to 260. --- Cargo.toml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7baade6..3aebd74 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -39,7 +39,6 @@ futures = "0.3.25" doc-comment = "0.3" serde_json = "1" serde_urlencoded = "0.7.1" -tap-reader = "1" url = "2" futures-util = "0.3.25" static_assertions = "1.1.0" @@ -102,9 +101,6 @@ tempfile = "3" # for examples: femme = "2.2.1" html2text = "0.6.0" -[dev-dependencies.criterion] -version = "0.5.1" -features = ["async_tokio"] [build-dependencies.skeptic] version = "0.13" -- cgit v1.2.3 From cf82034015f929d19701aaf5c8adc23e898ed2f2 Mon Sep 17 00:00:00 2001 From: "D. Scott Boggs" Date: Tue, 6 Feb 2024 09:14:53 -0500 Subject: Remove skeptic --- Cargo.toml | 1 - build.rs | 20 -------------------- tests/skeptic.rs | 1 - 3 files changed, 22 deletions(-) delete mode 100644 build.rs delete mode 100644 tests/skeptic.rs diff --git a/Cargo.toml b/Cargo.toml index 3aebd74..73c7951 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -96,7 +96,6 @@ features = ["io"] tokio-test = "0.4.2" futures-util = "0.3.25" indoc = "2.0" -skeptic = "0.13" tempfile = "3" # for examples: femme = "2.2.1" diff --git a/build.rs b/build.rs deleted file mode 100644 index 34ca6e2..0000000 --- a/build.rs +++ /dev/null @@ -1,20 +0,0 @@ -#[cfg(feature = "toml")] -extern crate skeptic; - -#[cfg(feature = "toml")] -fn main() { - skeptic::generate_doc_tests(&["README.md"]); -} - -#[cfg(not(feature = "toml"))] -fn main() { - // tests/skeptic.rs still expects a file to be at OUT_DIR/skeptic-tests.rs, so - // make a dummy one - use std::{env, fs::OpenOptions, path::Path}; - let out_dir = Path::new(&env::var("OUT_DIR").expect("no out_dir set")).join("skeptic-tests.rs"); - OpenOptions::new() - .create(true) - .write(true) - .open(out_dir) - .expect("couldn't write to file"); -} diff --git a/tests/skeptic.rs b/tests/skeptic.rs deleted file mode 100644 index ff46c9c..0000000 --- a/tests/skeptic.rs +++ /dev/null @@ -1 +0,0 @@ -include!(concat!(env!("OUT_DIR"), "/skeptic-tests.rs")); -- cgit v1.2.3