| 1 |
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO |
| 2 |
# |
| 3 |
# When uploading crates to the registry Cargo will automatically |
| 4 |
# "normalize" Cargo.toml files for maximal compatibility |
| 5 |
# with all versions of Cargo and also rewrite `path` dependencies |
| 6 |
# to registry (e.g., crates.io) dependencies. |
| 7 |
# |
| 8 |
# If you are reading this file be aware that the original Cargo.toml |
| 9 |
# will likely look very different (and much more reasonable). |
| 10 |
# See Cargo.toml.orig for the original contents. |
| 11 |
|
| 12 |
[package] |
| 13 |
edition = "2021" |
| 14 |
rust-version = "1.83.0" |
| 15 |
name = "jsonschema" |
| 16 |
version = "0.37.4" |
| 17 |
authors = ["Dmitry Dygalo <[email protected]>"] |
| 18 |
build = false |
| 19 |
autolib = false |
| 20 |
autobins = false |
| 21 |
autoexamples = false |
| 22 |
autotests = false |
| 23 |
autobenches = false |
| 24 |
description = "JSON schema validaton library" |
| 25 |
readme = "README.md" |
| 26 |
keywords = [ |
| 27 |
"jsonschema", |
| 28 |
"validation", |
| 29 |
] |
| 30 |
categories = ["web-programming"] |
| 31 |
license = "MIT" |
| 32 |
repository = "https://github.com/Stranger6667/jsonschema" |
| 33 |
|
| 34 |
[features] |
| 35 |
arbitrary-precision = [ |
| 36 |
"serde_json/arbitrary_precision", |
| 37 |
"dep:num-bigint", |
| 38 |
] |
| 39 |
default = [ |
| 40 |
"resolve-http", |
| 41 |
"resolve-file", |
| 42 |
] |
| 43 |
resolve-async = [ |
| 44 |
"referencing/retrieve-async", |
| 45 |
"reqwest/default", |
| 46 |
"dep:async-trait", |
| 47 |
"dep:tokio", |
| 48 |
] |
| 49 |
resolve-file = [] |
| 50 |
resolve-http = ["reqwest"] |
| 51 |
|
| 52 |
[lib] |
| 53 |
name = "jsonschema" |
| 54 |
path = "src/lib.rs" |
| 55 |
|
| 56 |
[[test]] |
| 57 |
name = "output_suite" |
| 58 |
path = "tests/output_suite.rs" |
| 59 |
|
| 60 |
[[test]] |
| 61 |
name = "suite" |
| 62 |
path = "tests/suite.rs" |
| 63 |
|
| 64 |
[[test]] |
| 65 |
name = "wasm" |
| 66 |
path = "tests/wasm.rs" |
| 67 |
|
| 68 |
[[test]] |
| 69 |
name = "wasm_wasi" |
| 70 |
path = "tests/wasm_wasi.rs" |
| 71 |
|
| 72 |
[[bench]] |
| 73 |
name = "errors" |
| 74 |
path = "benches/errors.rs" |
| 75 |
harness = false |
| 76 |
|
| 77 |
[[bench]] |
| 78 |
name = "jsonschema" |
| 79 |
path = "benches/jsonschema.rs" |
| 80 |
harness = false |
| 81 |
|
| 82 |
[[bench]] |
| 83 |
name = "keywords" |
| 84 |
path = "benches/keywords.rs" |
| 85 |
harness = false |
| 86 |
|
| 87 |
[[bench]] |
| 88 |
name = "location" |
| 89 |
path = "benches/location.rs" |
| 90 |
harness = false |
| 91 |
|
| 92 |
[[bench]] |
| 93 |
name = "unevaluated_items" |
| 94 |
path = "benches/unevaluated_items.rs" |
| 95 |
harness = false |
| 96 |
|
| 97 |
[[bench]] |
| 98 |
name = "unevaluated_properties" |
| 99 |
path = "benches/unevaluated_properties.rs" |
| 100 |
harness = false |
| 101 |
|
| 102 |
[dependencies.ahash] |
| 103 |
version = "0.8" |
| 104 |
features = ["serde"] |
| 105 |
|
| 106 |
[dependencies.async-trait] |
| 107 |
version = "0.1.86" |
| 108 |
optional = true |
| 109 |
|
| 110 |
[dependencies.bytecount] |
| 111 |
version = "0.6" |
| 112 |
features = ["runtime-dispatch-simd"] |
| 113 |
|
| 114 |
[dependencies.data-encoding] |
| 115 |
version = "2.9" |
| 116 |
|
| 117 |
[dependencies.email_address] |
| 118 |
version = "0.2.9" |
| 119 |
|
| 120 |
[dependencies.fancy-regex] |
| 121 |
version = "0.16" |
| 122 |
|
| 123 |
[dependencies.fraction] |
| 124 |
version = "0.15" |
| 125 |
features = ["with-bigint"] |
| 126 |
default-features = false |
| 127 |
|
| 128 |
[dependencies.idna] |
| 129 |
version = "1.0.2" |
| 130 |
|
| 131 |
[dependencies.itoa] |
| 132 |
version = "1" |
| 133 |
|
| 134 |
[dependencies.num-bigint] |
| 135 |
version = "0.4" |
| 136 |
optional = true |
| 137 |
|
| 138 |
[dependencies.num-cmp] |
| 139 |
version = "0.1" |
| 140 |
|
| 141 |
[dependencies.num-traits] |
| 142 |
version = "0.2.19" |
| 143 |
|
| 144 |
[dependencies.percent-encoding] |
| 145 |
version = "2.3" |
| 146 |
|
| 147 |
[dependencies.referencing] |
| 148 |
version = "0.37.4" |
| 149 |
|
| 150 |
[dependencies.regex] |
| 151 |
version = "1.11.1" |
| 152 |
|
| 153 |
[dependencies.regex-syntax] |
| 154 |
version = "0.8.5" |
| 155 |
|
| 156 |
[dependencies.serde] |
| 157 |
version = "1.0" |
| 158 |
features = ["derive"] |
| 159 |
|
| 160 |
[dependencies.serde_json] |
| 161 |
version = "1" |
| 162 |
|
| 163 |
[dependencies.unicode-general-category] |
| 164 |
version = "1.1" |
| 165 |
|
| 166 |
[dependencies.uuid-simd] |
| 167 |
version = "0.8" |
| 168 |
features = [ |
| 169 |
"std", |
| 170 |
"detect", |
| 171 |
] |
| 172 |
default-features = false |
| 173 |
|
| 174 |
[dev-dependencies.futures] |
| 175 |
version = "0.3" |
| 176 |
features = ["std"] |
| 177 |
default-features = false |
| 178 |
|
| 179 |
[dev-dependencies.test-case] |
| 180 |
version = "3" |
| 181 |
|
| 182 |
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dev-dependencies.wasm-bindgen-test] |
| 183 |
version = "0.3.55" |
| 184 |
|
| 185 |
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.reqwest] |
| 186 |
version = "0.12" |
| 187 |
features = [ |
| 188 |
"blocking", |
| 189 |
"json", |
| 190 |
] |
| 191 |
optional = true |
| 192 |
default-features = false |
| 193 |
|
| 194 |
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio] |
| 195 |
version = "1.0" |
| 196 |
features = [ |
| 197 |
"fs", |
| 198 |
"rt", |
| 199 |
] |
| 200 |
optional = true |
| 201 |
|
| 202 |
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.codspeed-criterion-compat] |
| 203 |
version = "4.1" |
| 204 |
default-features = false |
| 205 |
|
| 206 |
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.criterion] |
| 207 |
version = "0.7" |
| 208 |
default-features = false |
| 209 |
|
| 210 |
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tempfile] |
| 211 |
version = "3.13.0" |
| 212 |
|
| 213 |
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.test-case] |
| 214 |
version = "3" |
| 215 |
|
| 216 |
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tokio] |
| 217 |
version = "1" |
| 218 |
features = [ |
| 219 |
"macros", |
| 220 |
"rt", |
| 221 |
] |
| 222 |
|
| 223 |
[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom] |
| 224 |
version = "0.3.4" |
| 225 |
features = ["wasm_js"] |
| 226 |
|
| 227 |
[target.'cfg(target_arch = "wasm32")'.dependencies.reqwest] |
| 228 |
version = "0.12" |
| 229 |
features = ["json"] |
| 230 |
optional = true |
| 231 |
default-features = false |
| 232 |
|
| 233 |
[target.'cfg(target_arch = "wasm32")'.dependencies.tokio] |
| 234 |
version = "1.0" |
| 235 |
features = ["rt"] |
| 236 |
optional = true |
| 237 |
|
| 238 |
[lints.clippy] |
| 239 |
dbg_macro = "warn" |
| 240 |
empty_drop = "warn" |
| 241 |
empty_structs_with_brackets = "warn" |
| 242 |
exit = "warn" |
| 243 |
get_unwrap = "warn" |
| 244 |
module_name_repetitions = "allow" |
| 245 |
print_stderr = "warn" |
| 246 |
print_stdout = "warn" |
| 247 |
rc_buffer = "warn" |
| 248 |
rc_mutex = "warn" |
| 249 |
rest_pat_in_fully_bound_structs = "warn" |
| 250 |
similar_names = "allow" |
| 251 |
too_many_arguments = "allow" |
| 252 |
too_many_lines = "allow" |
| 253 |
|
| 254 |
[lints.clippy.pedantic] |
| 255 |
level = "warn" |
| 256 |
priority = -2 |
| 257 |
|
| 258 |
[lints.rust] |
| 259 |
unreachable_pub = "warn" |
| 260 |
unsafe_code = "warn" |