From ec694be4e05b5fdddd66e13abc8c177a11cfa3a8 Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Sat, 4 May 2024 12:43:57 +0800 Subject: [PATCH] Update dependencies --- Cargo.toml | 2 +- dummy_derive/Cargo.toml | 6 ++--- fake/Cargo.toml | 45 +++++++++++++++++++------------------ fake/src/impls/color/mod.rs | 1 + 4 files changed, 28 insertions(+), 26 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1a112b4..3131db6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,4 +4,4 @@ members = [ "dummy_derive", ] -resolver = "2" \ No newline at end of file +resolver = "2" diff --git a/dummy_derive/Cargo.toml b/dummy_derive/Cargo.toml index cb4b168..7663aa9 100644 --- a/dummy_derive/Cargo.toml +++ b/dummy_derive/Cargo.toml @@ -14,7 +14,7 @@ edition = "2018" proc-macro = true [dependencies] -syn = "2.0" +darling = { version = "0.20", default-features = false } proc-macro2 = { version = "1", default-features = false } -quote = "1.0" -darling = "0.20" +quote = { version = "1.0", default-features = false } +syn = { version = "2.0", default-features = false } diff --git a/fake/Cargo.toml b/fake/Cargo.toml index e38d1d8..69f6da9 100644 --- a/fake/Cargo.toml +++ b/fake/Cargo.toml @@ -15,35 +15,33 @@ rust-version = "1.56" all-features = true [dependencies] +bigdecimal-rs = { version = "0.4", package = "bigdecimal", default-features = false, optional = true } +bson = { version = "2.10", optional = true } +chrono = { version = "0.4", features = ["clock", "std"], default-features = false, optional = true } +chrono-tz = { version = "0.9", default-features = false, optional = true } +deunicode = { version = "1.4", default-features = false } dummy = { version = "0.7", path = "../dummy_derive", optional = true } -rand = "0.8" -random_color = { version = "0.6", optional = true } -deunicode = "1.4" -chrono = { version = "0.4", features = [ - "std", -], default-features = false, optional = true } -chrono-tz = { version = "0.8", optional = true } geo-types = { version = "0.7", default-features = false, optional = true } -http = { version = "1", optional = true } -semver = { version = "1", optional = true } -serde_json = { version = "1.0", optional = true } -ulid = { version = "1.1", optional = true } -uuid = { version = "1.5", features = ["v1", "v3", "v4", "v5"], optional = true } -time = { version = "0.3", features = ["formatting"], optional = true } -num-traits = { version = "0.2", optional = true } -rust_decimal = { version = "1.32", default-features = false, optional = true } -bigdecimal-rs = { version = "0.4", package = "bigdecimal", default-features = false, optional = true } -zerocopy = { version = "0.7", optional = true } +glam = { version = "0.27.0", features = ["std"], default-features = false, optional = true } +http = { version = "1", features = ["std"], default-features = false, optional = true } +num-traits = { version = "0.2", default-features = false, optional = true } +rand = { version = "0.8", features = ["std", "std_rng"], default-features = false } rand_core = { version = "0.6", optional = true } -glam = { version = "0.27.0", optional = true } +random_color = { version = "0.8", optional = true } +rust_decimal = { version = "1.32", default-features = false, optional = true } +semver = { version = "1", default-features = false, optional = true } +serde_json = { version = "1.0", default-features = false, optional = true } +time = { version = "0.3.30", features = ["formatting"], default-features = false, optional = true } +ulid = { version = "1.1", default-features = false, optional = true } url-escape = { version = "0.1", optional = true } -bson = { version = "2.10", optional = true } +uuid = { version = "1.5", features = ["v1", "v3", "v4", "v5"], default-features = false, optional = true } +zerocopy = { version = "0.7", features = ["byteorder"], default-features = false, optional = true } [dev-dependencies] -chrono = { version = "0.4", features = ["clock"], default-features = false } +chrono = { version = "0.4", default-features = false } fake = { path = ".", features = ["derive"] } -proptest = "1.0.0" -rand_chacha = "0.3" +proptest = { version = "1.0.0", features = ["std"], default-features = false } +rand_chacha = { version = "0.3", default-features = false } [features] # Provide derive(Dummy) macros. @@ -79,3 +77,6 @@ required-features = [ name = "usage" path = "examples/usage.rs" required-features = ["derive"] + +[package.metadata.cargo-all-features] +denylist = ["geo-types", "serde_json"] diff --git a/fake/src/impls/color/mod.rs b/fake/src/impls/color/mod.rs index 856aa9e..c020700 100644 --- a/fake/src/impls/color/mod.rs +++ b/fake/src/impls/color/mod.rs @@ -10,6 +10,7 @@ impl Dummy for RandomColor { luminosity: Some(Luminosity::Random), seed: Some((u64::MIN..u64::MAX).fake_with_rng::(rng)), alpha: Some((0..10).fake_with_rng::(rng) as f32 / 10.), + ..Default::default() } } }