chore: update ts-rs dep (#6517)
This commit is contained in:
committed by
GitHub
parent
c3a8fa8d0d
commit
4c007669f9
Generated
+4
-5
@@ -12229,11 +12229,10 @@ checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
|
||||
|
||||
[[package]]
|
||||
name = "ts-rs"
|
||||
version = "10.1.0"
|
||||
version = "12.0.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e640d9b0964e9d39df633548591090ab92f7a4567bc31d3891af23471a3365c6"
|
||||
checksum = "756050066659291d47a554a9f558125db17428b073c5ffce1daf5dcb0f7231d8"
|
||||
dependencies = [
|
||||
"lazy_static",
|
||||
"thiserror 2.0.12",
|
||||
"ts-rs-macros",
|
||||
]
|
||||
@@ -12255,9 +12254,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "ts-rs-macros"
|
||||
version = "10.1.0"
|
||||
version = "12.0.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0e9d8656589772eeec2cf7a8264d9cda40fb28b9bc53118ceb9e8c07f8f38730"
|
||||
checksum = "38d90eea51bc7988ef9e674bf80a85ba6804739e535e9cab48e4bb34a8b652aa"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
|
||||
+1
-1
@@ -376,7 +376,7 @@ tracing-opentelemetry = "0.32.1"
|
||||
tracing-subscriber = "0.3.20"
|
||||
tracing-indicatif = "0.3.9"
|
||||
tracing-test = "0.2.5"
|
||||
ts-rs = "10.1.0"
|
||||
ts-rs = "12.0.1"
|
||||
tungstenite = { version = "0.20.1", default-features = false }
|
||||
typed-builder = "0.23.0"
|
||||
uniffi = "0.29.2"
|
||||
|
||||
Generated
+4
-5
@@ -8534,20 +8534,19 @@ checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
|
||||
|
||||
[[package]]
|
||||
name = "ts-rs"
|
||||
version = "10.1.0"
|
||||
version = "12.0.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e640d9b0964e9d39df633548591090ab92f7a4567bc31d3891af23471a3365c6"
|
||||
checksum = "756050066659291d47a554a9f558125db17428b073c5ffce1daf5dcb0f7231d8"
|
||||
dependencies = [
|
||||
"lazy_static",
|
||||
"thiserror 2.0.12",
|
||||
"ts-rs-macros",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ts-rs-macros"
|
||||
version = "10.1.0"
|
||||
version = "12.0.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0e9d8656589772eeec2cf7a8264d9cda40fb28b9bc53118ceb9e8c07f8f38730"
|
||||
checksum = "38d90eea51bc7988ef9e674bf80a85ba6804739e535e9cab48e4bb34a8b652aa"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
|
||||
@@ -12,7 +12,7 @@ serde_json = "1.0"
|
||||
strum = { version = "0.27.2", features = ["derive"] }
|
||||
strum_macros = "0.27.2"
|
||||
|
||||
ts-rs = "10.0.0"
|
||||
ts-rs = "12.0.1"
|
||||
|
||||
cosmwasm-std = "=2.2.2"
|
||||
cosmrs = { version = "0.22.0" }
|
||||
|
||||
@@ -71,7 +71,7 @@ nym-store-cipher = { path = "../../common/store-cipher", features = ["json"] }
|
||||
nym-crypto = { path = "../../common/crypto", features = ["rand"] }
|
||||
rand_chacha = "0.3"
|
||||
tempfile = "3.3.0"
|
||||
ts-rs = "10.0.0"
|
||||
ts-rs = "12.0.1"
|
||||
|
||||
[features]
|
||||
default = ["custom-protocol"]
|
||||
|
||||
@@ -46,17 +46,23 @@ use nym_wallet_types::interval::Interval;
|
||||
use nym_wallet_types::network::Network;
|
||||
use nym_wallet_types::network_config::{Validator, ValidatorUrl, ValidatorUrls};
|
||||
use std::path::Path;
|
||||
use std::sync::OnceLock;
|
||||
use ts_rs::TS;
|
||||
use walkdir::WalkDir;
|
||||
|
||||
fn ts_rs_config() -> &'static ts_rs::Config {
|
||||
static TS_RS_CONFIG: OnceLock<ts_rs::Config> = OnceLock::new();
|
||||
TS_RS_CONFIG.get_or_init(ts_rs::Config::default)
|
||||
}
|
||||
|
||||
macro_rules! do_export {
|
||||
($a:ty) => {{
|
||||
match <$a>::export() {
|
||||
match <$a>::export(ts_rs_config()) {
|
||||
Ok(()) => {
|
||||
println!("✅ {}", <$a>::name());
|
||||
println!("✅ {}", <$a>::name(ts_rs_config()));
|
||||
}
|
||||
Err(e) => {
|
||||
println!("❌ {} failed: {}", <$a>::name(), e);
|
||||
println!("❌ {} failed: {}", <$a>::name(ts_rs_config()), e);
|
||||
}
|
||||
}
|
||||
}};
|
||||
|
||||
Reference in New Issue
Block a user