Browse Source

chore: use workspace deps

thesimplekid 10 months ago
parent
commit
7c9b61aab6
4 changed files with 8 additions and 5 deletions
  1. 2 0
      Cargo.toml
  2. 3 2
      bindings/cdk-js/Cargo.toml
  3. 2 2
      crates/cdk-rexie/Cargo.toml
  4. 1 1
      crates/cdk/src/nuts/nut11/mod.rs

+ 2 - 0
Cargo.toml

@@ -32,6 +32,8 @@ thiserror = "1"
 tracing = { version = "0.1", default-features = false }
 tracing = { version = "0.1", default-features = false }
 serde = { version = "1", default-features = false, features = ["derive"] }
 serde = { version = "1", default-features = false, features = ["derive"] }
 serde_json = "1"
 serde_json = "1"
+serde-wasm-bindgen = { version = "0.6.5", default-features = false }
+web-sys =  { version = "0.3.68", default-features = false, features = ["console"] }
 uniffi = { version = "0.27.1", default-features = false }
 uniffi = { version = "0.27.1", default-features = false }
 
 
 [profile]
 [profile]

+ 3 - 2
bindings/cdk-js/Cargo.toml

@@ -6,6 +6,7 @@ license.workspace = true
 homepage.workspace = true
 homepage.workspace = true
 repository.workspace = true
 repository.workspace = true
 rust-version.workspace = true
 rust-version.workspace = true
+description = "Cashu Development Kit JS Bindings"
 
 
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
 [lib]
 [lib]
@@ -16,9 +17,9 @@ cdk = { workspace = true, features = ["wallet"] }
 cdk-rexie = { workspace = true, features = ["wallet"] }
 cdk-rexie = { workspace = true, features = ["wallet"] }
 console_error_panic_hook = "0.1"
 console_error_panic_hook = "0.1"
 js-sys = "0.3"
 js-sys = "0.3"
-serde-wasm-bindgen = "0.6"
+serde-wasm-bindgen.workspace = true
 serde_json.workspace = true
 serde_json.workspace = true
 serde.workspace = true
 serde.workspace = true
 wasm-bindgen = { version = "0.2.92", features = ["serde-serialize"] }
 wasm-bindgen = { version = "0.2.92", features = ["serde-serialize"] }
 wasm-bindgen-futures = "0.4.41"
 wasm-bindgen-futures = "0.4.41"
-web-sys =  { version = "0.3.68", features = ["console"] }
+web-sys.workspace = true

+ 2 - 2
crates/cdk-rexie/Cargo.toml

@@ -20,5 +20,5 @@ tokio.workspace = true
 serde.workspace = true
 serde.workspace = true
 serde_json.workspace = true
 serde_json.workspace = true
 thiserror.workspace = true
 thiserror.workspace = true
-serde-wasm-bindgen = "0.6.5"
-web-sys = { version = "0.3", features = ["console"] }
+serde-wasm-bindgen.workspace = true
+web-sys.workspace = true

+ 1 - 1
crates/cdk/src/nuts/nut11/mod.rs

@@ -309,7 +309,7 @@ impl SpendingConditions {
         match self {
         match self {
             Self::P2PKConditions { data, conditions } => {
             Self::P2PKConditions { data, conditions } => {
                 let mut pubkeys = vec![data.clone()];
                 let mut pubkeys = vec![data.clone()];
-                pubkeys.extend(conditions.pubkeys.clone().unwrap_or_default().into_iter());
+                pubkeys.extend(conditions.pubkeys.clone().unwrap_or_default());
 
 
                 Some(pubkeys)
                 Some(pubkeys)
             }
             }