Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies #181

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ members = [
"dummy_derive",
]

resolver = "2"
resolver = "2"
11 changes: 6 additions & 5 deletions dummy_derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@ version = "0.7.0"
authors = ["cksac <[email protected]>"]
description = "Macros implementation of #[derive(Dummy)]"
keywords = ["faker", "data", "random"]
license = "MIT/Apache-2.0"
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/cksac/fake-rs"
homepage = "https://github.com/cksac/fake-rs"
edition = "2018"
edition = "2021"
rust-version = "1.63"

[lib]
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 }
49 changes: 25 additions & 24 deletions fake/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,46 +4,44 @@ version = "2.9.2"
authors = ["cksac <[email protected]>"]
description = "An easy to use library for generating fake data like name, number, address, lorem, dates, etc."
keywords = ["faker", "data", "generator", "random"]
license = "MIT/Apache-2.0"
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/cksac/fake-rs"
homepage = "https://github.com/cksac/fake-rs"
edition = "2021"
rust-version = "1.56"
rust-version = "1.63"

[package.metadata.docs.rs]
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.
Expand Down Expand Up @@ -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"]
Comment on lines +81 to +82
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can also be solved by adding these to [features] so their other co-dependencies can be specified

1 change: 1 addition & 0 deletions fake/src/impls/color/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ impl Dummy<Faker> for RandomColor {
luminosity: Some(Luminosity::Random),
seed: Some((u64::MIN..u64::MAX).fake_with_rng::<u64, _>(rng)),
alpha: Some((0..10).fake_with_rng::<i8, _>(rng) as f32 / 10.),
..Default::default()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is needed for random_color v0.8

}
}
}
2 changes: 1 addition & 1 deletion fake/src/locales/fr_fr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ impl Data for FR_FR {
// https://www.insee.fr/fr/statistiques/3532172
// https://www.oise.gouv.fr/contenu/telechargement/68118/413742/file/liste_alphabetique_des_prenoms_masculins_acceptes_pour_une_demande_de_francisation.pdf
// https://www.herault.gouv.fr/content/download/39729/260550/file/Pr%C3%A9noms%20f%C3%A9minin%20pdf.pdf
//
//
const NAME_FIRST_NAME: &'static [&'static str] = &[
"Aaron",
"Abel",
Expand Down
Loading