Cargo Features
[dependencies]
jsonschema = { version = "0.45.0", default-features = false, features = ["resolve-http", "resolve-file", "resolve-async", "tls-aws-lc-rs", "tls-ring", "arbitrary-precision"] }
- default = resolve-file, resolve-http, tls-aws-lc-rs
-
These default features are set whenever
jsonschemais added withoutsomewhere in the dependency tree.default-features = false - resolve-http default = reqwest
-
Enables rustls
Affects
retriever::HttpRetrieverError,retriever::HttpRetriever,retriever::AsyncHttpRetriever… - resolve-file default
- resolve-async = reqwest
-
Enables async-trait, tokio, retrieve-async of referencing
Affects
jsonschema::async_bundle,jsonschema::async_validator_for,jsonschema::async_options,retriever::AsyncHttpRetriever… - tls-aws-lc-rs default
-
Default TLS provider for HTTP resolution.
- tls-ring
-
Use ring instead of aws-lc-rs for TLS.
- arbitrary-precision
-
Support for arbitrarily large integers and exact decimal values when parsing JSON from strings.
Enables num-bigint, arbitrary_precision of serde_json
Features from optional dependencies
In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- reqwest wasm32 not wasm32 resolve-async? resolve-http