Переглянути джерело

chore: remove unused features

thesimplekid 11 місяців тому
батько
коміт
c8e61b34b8
2 змінених файлів з 4 додано та 7 видалено
  1. 1 2
      .github/workflows/ci.yml
  2. 3 5
      crates/cdk/Cargo.toml

+ 1 - 2
.github/workflows/ci.yml

@@ -29,8 +29,7 @@ jobs:
             -p cdk,
             -p cdk --no-default-features,
             -p cdk --no-default-features --features wallet,
-            -p cdk --no-default-features --features mint --features redb,
-            -p cdk --no-default-features --features wallet --features redb,
+            -p cdk --no-default-features --features mint,
             -p cdk --no-default-features --features all-nuts,
             -p cdk-redb
           ]

+ 3 - 5
crates/cdk/Cargo.toml

@@ -10,21 +10,20 @@ license.workspace = true
 
 
 [features]
-default = ["mint", "wallet", "all-nuts", "redb"]
+default = ["mint", "wallet", "all-nuts"]
 mint = ["dep:bip39"]
 wallet = ["nut13", "dep:bip39", "dep:reqwest"]
 all-nuts = ["nut13"]
 nut13 = ["dep:bip39"]
-redb = ["dep:redb"]
 
 
 [dependencies]
 async-trait = "0.1"
-base64 = "0.21" # bitcoin uses v0.21 (optional dep)
+base64 = "0.22" # bitcoin uses v0.13 (optional dep)
 bip39 = { version = "2.0", optional = true }
 bitcoin = { version = "0.30", features = ["serde", "rand", "rand-std"] } # lightning-invoice uses v0.30
 http = "1.0"
-lightning-invoice = { version = "0.29", features = ["serde"] }
+lightning-invoice = { version = "0.30", features = ["serde"] }
 once_cell = "1.19"
 reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls", "socks"], optional = true }
 serde = { version = "1.0", default-features = false, features = ["derive"]}
@@ -37,7 +36,6 @@ uuid = { version = "1.6", features = ["v4"] }
 
 [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
 tokio = { workspace = true, features = ["rt-multi-thread", "time", "macros", "sync"] }
-redb = { version = "2.0", optional = true }
 
 [target.'cfg(target_arch = "wasm32")'.dependencies]
 tokio = { workspace = true, features = ["rt", "macros", "sync", "time"] }