diff --git a/Cargo.lock b/Cargo.lock index e7ac29f..33c4162 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -42,6 +42,12 @@ dependencies = [ "cty", ] +[[package]] +name = "buddy-alloc" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ff9f338986406db85e2b5deb40a9255b796ca03a194c7457403d215173f3fd5" + [[package]] name = "bytes" version = "1.1.0" @@ -173,6 +179,28 @@ dependencies = [ "serde", ] +[[package]] +name = "ckb-standalone-types" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22d7cbbdab96e6b809a102cf88bfec28795a0a3c06bfdea4abe4de89777801cd" +dependencies = [ + "cfg-if 1.0.0", + "molecule", +] + +[[package]] +name = "ckb-std" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47a6ad40455c446ad6fbb303dae24827fc309f43558f59d1f1b863a9de3e9f81" +dependencies = [ + "buddy-alloc", + "cc", + "ckb-standalone-types", + "cstr_core", +] + [[package]] name = "ckb-types" version = "0.103.0" @@ -197,10 +225,11 @@ dependencies = [ [[package]] name = "cota-smt" -version = "0.8.0" +version = "0.9.0" dependencies = [ "blake2b-ref 0.3.1", "cfg-if 1.0.0", + "ckb-std", "ckb-types", "molecule", "sparse-merkle-tree", @@ -226,6 +255,16 @@ dependencies = [ "lazy_static", ] +[[package]] +name = "cstr_core" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd98742e4fdca832d40cab219dc2e3048de17d873248f83f17df47c1bea70956" +dependencies = [ + "cty", + "memchr", +] + [[package]] name = "cty" version = "0.2.2" @@ -281,6 +320,12 @@ version = "0.2.109" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f98a04dce437184842841303488f70d0188c5f51437d2a834dc097eafa909a01" +[[package]] +name = "memchr" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" + [[package]] name = "merkle-cbt" version = "0.3.0" diff --git a/Cargo.toml b/Cargo.toml index 4ff802c..9a1be28 100755 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" [dependencies] cfg-if = "1.0" blake2b-ref = "0.3.1" -ckb-std = "0.10.0" +ckb-std = {version = "0.10.0", optional = true} ckb-types = {version = "0.103.0", optional = true} molecule = {version = "0.7.2", default_features = false, optional = true} sparse-merkle-tree = {version = "0.6.1", default_features = false}