From f2ddd71201bbdef603e8aa3f67537caa6864c44e Mon Sep 17 00:00:00 2001 From: yassun7010 Date: Sun, 18 May 2025 22:48:16 +0900 Subject: [PATCH 1/2] refactor: use tombi. --- Cargo.toml | 8 ++++---- crates/serde_valid/Cargo.toml | 16 ++++++++-------- crates/serde_valid_derive/Cargo.toml | 9 ++++----- crates/serde_valid_literal/Cargo.toml | 8 ++++---- xtask/Cargo.toml | 6 +++--- 5 files changed, 23 insertions(+), 24 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8c39e23..dd6942f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,12 +3,12 @@ resolver = "2" members = ["crates/*", "xtask"] [workspace.package] -edition = "2021" version = "1.0.5" -license = "MIT" -repository = "https://github.com/yassun7010/serde_valid.git" authors = ["yassun7010 "] -keywords = ["validation", "serde", "json_schema"] +edition = "2021" +repository = "https://github.com/yassun7010/serde_valid.git" +license = "MIT" +keywords = ["json_schema", "serde", "validation"] [workspace.dependencies] itertools = "0.13.0" diff --git a/crates/serde_valid/Cargo.toml b/crates/serde_valid/Cargo.toml index 8c09947..48ead15 100644 --- a/crates/serde_valid/Cargo.toml +++ b/crates/serde_valid/Cargo.toml @@ -1,17 +1,17 @@ [package] name = "serde_valid" -description = "JSON Schema based validation tool using serde." -categories = ["encoding"] +version.workspace = true authors.workspace = true +edition.workspace = true +description = "JSON Schema based validation tool using serde." repository.workspace = true license.workspace = true -edition.workspace = true keywords.workspace = true -version.workspace = true +categories = ["encoding"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -fluent = { package = "fluent", version = "^0.16.0", optional = true } +fluent = { version = "^0.16.0", optional = true, package = "fluent" } indexmap = { version = "^2.0", features = ["serde"] } itertools.workspace = true num-traits = "^0.2" @@ -20,7 +20,7 @@ paste.workspace = true regex.workspace = true serde = { workspace = true, features = ["derive"] } serde_json.workspace = true -serde_toml = { package = "toml", version = "^0.8", optional = true } +serde_toml = { version = "^0.8", optional = true, package = "toml" } serde_valid_derive = { workspace = true } serde_valid_literal = { workspace = true } serde_yaml = { version = "^0.9", optional = true } @@ -33,7 +33,7 @@ unic-langid = "0.9" [features] default = ["i128"] +fluent = ["dep:fluent", "serde_valid_derive/fluent"] +i128 = ["indexmap/std", "num-traits/i128", "serde_valid_literal/i128"] toml = ["serde_toml"] yaml = ["serde_yaml"] -i128 = ["num-traits/i128", "indexmap/std", "serde_valid_literal/i128"] -fluent = ["dep:fluent", "serde_valid_derive/fluent"] diff --git a/crates/serde_valid_derive/Cargo.toml b/crates/serde_valid_derive/Cargo.toml index d7a986c..2a0076b 100644 --- a/crates/serde_valid_derive/Cargo.toml +++ b/crates/serde_valid_derive/Cargo.toml @@ -1,14 +1,13 @@ [package] name = "serde_valid_derive" -description = "JSON Schema based validation tool using serde." -categories = ["encoding"] +version.workspace = true authors.workspace = true +edition.workspace = true +description = "JSON Schema based validation tool using serde." repository.workspace = true license.workspace = true -edition.workspace = true keywords.workspace = true -version.workspace = true - +categories = ["encoding"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/serde_valid_literal/Cargo.toml b/crates/serde_valid_literal/Cargo.toml index 9157594..efc6911 100644 --- a/crates/serde_valid_literal/Cargo.toml +++ b/crates/serde_valid_literal/Cargo.toml @@ -1,13 +1,13 @@ [package] name = "serde_valid_literal" -description = "Literal Value type based JSON." -categories = [] +version.workspace = true authors.workspace = true +edition.workspace = true +description = "Literal Value type based JSON." repository.workspace = true license.workspace = true -edition.workspace = true keywords.workspace = true -version.workspace = true +categories = [] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/xtask/Cargo.toml b/xtask/Cargo.toml index c27aae3..6bba288 100644 --- a/xtask/Cargo.toml +++ b/xtask/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "xtask" -edition.workspace = true version.workspace = true -license.workspace = true -repository.workspace = true authors.workspace = true +edition.workspace = true +repository.workspace = true +license.workspace = true keywords.workspace = true [dependencies] From bb3485e6f66d5f91cb61e0ba95ffe9394c033275 Mon Sep 17 00:00:00 2001 From: yassun7010 Date: Sun, 18 May 2025 22:48:29 +0900 Subject: [PATCH 2/2] chore: add VSCode extensions recommendations --- .vscode/extensions.json | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .vscode/extensions.json diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..093a293 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "tombi-toml.tombi" + ] +} \ No newline at end of file