| 1 |
[package] |
| 2 |
name = "jsonschema" |
| 3 |
version = "0.37.4" |
| 4 |
description = "JSON schema validaton library" |
| 5 |
keywords = ["jsonschema", "validation"] |
| 6 |
categories = ["web-programming"] |
| 7 |
readme = "../../README.md" |
| 8 |
license.workspace = true |
| 9 |
repository.workspace = true |
| 10 |
rust-version.workspace = true |
| 11 |
edition.workspace = true |
| 12 |
authors.workspace = true |
| 13 |
|
| 14 |
[features] |
| 15 |
default = ["resolve-http", "resolve-file"] |
| 16 |
resolve-http = ["reqwest"] |
| 17 |
resolve-file = [] |
| 18 |
resolve-async = [ |
| 19 |
"referencing/retrieve-async", |
| 20 |
"reqwest/default", |
| 21 |
"dep:async-trait", |
| 22 |
"dep:tokio", |
| 23 |
] |
| 24 |
# Support for arbitrarily large integers and exact decimal values when parsing JSON from strings. |
| 25 |
arbitrary-precision = ["serde_json/arbitrary_precision", "dep:num-bigint"] |
| 26 |
|
| 27 |
[target.'cfg(not(target_arch = "wasm32"))'.dependencies] |
| 28 |
reqwest = { version = "0.12", features = [ |
| 29 |
"blocking", |
| 30 |
"json", |
| 31 |
], default-features = false, optional = true } |
| 32 |
tokio = { version = "1.0", features = ["fs", "rt"], optional = true } |
| 33 |
|
| 34 |
[target.'cfg(target_arch = "wasm32")'.dependencies] |
| 35 |
getrandom = { version = "0.3.4", features = ["wasm_js"] } |
| 36 |
reqwest = { version = "0.12", features = ["json"], default-features = false, optional = true } |
| 37 |
tokio = { version = "1.0", features = ["rt"], optional = true } |
| 38 |
|
| 39 |
[dependencies] |
| 40 |
ahash.workspace = true |
| 41 |
async-trait = { version = "0.1.86", optional = true } |
| 42 |
bytecount = { version = "0.6", features = ["runtime-dispatch-simd"] } |
| 43 |
data-encoding = "2.9" |
| 44 |
email_address = "0.2.9" |
| 45 |
fancy-regex = "0.16" |
| 46 |
fraction = { version = "0.15", default-features = false, features = [ |
| 47 |
"with-bigint", |
| 48 |
] } |
| 49 |
idna = "1.0.2" |
| 50 |
itoa = "1" |
| 51 |
num-bigint = { version = "0.4", optional = true } |
| 52 |
num-cmp = "0.1" |
| 53 |
num-traits = "0.2.19" |
| 54 |
percent-encoding = "2.3" |
| 55 |
referencing = { version = "0.37.4", path = "../jsonschema-referencing" } |
| 56 |
regex = "1.11.1" |
| 57 |
regex-syntax = "0.8.5" |
| 58 |
serde.workspace = true |
| 59 |
serde_json.workspace = true |
| 60 |
unicode-general-category = "1.1" |
| 61 |
uuid-simd = { version = "0.8", default-features = false, features = ["std", "detect"] } |
| 62 |
|
| 63 |
[dev-dependencies] |
| 64 |
test-case = "3" |
| 65 |
futures = { version = "0.3", default-features = false, features = ["std"] } |
| 66 |
testsuite = { package = "jsonschema-testsuite", path = "../jsonschema-testsuite" } |
| 67 |
|
| 68 |
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dev-dependencies] |
| 69 |
wasm-bindgen-test = "0.3.55" |
| 70 |
|
| 71 |
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] |
| 72 |
benchmark = { path = "../benchmark/" } |
| 73 |
codspeed-criterion-compat = { version = "4.1", default-features = false } |
| 74 |
criterion = { version = "0.7", default-features = false } |
| 75 |
tempfile = "3.13.0" |
| 76 |
test-case = "3" |
| 77 |
tokio = { version = "1", features = ["macros", "rt"] } |
| 78 |
|
| 79 |
[lints] |
| 80 |
workspace = true |
| 81 |
|
| 82 |
[[bench]] |
| 83 |
harness = false |
| 84 |
name = "jsonschema" |
| 85 |
|
| 86 |
[[bench]] |
| 87 |
harness = false |
| 88 |
name = "keywords" |
| 89 |
|
| 90 |
[[bench]] |
| 91 |
harness = false |
| 92 |
name = "errors" |
| 93 |
|
| 94 |
[[bench]] |
| 95 |
harness = false |
| 96 |
name = "location" |
| 97 |
|
| 98 |
[[bench]] |
| 99 |
harness = false |
| 100 |
name = "unevaluated_properties" |
| 101 |
|
| 102 |
[[bench]] |
| 103 |
harness = false |
| 104 |
name = "unevaluated_items" |