Skip to content

Commit

Permalink
remove default features, add full
Browse files Browse the repository at this point in the history
  • Loading branch information
jprochazk committed Jan 28, 2024
1 parent 068ac5d commit 5d3d443
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion garde/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ readme = "../README.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[features]
default = [
full = [
"derive",
"serde",
"url",
Expand All @@ -22,6 +22,7 @@ default = [
"regex",
"unicode",
]

serde = ["dep:serde", "compact_str/serde", "smallvec/serde"]
derive = ["dep:garde_derive"]
url = ["dep:url"]
Expand Down
4 changes: 2 additions & 2 deletions garde_derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ readme = "../README.md"
proc-macro = true

[features]
default = ["regex"]
regex = ["dep:regex"]

[dependencies]
syn = { version = "2", features = ["full"] }
syn = { version = "2", features = ["full", "derive"] }
quote = { version = "1" }
proc-macro2 = { version = "1" }
regex = { version = "1", default-features = false, features = [
Expand Down
2 changes: 1 addition & 1 deletion integrations/axum_garde/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ thiserror = { version = "1.0", default-features = false }
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1" }
garde = { version = "0.17.0", path = "../../garde", features = [
"default",
"full",
"derive",
] }
axum = { version = "0.7", features = ["default", "macros"] }
Expand Down

0 comments on commit 5d3d443

Please sign in to comment.