diff --git a/dash/Cargo.toml b/dash/Cargo.toml index 7de35a51a..20c5dc54e 100644 --- a/dash/Cargo.toml +++ b/dash/Cargo.toml @@ -4,7 +4,7 @@ version = { workspace = true } authors = [ "Samuel Westrich ", "Anton Suprunchuk ", - "Dmitrii Golubev " + "Dmitrii Golubev ", ] license = "CC0-1.0" homepage = "https://github.com/dashevo/rust-dashcore/" @@ -12,15 +12,15 @@ repository = "https://github.com/dashevo/rust-dashcore/" documentation = "https://dashcore.readme.io/docs" description = "General purpose library for using and interoperating with Dash Core payment chain." categories = ["cryptography::cryptocurrencies"] -keywords = [ "crypto", "dash" ] +keywords = ["crypto", "dash"] readme = "../README.md" exclude = ["tests", "contrib"] edition = "2024" # Please don't forget to add relevant features to docs.rs below [features] -default = [ "std", "secp-recovery", "bincode" ] -base64 = [ "base64-compat" ] +default = ["std", "secp-recovery", "bincode"] +base64 = ["base64-compat"] rand-std = ["secp256k1/rand"] rand = ["secp256k1/rand"] serde = ["actual-serde", "dashcore_hashes/serde", "secp256k1/serde"] @@ -32,7 +32,7 @@ bls = ["blsful"] eddsa = ["ed25519-dalek"] quorum_validation = ["bls", "bls-signatures"] message_verification = ["bls"] -bincode = [ "dep:bincode", "dashcore_hashes/bincode" ] +bincode = ["dep:bincode", "dashcore_hashes/bincode"] # At least one of std, no-std must be enabled. # @@ -40,7 +40,12 @@ bincode = [ "dep:bincode", "dashcore_hashes/bincode" ] # Instead no-std enables additional features required for this crate to be usable without std. # As a result, both can be enabled without conflict. std = ["secp256k1/std", "dashcore_hashes/std", "bech32/std", "internals/std"] -no-std = ["core2", "dashcore_hashes/alloc", "dashcore_hashes/core2", "secp256k1/alloc"] +no-std = [ + "core2", + "dashcore_hashes/alloc", + "dashcore_hashes/core2", + "secp256k1/alloc", +] [package.metadata.docs.rs] all-features = true @@ -48,36 +53,48 @@ rustdoc-args = ["--cfg", "docsrs"] [dependencies] internals = { path = "../internals", package = "dashcore-private" } -bech32 = { version = "0.9.1", default-features = false } +bech32 = { version = "0.11.0", default-features = false } dashcore_hashes = { path = "../hashes", default-features = false } -secp256k1 = { default-features = false, features = ["hashes"], version= "0.30.0" } -core2 = { version = "0.4.0", optional = true, features = ["alloc"], default-features = false } -rustversion = { version="1.0.20"} +secp256k1 = { default-features = false, features = [ + "hashes", +], version = "0.31.1" } +core2 = { version = "0.4.0", optional = true, features = [ + "alloc", +], default-features = false } +rustversion = { version = "1.0.20" } # Do NOT use this as a feature! Use the `serde` feature instead. -actual-serde = { package = "serde", version = "1.0.219", default-features = false, features = [ "derive", "alloc" ], optional = true } +actual-serde = { package = "serde", version = "1.0.219", default-features = false, features = [ + "derive", + "alloc", +], optional = true } base64-compat = { version = "1.0.0", optional = true } bitcoinconsensus = { version = "0.20.2-0.5.0", default-features = false, optional = true } hex_lit = "0.1.1" -anyhow = { version= "1.0" } -hex = { version= "0.4" } -bincode = { version= "=2.0.0-rc.3", optional = true } +anyhow = { version = "1.0" } +hex = { version = "0.4" } +bincode = { version = "=2.0.0-rc.3", optional = true } bitflags = "2.9.0" blsful = { version = "3.0.0-pre8", optional = true } ed25519-dalek = { version = "2.1", features = ["rand_core"], optional = true } blake3 = "1.8.1" thiserror = "2" # version 1.3.5 is 0bb5c5b03249c463debb5cef5f7e52ee66f3aaab -bls-signatures = { git = "https://github.com/dashpay/bls-signatures", rev = "0bb5c5b03249c463debb5cef5f7e52ee66f3aaab", optional = true } +bls-signatures = { git = "https://github.com/dashpay/bls-signatures", rev = "419a1361d74157341a47d54d642f39789f2ca481", optional = true } [dev-dependencies] serde_json = "1.0.140" serde_test = "1.0.177" serde_derive = "1.0.219" -secp256k1 = { features = [ "recovery", "rand", "hashes" ], version="0.30.0" } -bincode = { version= "=2.0.0-rc.3" } +secp256k1 = { features = ["recovery", "rand", "hashes"], version = "0.31.1" } +bincode = { version = "=2.0.0-rc.3" } assert_matches = "1.5.0" -dashcore = { path = ".", features = ["core-block-hash-use-x11", "message_verification", "quorum_validation", "signer"] } +dashcore = { path = ".", features = [ + "core-block-hash-use-x11", + "message_verification", + "quorum_validation", + "signer", +] } [[example]] name = "bip32"