Skip to content

Commit

Permalink
Merge pull request #57 from yassun7010/fix_issue_55
Browse files Browse the repository at this point in the history
fix: remove json features.
  • Loading branch information
yassun7010 authored Mar 2, 2024
2 parents 58d8a55 + 66b27a4 commit fa95081
Show file tree
Hide file tree
Showing 11 changed files with 3 additions and 6 deletions.
5 changes: 2 additions & 3 deletions serde_valid/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ once_cell = "^1.7"
paste = { workspace = true }
regex = { workspace = true }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true, optional = true }
serde_json = { workspace = true }
serde_toml = { package = "toml", version = "^0.8", optional = true }
serde_valid_derive = { version = "0.18.0", path = "../serde_valid_derive" }
serde_valid_literal = { version = "0.18.0", path = "../serde_valid_literal" }
Expand All @@ -34,8 +34,7 @@ intl-memoizer = "0.5"
unic-langid = "0.9"

[features]
default = ["i128", "json"]
json = ["serde_json"]
default = ["i128"]
toml = ["serde_toml"]
yaml = ["serde_yaml"]
i128 = ["num-traits/i128", "indexmap/std", "serde_valid_literal/i128"]
Expand Down
3 changes: 0 additions & 3 deletions serde_valid/src/features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ pub mod flatten;
#[cfg(feature = "fluent")]
pub mod fluent;

#[cfg(feature = "json")]
pub mod json;

#[cfg(feature = "toml")]
pub mod toml;

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions serde_valid/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,7 @@

pub mod error;
mod features;
pub mod json;
mod traits;
pub mod validation;

Expand Down

0 comments on commit fa95081

Please sign in to comment.