# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "sp-core" version = "34.0.0" authors = ["Parity Technologies "] description = "Shareable Substrate types. (polkadot v1.13.0)" homepage = "https://substrate.io" documentation = "https://docs.rs/sp-core" license = "Apache-2.0" repository = "https://github.com/paritytech/polkadot-sdk.git" [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [lib] bench = false [[bench]] name = "bench" harness = false [dependencies.array-bytes] version = "6.2.2" [dependencies.bip39] version = "2.0.1" features = ["alloc"] default-features = false package = "parity-bip39" [dependencies.bitflags] version = "1.3" [dependencies.blake2] version = "0.10.4" optional = true default-features = false [dependencies.bounded-collections] version = "0.2.0" default-features = false [dependencies.bs58] version = "0.5.0" optional = true default-features = false [dependencies.codec] version = "3.6.12" features = [ "derive", "max-encoded-len", ] default-features = false package = "parity-scale-codec" [dependencies.dyn-clonable] version = "0.9.0" optional = true [dependencies.ed25519-zebra] version = "4.0.3" default-features = false [dependencies.futures] version = "0.3.30" optional = true [dependencies.hash-db] version = "0.16.0" default-features = false [dependencies.hash256-std-hasher] version = "0.15.2" default-features = false [dependencies.impl-serde] version = "0.4.0" optional = true default-features = false [dependencies.itertools] version = "0.11" optional = true [dependencies.k256] version = "0.13.3" features = [ "alloc", "ecdsa", ] default-features = false [dependencies.libsecp256k1] version = "0.7" features = ["static-context"] default-features = false [dependencies.log] version = "0.4.21" default-features = false [dependencies.merlin] version = "3.0" default-features = false [dependencies.parking_lot] version = "0.12.1" optional = true [dependencies.paste] version = "1.0.7" [dependencies.primitive-types] version = "0.12.0" features = [ "codec", "scale-info", ] default-features = false [dependencies.rand] version = "0.8.5" features = ["small_rng"] optional = true [dependencies.scale-info] version = "2.5.0" features = ["derive"] default-features = false [dependencies.schnorrkel] version = "0.11.4" features = ["preaudit_deprecated"] default-features = false [dependencies.secp256k1] version = "0.28.0" features = [ "alloc", "recovery", ] optional = true default-features = false [dependencies.secrecy] version = "0.8.0" features = ["alloc"] default-features = false [dependencies.serde] version = "1.0.197" features = [ "alloc", "derive", ] optional = true default-features = false [dependencies.sp-crypto-hashing] version = "0.1.0" default-features = false [dependencies.sp-debug-derive] version = "14.0.0" default-features = false [dependencies.sp-externalities] version = "0.29.0" optional = true default-features = false [dependencies.sp-runtime-interface] version = "28.0.0" default-features = false [dependencies.sp-std] version = "14.0.0" default-features = false [dependencies.sp-storage] version = "21.0.0" default-features = false [dependencies.ss58-registry] version = "1.34.0" default-features = false [dependencies.substrate-bip39] version = "0.6.0" default-features = false [dependencies.thiserror] version = "1.0.48" optional = true [dependencies.tracing] version = "0.1.29" optional = true [dependencies.w3f-bls] version = "0.1.3" optional = true default-features = false [dependencies.zeroize] version = "1.4.3" default-features = false [dev-dependencies.criterion] version = "0.5.1" [dev-dependencies.lazy_static] version = "1.4.0" [dev-dependencies.regex] version = "1.6.0" [dev-dependencies.serde_json] version = "1.0.114" default-features = true [features] bls-experimental = ["w3f-bls"] default = ["std"] full_crypto = [ "blake2", "sp-runtime-interface/disable_target_static_assertions", ] serde = [ "blake2", "bounded-collections/serde", "bs58/alloc", "dep:serde", "impl-serde", "k256/serde", "primitive-types/serde_no_std", "scale-info/serde", "sp-storage/serde", ] std = [ "bip39/rand", "bip39/std", "blake2/std", "bounded-collections/std", "bs58/std", "codec/std", "dyn-clonable", "ed25519-zebra/std", "full_crypto", "futures", "futures/thread-pool", "hash-db/std", "hash256-std-hasher/std", "impl-serde/std", "itertools", "k256/std", "libsecp256k1/std", "log/std", "merlin/std", "parking_lot", "primitive-types/byteorder", "primitive-types/rustc-hex", "primitive-types/serde", "primitive-types/std", "rand", "scale-info/std", "schnorrkel/std", "secp256k1/global-context", "secp256k1/std", "serde/std", "sp-crypto-hashing/std", "sp-debug-derive/std", "sp-externalities/std", "sp-runtime-interface/std", "sp-std/std", "sp-storage/std", "ss58-registry/std", "substrate-bip39/std", "thiserror", "tracing", "w3f-bls?/std", "zeroize/alloc", "zeroize/std", ] [lints.clippy.all] level = "allow" priority = 0 [lints.clippy.bind_instead_of_map] level = "allow" priority = 2 [lints.clippy.borrowed-box] level = "allow" priority = 2 [lints.clippy.complexity] level = "warn" priority = 1 [lints.clippy.correctness] level = "warn" priority = 1 [lints.clippy.default_constructed_unit_structs] level = "allow" priority = 2 [lints.clippy.derivable_impls] level = "allow" priority = 2 [lints.clippy.eq_op] level = "allow" priority = 2 [lints.clippy.erasing_op] level = "allow" priority = 2 [lints.clippy.extra-unused-type-parameters] level = "allow" priority = 2 [lints.clippy.identity-op] level = "allow" priority = 2 [lints.clippy.if-same-then-else] level = "allow" priority = 2 [lints.clippy.needless-lifetimes] level = "allow" priority = 2 [lints.clippy.needless_option_as_deref] level = "allow" priority = 2 [lints.clippy.nonminimal-bool] level = "allow" priority = 2 [lints.clippy.option-map-unit-fn] level = "allow" priority = 2 [lints.clippy.stable_sort_primitive] level = "allow" priority = 2 [lints.clippy.too-many-arguments] level = "allow" priority = 2 [lints.clippy.type_complexity] level = "allow" priority = 2 [lints.clippy.unit_arg] level = "allow" priority = 2 [lints.clippy.unnecessary_cast] level = "allow" priority = 2 [lints.clippy.useless_conversion] level = "allow" priority = 2 [lints.clippy.while_immutable_condition] level = "allow" priority = 2 [lints.clippy.zero-prefixed-literal] level = "allow" priority = 2 [lints.rust.suspicious_double_ref_op] level = "allow" priority = 2