Преглед изворни кода

Missing rustqlite bundled-sqlcipher feature added

aggstam пре 3 година
родитељ
комит
611bd9734b
3 измењених фајлова са 3 додато и 2 уклоњено
  1. 1 0
      Cargo.lock
  2. 1 1
      Cargo.toml
  3. 1 1
      src/contract/test-harness/src/lib.rs

+ 1 - 0
Cargo.lock

@@ -3618,6 +3618,7 @@ version = "0.26.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "afc22eff61b133b115c6e8c74e818c628d6d5e7a502afea6f64dee076dd94326"
 dependencies = [
+ "cc",
  "pkg-config",
  "vcpkg",
 ]

+ 1 - 1
Cargo.toml

@@ -131,7 +131,7 @@ wasmer-compiler-singlepass = {version = "3.3.0", optional = true}
 wasmer-middlewares = {version = "3.3.0", optional = true}
 
 # Wallet management
-rusqlite = {version = "0.29.0", optional = true}
+rusqlite = {version = "0.29.0", features = ["bundled-sqlcipher"], optional = true}
 
 # Blockchain store
 sled = {version = "0.34.7", optional = true}

+ 1 - 1
src/contract/test-harness/src/lib.rs

@@ -131,7 +131,7 @@ impl Wallet {
         genesis_block: &BlockInfo,
         faucet_pubkeys: &[PublicKey],
     ) -> Result<Self> {
-        let wallet = WalletDb::new("sqlite::memory:", "foo").await?;
+        let wallet = WalletDb::new(None, "foo").await?;
         let sled_db = sled::Config::new().temporary(true).open()?;
 
         // Use pregenerated vks