Skip to content

Commit 015cf01

Browse files
committed
feat: unstable-json-schema generation for Cargo.toml
1 parent ab71ba9 commit 015cf01

File tree

5 files changed

+1610
-0
lines changed

5 files changed

+1610
-0
lines changed

crates/cargo-util-schemas/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ repository.workspace = true
99
description = "Deserialization schemas for Cargo"
1010

1111
[dependencies]
12+
schemars = { version = "0.8.21", features = ["preserve_order","semver"], optional = true }
1213
semver.workspace = true
1314
serde = { workspace = true, features = ["derive"] }
15+
serde_json = { version = "1.0", optional = true }
1416
serde-untagged.workspace = true
1517
serde-value.workspace = true
1618
thiserror.workspace = true
@@ -23,3 +25,6 @@ workspace = true
2325

2426
[dev-dependencies]
2527
snapbox.workspace = true
28+
29+
[features]
30+
unstable-schema = ["dep:schemars", "dep:serde_json"]

0 commit comments

Comments
 (0)