Upgrade validator

This commit is contained in:
Kitaiti Makoto 2022-01-07 04:55:41 +09:00
parent ec12539fd0
commit 237da47950
2 changed files with 50 additions and 15 deletions

62
Cargo.lock generated
View File

@ -1889,9 +1889,9 @@ dependencies = [
[[package]] [[package]]
name = "if_chain" name = "if_chain"
version = "0.1.3" version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4bac95d9aa0624e7b78187d6fb8ab012b41d9f6f54b1bcb61e61c4845f8357ec" checksum = "cb56e1aa765b4b4f3aadfab769793b7087bb03a4ea4920644a6d238e2df5b9ed"
[[package]] [[package]]
name = "indexmap" name = "indexmap"
@ -3046,7 +3046,6 @@ dependencies = [
"tracing", "tracing",
"tracing-subscriber", "tracing-subscriber",
"validator", "validator",
"validator_derive",
"webfinger", "webfinger",
] ]
@ -3198,6 +3197,30 @@ version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c"
[[package]]
name = "proc-macro-error"
version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
dependencies = [
"proc-macro-error-attr",
"proc-macro2 1.0.36",
"quote 1.0.14",
"syn 1.0.85",
"version_check 0.9.4",
]
[[package]]
name = "proc-macro-error-attr"
version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
dependencies = [
"proc-macro2 1.0.36",
"quote 1.0.14",
"version_check 0.9.4",
]
[[package]] [[package]]
name = "proc-macro-hack" name = "proc-macro-hack"
version = "0.4.3" version = "0.4.3"
@ -5225,32 +5248,45 @@ dependencies = [
[[package]] [[package]]
name = "validator" name = "validator"
version = "0.8.0" version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "236a5eda3df2c877872e98dbc55d497d943792e6405d8fc65bd4f8a5e3b53c99" checksum = "6d0f08911ab0fee2c5009580f04615fa868898ee57de10692a45da0c3bcc3e5e"
dependencies = [ dependencies = [
"idna 0.1.5", "idna 0.2.3",
"lazy_static", "lazy_static",
"regex", "regex",
"serde 1.0.133", "serde 1.0.133",
"serde_derive", "serde_derive",
"serde_json", "serde_json",
"url 1.7.2", "url 2.2.2",
"validator_derive",
"validator_types",
] ]
[[package]] [[package]]
name = "validator_derive" name = "validator_derive"
version = "0.8.0" version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d360d6f5754972c0c1da14fb3d5580daa31aee566e1e45e2f8d3bf5950ecd3e9" checksum = "d85135714dba11a1bd0b3eb1744169266f1a38977bf4e3ff5e2e1acb8c2b7eee"
dependencies = [ dependencies = [
"if_chain", "if_chain",
"lazy_static", "lazy_static",
"proc-macro2 0.4.30", "proc-macro-error",
"quote 0.6.13", "proc-macro2 1.0.36",
"quote 1.0.14",
"regex", "regex",
"syn 0.15.44", "syn 1.0.85",
"validator", "validator_types",
]
[[package]]
name = "validator_types"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ded9d97e1d42327632f5f3bae6403c04886e2de3036261ef42deebd931a6a291"
dependencies = [
"proc-macro2 1.0.36",
"syn 1.0.85",
] ]
[[package]] [[package]]

View File

@ -25,8 +25,7 @@ scheduled-thread-pool = "0.2.2"
serde = "1.0" serde = "1.0"
serde_json = "1.0.70" serde_json = "1.0.70"
shrinkwraprs = "0.2.1" shrinkwraprs = "0.2.1"
validator = "0.8" validator = { version = "0.14", features = ["derive"] }
validator_derive = "0.8"
webfinger = "0.4.1" webfinger = "0.4.1"
tracing = "0.1.22" tracing = "0.1.22"
tracing-subscriber = "0.2.15" tracing-subscriber = "0.2.15"