diff --git a/Cargo.lock b/Cargo.lock index d0e57768d..4f5b17a2a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -346,6 +346,7 @@ dependencies = [ "blst", "bytes", "cita_trie 4.1.0", + "ckb-blst", "derive_more", "eth_light_client_in_ckb-prover", "ethereum", @@ -943,6 +944,17 @@ dependencies = [ "rlp", ] +[[package]] +name = "ckb-blst" +version = "0.100.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23956c8f956fabab27aa20632fcefb1ab31f71544dab732c842064605932aea3" +dependencies = [ + "cc", + "glob", + "zeroize", +] + [[package]] name = "ckb-chain-spec" version = "0.111.0" diff --git a/devtools/axon-tools/Cargo.toml b/devtools/axon-tools/Cargo.toml index 4e0c9abbb..6beb2b937 100644 --- a/devtools/axon-tools/Cargo.toml +++ b/devtools/axon-tools/Cargo.toml @@ -13,6 +13,10 @@ description = """ Some axon related utilities. """ +[package.metadata.docs.rs] +all-features = true +rustdoc-args = ["--cfg", "doc_cfg"] + [dev-dependencies] eth_light_client_in_ckb-prover = { version = "0.3.0-alpha", git = "https://github.com/synapseweb3/eth-light-client-in-ckb" } ethereum = "0.14" @@ -30,20 +34,12 @@ impl-rlp = ["rlp", "rlp-derive", "ethereum-types/rlp"] impl-serde = ["serde", "ethereum-types/serialize"] std = ["cita_trie", "hex", "log", "derive_more", "serde_json"] -[package.metadata.docs.rs] -all-features = true -rustdoc-args = ["--cfg", "doc_cfg"] - # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies.bit-vec] version = "0.6" default_features = false optional = true -[dependencies.blst] -version = "0.3" -optional = true - [dependencies.bytes] version = "1.4" default-features = false @@ -95,3 +91,9 @@ optional = true version = "2.0" optional = true features = ["keccak"] + +[target.'cfg(target_arch = "riscv64")'.dependencies] +blst = { version = "0.100", package = "ckb-blst", optional = true } + +[target.'cfg(not(target_arch = "riscv64"))'.dependencies] +blst = { version = "0.3", optional = true }