From 02253b302c00fcd4134e84fd4a17ec9ecba39bf0 Mon Sep 17 00:00:00 2001 From: nazo6 Date: Mon, 18 Nov 2024 17:30:36 +0900 Subject: [PATCH] chore: remove specta --- Cargo.lock | 24 ------------------------ Cargo.toml | 1 - lib/rktk-keymanager/Cargo.toml | 3 --- lib/rktk-keymanager/src/macros.rs | 1 - lib/rktk-rrp/Cargo.toml | 2 -- lib/rktk-rrp/src/endpoints.rs | 1 - 6 files changed, 32 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index db6b8453..3ad4383e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2255,7 +2255,6 @@ dependencies = [ "pretty_assertions", "serde", "serde_with", - "specta", "tsify-next", "usbd-hid", "wasm-bindgen", @@ -2275,7 +2274,6 @@ dependencies = [ "rktk-keymanager", "serde", "serde_with", - "specta", "thiserror 2.0.3", "tokio", "tsify-next", @@ -2589,28 +2587,6 @@ dependencies = [ "windows-sys 0.52.0", ] -[[package]] -name = "specta" -version = "2.0.0-rc.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ccbb212565d2dc177bc15ecb7b039d66c4490da892436a4eee5b394d620c9bc" -dependencies = [ - "specta-macros", - "thiserror 1.0.69", -] - -[[package]] -name = "specta-macros" -version = "2.0.0-rc.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68999d29816965eb9e5201f60aec02a76512139811661a7e8e653abc810b8f72" -dependencies = [ - "Inflector", - "proc-macro2", - "quote", - "syn 2.0.87", -] - [[package]] name = "spin" version = "0.9.8" diff --git a/Cargo.toml b/Cargo.toml index d3ebca21..9dbf6cf2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -82,7 +82,6 @@ macro_rules_attribute = "0.2.0" rand_core = "0.6.4" thiserror = { version = "2.0.3", default-features = false } -specta = { version = "2.0.0-rc.20" } tsify-next = { version = "0.5.4", features = ["js"] } wasm-bindgen = "0.2.93" diff --git a/lib/rktk-keymanager/Cargo.toml b/lib/rktk-keymanager/Cargo.toml index 140c4748..40855542 100644 --- a/lib/rktk-keymanager/Cargo.toml +++ b/lib/rktk-keymanager/Cargo.toml @@ -20,8 +20,6 @@ postcard = { workspace = true, optional = true, features = [ "experimental-derive", ] } -specta = { workspace = true, optional = true, features = ["derive"] } - tsify-next = { workspace = true, optional = true } wasm-bindgen = { workspace = true, optional = true } @@ -41,7 +39,6 @@ postcard = ["dep:postcard", "serde"] std = [] # Enables type export by specta. -specta = ["std", "dep:specta", "postcard"] tsify = ["std", "dep:tsify-next", "dep:wasm-bindgen", "postcard"] _check = ["state"] diff --git a/lib/rktk-keymanager/src/macros.rs b/lib/rktk-keymanager/src/macros.rs index 94224051..159a0cce 100644 --- a/lib/rktk-keymanager/src/macros.rs +++ b/lib/rktk-keymanager/src/macros.rs @@ -45,7 +45,6 @@ attribute_alias! { feature = "postcard", derive(postcard::experimental::max_size::MaxSize) )] - #[cfg_attr(feature = "specta", derive(specta::Type))] #[cfg_attr(feature = "tsify", derive(tsify_next::Tsify))] #[cfg_attr(feature = "tsify", tsify(into_wasm_abi, from_wasm_abi))] #[derive(PartialEq, Eq, Clone, Debug)] diff --git a/lib/rktk-rrp/Cargo.toml b/lib/rktk-rrp/Cargo.toml index b5edd9a5..a0b96eea 100644 --- a/lib/rktk-rrp/Cargo.toml +++ b/lib/rktk-rrp/Cargo.toml @@ -22,7 +22,6 @@ heapless = { workspace = true, optional = true } embedded-io-async = { workspace = true, optional = true } # client deps -specta = { workspace = true, optional = true, features = ["derive"] } tsify-next = { workspace = true, optional = true } wasm-bindgen = { workspace = true, optional = true } @@ -38,7 +37,6 @@ client = ["std"] std = ["postcard/use-std", "futures/std"] -specta = ["dep:specta", "rktk-keymanager/specta"] tsify = ["dep:tsify-next", "dep:wasm-bindgen", "rktk-keymanager/tsify"] _check = ["server", "client"] diff --git a/lib/rktk-rrp/src/endpoints.rs b/lib/rktk-rrp/src/endpoints.rs index f18b5975..8822322e 100644 --- a/lib/rktk-rrp/src/endpoints.rs +++ b/lib/rktk-rrp/src/endpoints.rs @@ -27,7 +27,6 @@ pub use test_endpoints::*; attribute_alias! { #[apply(common_derive)] = #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq, Eq)] - #[cfg_attr(feature = "specta", derive(specta::Type))] #[cfg_attr(feature = "tsify", derive(tsify_next::Tsify))] #[cfg_attr(feature = "tsify", tsify(into_wasm_abi, from_wasm_abi))] #[cfg_attr(