Skip to content

Commit

Permalink
build: Streamline dependencies (#329)
Browse files Browse the repository at this point in the history
- Update `jsonschema` to `0.18` and removes default features. Most
  notably, this disables the `resolve-http`, which bundles `reqwest`.
- Remove `regress`, as this doesn't seem to be referenced by generated
  code anymore.
- Remove `jsonschema` and `thiserror` from build dependencies, as these
  aren't used.
  • Loading branch information
jan-auer authored Sep 2, 2024
1 parent 24e45cc commit a2c970a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,13 @@ required-features = ["type_generation"]

[features]
default = ["type_generation"]
type_generation = ["prettyplease", "schemars", "syn", "typify", "regress"]
type_generation = ["prettyplease", "schemars", "syn", "typify"]

[dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_yaml = "0.9"
regress = { version = "0.5.0", optional = true } # required by generated code
jsonschema = "0.17.1"
jsonschema = { version = "0.18.1", default-features = false }
thiserror = "1.0.49"

# redeclare all build-dependencies here so that the build.rs can be used
Expand All @@ -55,5 +54,3 @@ schemars = { version = "0.8.0", optional = true }
serde_json = "1.0"
syn = { version = "2.0.11", optional = true }
typify = { version = "0.0.16", optional = true }
jsonschema = "0.17.1"
thiserror = "1.0.49"

0 comments on commit a2c970a

Please sign in to comment.