mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 10:14:06 +02:00
update schemars to 1.0
This commit is contained in:
parent
6143e0289b
commit
b500fe772a
5 changed files with 11641 additions and 8280 deletions
38
Cargo.lock
generated
38
Cargo.lock
generated
|
|
@ -74,12 +74,11 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "bitbuffer"
|
||||
version = "0.11.2"
|
||||
version = "0.11.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8707b18023dbbf401eaebe692c75b49390d6b6cdd5df93c4bc04049bb2817b48"
|
||||
checksum = "a038963f920d4f5830694cdbb826827970608a42c02e7337337bd4c2086bd314"
|
||||
dependencies = [
|
||||
"bitbuffer_derive",
|
||||
"memchr",
|
||||
"num-traits",
|
||||
"schemars",
|
||||
"serde",
|
||||
|
|
@ -304,9 +303,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "itertools"
|
||||
version = "0.13.0"
|
||||
version = "0.14.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
|
||||
checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285"
|
||||
dependencies = [
|
||||
"either",
|
||||
]
|
||||
|
|
@ -580,6 +579,26 @@ dependencies = [
|
|||
"proc-macro2",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ref-cast"
|
||||
version = "1.0.24"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "4a0ae411dbe946a674d89546582cea4ba2bb8defac896622d6496f14c23ba5cf"
|
||||
dependencies = [
|
||||
"ref-cast-impl",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ref-cast-impl"
|
||||
version = "1.0.24"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1165225c21bff1f3bbce98f5a1f889949bc902d3575308cc7b0de30b4f6d27c7"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"syn",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "regex"
|
||||
version = "1.10.5"
|
||||
|
|
@ -651,11 +670,12 @@ checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f"
|
|||
|
||||
[[package]]
|
||||
name = "schemars"
|
||||
version = "0.8.21"
|
||||
version = "1.0.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "09c024468a378b7e36765cd36702b7a90cc3cba11654f6685c8f233408e89e92"
|
||||
checksum = "82d20c4491bc164fa2f6c5d44565947a52ad80b9505d8e36f8d54c27c739fcd0"
|
||||
dependencies = [
|
||||
"dyn-clone",
|
||||
"ref-cast",
|
||||
"schemars_derive",
|
||||
"serde",
|
||||
"serde_json",
|
||||
|
|
@ -663,9 +683,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "schemars_derive"
|
||||
version = "0.8.21"
|
||||
version = "1.0.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b1eee588578aff73f856ab961cd2f79e36bc45d7ded33a7562adba4667aecc0e"
|
||||
checksum = "33d020396d1d138dc19f1165df7545479dcd58d93810dc5d646a16e55abefa80"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ name = "direct_hits"
|
|||
path = "src/bin/direct_hits.rs"
|
||||
|
||||
[dependencies]
|
||||
bitbuffer = { version = "0.11.0", features = ["serde"] }
|
||||
bitbuffer = { version = "0.11.3", features = ["serde"] }
|
||||
num_enum = "0.7.2"
|
||||
num-traits = "0.2.19"
|
||||
enumflags2 = { version = "0.7.10", features = ["serde"] }
|
||||
|
|
@ -62,11 +62,11 @@ better-panic = { version = "0.3.0", optional = true }
|
|||
fnv = "1.0.7"
|
||||
tracing = { version = "0.1.40", optional = true }
|
||||
tracing-subscriber = { version = "0.3.18", features = ["env-filter"], optional = true }
|
||||
itertools = "0.13.0"
|
||||
itertools = "0.14.0"
|
||||
const-fnv1a-hash = "1.1.0"
|
||||
|
||||
# schema
|
||||
schemars = { version = "0.8.21", optional = true }
|
||||
schemars = { version = "1.0.4", optional = true }
|
||||
|
||||
# codegen
|
||||
quote = { version = "1", optional = true }
|
||||
|
|
@ -80,7 +80,7 @@ prettyplease = { version = "0.2", optional = true }
|
|||
log = { version = "0.4.21", features = [] }
|
||||
|
||||
[features]
|
||||
schema = ["schemars", "bitbuffer/schemars"]
|
||||
schema = ["schemars", "bitbuffer/schemars_1"]
|
||||
trace = ["tracing", "tracing-subscriber"]
|
||||
codegen = ["better-panic", "quote", "syn", "Inflector", "proc-macro2", "tempfile", "lazy_static", "prettyplease"]
|
||||
write = []
|
||||
|
|
|
|||
17047
schema.json
17047
schema.json
File diff suppressed because it is too large
Load diff
|
|
@ -125,11 +125,11 @@ impl<'de> Deserialize<'de> for MaybeUtf8String {
|
|||
|
||||
#[cfg(feature = "schema")]
|
||||
impl schemars::JsonSchema for MaybeUtf8String {
|
||||
fn schema_name() -> String {
|
||||
fn schema_name() -> std::borrow::Cow<'static, str> {
|
||||
String::schema_name()
|
||||
}
|
||||
|
||||
fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema {
|
||||
fn json_schema(gen: &mut schemars::SchemaGenerator) -> schemars::Schema {
|
||||
String::json_schema(gen)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -332,11 +332,11 @@ pub struct SendPropFlags(BitFlags<SendPropFlag>);
|
|||
|
||||
#[cfg(feature = "schemars")]
|
||||
impl schemars::JsonSchema for SendPropFlags {
|
||||
fn schema_name() -> String {
|
||||
fn schema_name() -> std::borrow::Cow<'static, str> {
|
||||
"SendPropFlags".into()
|
||||
}
|
||||
|
||||
fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema {
|
||||
fn json_schema(gen: &mut schemars::SchemaGenerator) -> schemars::Schema {
|
||||
u16::json_schema(gen)
|
||||
}
|
||||
}
|
||||
|
|
@ -1240,11 +1240,11 @@ impl Serialize for SendPropIdentifier {
|
|||
|
||||
#[cfg(feature = "schema")]
|
||||
impl schemars::JsonSchema for SendPropIdentifier {
|
||||
fn schema_name() -> String {
|
||||
fn schema_name() -> std::borrow::Cow<'static, str> {
|
||||
"SendPropIdentifier".into()
|
||||
}
|
||||
|
||||
fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema {
|
||||
fn json_schema(gen: &mut schemars::SchemaGenerator) -> schemars::Schema {
|
||||
<String as schemars::JsonSchema>::json_schema(gen)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue