mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 12:48:00 +00:00
71 lines
2.6 KiB
TOML
71 lines
2.6 KiB
TOML
[package]
|
|
name = "subxt-signer"
|
|
version.workspace = true
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
publish = true
|
|
|
|
license.workspace = true
|
|
readme = "README.md"
|
|
repository.workspace = true
|
|
documentation.workspace = true
|
|
homepage.workspace = true
|
|
description = "Sign extrinsics to be submitted by Subxt"
|
|
keywords = ["parity", "subxt", "extrinsic", "signer"]
|
|
|
|
[features]
|
|
default = ["sr25519", "ecdsa", "subxt", "std"]
|
|
std = []
|
|
|
|
# Pick the signer implementation(s) you need by enabling the
|
|
# corresponding features. Note: I had more difficulties getting
|
|
# ecdsa compiling to WASM on my mac; following this comment helped:
|
|
# https://github.com/rust-bitcoin/rust-bitcoin/issues/930#issuecomment-1215538699
|
|
sr25519 = ["schnorrkel"]
|
|
ecdsa = ["secp256k1"]
|
|
|
|
# Make the keypair algorithms here compatible with Subxt's Signer trait,
|
|
# so that they can be used to sign transactions for compatible chains.
|
|
subxt = ["dep:subxt-core"]
|
|
|
|
# The getrandom package is used via schnorrkel. We need to enable the JS
|
|
# feature on it if compiling for the web.
|
|
web = ["getrandom/js"]
|
|
|
|
[dependencies]
|
|
subxt-core = { workspace = true, optional = true, default-features = false }
|
|
regex = { workspace = true, default-features = false }
|
|
hex = { workspace = true }
|
|
codec = { package = "parity-scale-codec", workspace = true, features = ["derive"] }
|
|
sp-core-hashing = { workspace = true, default-features = false }
|
|
derive_more = { workspace = true }
|
|
pbkdf2 = { workspace = true, default-features = false }
|
|
sha2 = { workspace = true, default-features = false }
|
|
hmac = { workspace = true, default-features = false }
|
|
zeroize = { workspace = true }
|
|
bip39 = { workspace = true, default-features = false, features = ["unicode-normalization"] }
|
|
schnorrkel = { workspace = true, optional = true, default-features = false }
|
|
secp256k1 = { workspace = true, optional = true, default-features = false, features = ["alloc", "recovery"] } # features = ["recovery", "global-context"],
|
|
secrecy = { workspace = true }
|
|
|
|
# We only pull this in because `std::sync::OnceLock` is not available in no-std contexts.
|
|
once_cell = { workspace = true, default-features = false, features = ["alloc", "critical-section"] }
|
|
|
|
# We only pull this in to enable the JS flag for schnorrkel to use.
|
|
getrandom = { workspace = true, optional = true }
|
|
|
|
[dev-dependencies]
|
|
sp-core = { workspace = true, default-features = false }
|
|
sp-keyring = { workspace = true }
|
|
|
|
[package.metadata.cargo-machete]
|
|
ignored = ["getrandom"]
|
|
|
|
[package.metadata.docs.rs]
|
|
defalt-features = true
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[package.metadata.playground]
|
|
defalt-features = true
|