mirror of
https://github.com/Blah-IM/blahrs.git
synced 2025-09-13 05:55:22 +00:00
build(deps): update dependencies
This includes: - mock_instant 0.5 -> 0.6 - rstest 0.24 -> 0.26 - rusqlite 0.34 -> 0.37 - schemars 0.8 -> 1.0 - serde-inline-default 0.2 -> 1.0 - tokio-tungstenite 0.26 -> 0.27 Only schemars update needs some minor code changes.
This commit is contained in:
parent
03a72736ea
commit
b97ce5f29c
5 changed files with 508 additions and 467 deletions
|
@ -27,20 +27,20 @@ thiserror = "2"
|
|||
url = { version = "2", features = ["serde"] }
|
||||
|
||||
[dependencies.rusqlite]
|
||||
version = "0.34"
|
||||
version = "0.37"
|
||||
optional = true
|
||||
|
||||
[dependencies.schemars]
|
||||
version = "0.8"
|
||||
version = "1"
|
||||
optional = true
|
||||
features = ["url"]
|
||||
features = ["url2"]
|
||||
|
||||
[dependencies.mock_instant]
|
||||
version = "0.5"
|
||||
version = "0.6"
|
||||
optional = true
|
||||
|
||||
[dev-dependencies]
|
||||
criterion = "0.5"
|
||||
criterion = "0.7"
|
||||
ed25519-dalek = { version = "2", features = ["rand_core"] }
|
||||
expect-test = "1"
|
||||
# WAIT: https://github.com/dalek-cryptography/curve25519-dalek/issues/731
|
||||
|
|
|
@ -11,12 +11,12 @@ macro_rules! impl_json_schema_as {
|
|||
($($tt:tt)*) => {};
|
||||
}
|
||||
|
||||
// Workaround: https://github.com/GREsau/schemars/issues/267
|
||||
// TODO: https://github.com/GREsau/schemars/issues/267
|
||||
#[cfg(feature = "schemars")]
|
||||
macro_rules! impl_json_schema_as {
|
||||
($ty:ty => $as_ty:ty) => {
|
||||
impl schemars::JsonSchema for $ty {
|
||||
fn schema_name() -> String {
|
||||
fn schema_name() -> std::borrow::Cow<'static, str> {
|
||||
stringify!($ty).into()
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,7 @@ macro_rules! impl_json_schema_as {
|
|||
concat!(module_path!(), "::", stringify!($ty)).into()
|
||||
}
|
||||
|
||||
fn json_schema(g: &mut schemars::r#gen::SchemaGenerator) -> schemars::schema::Schema {
|
||||
fn json_schema(g: &mut schemars::SchemaGenerator) -> schemars::Schema {
|
||||
g.subschema_for::<$as_ty>()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue