mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 08:07:58 +00:00
057636fd1f
* Remove footgun around session keys/handlers - `OpaqueKeys` now has an associated type `KeyTypeIdProviders`. This can be used in the runtime as input for `SessionHandler` from the session trait. - `impl_opaque_keys` now works with modules and extracts the `KeyTypeId` from the module directly. - Added some checks to the `session` storage initialization that checks that the `SessionHandler` and `Keys` use the same number of keys and that the order is equal. * Update core/sr-primitives/src/traits.rs
41 lines
1.5 KiB
TOML
41 lines
1.5 KiB
TOML
[package]
|
|
name = "srml-session"
|
|
version = "2.0.0"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
serde = { version = "1.0.101", optional = true }
|
|
safe-mix = { version = "1.0.0", default-features = false }
|
|
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
|
|
rstd = { package = "sr-std", path = "../../core/sr-std", default-features = false }
|
|
sr-primitives = { path = "../../core/sr-primitives", default-features = false }
|
|
sr-staking-primitives = { path = "../../core/sr-staking-primitives", default-features = false }
|
|
support = { package = "srml-support", path = "../support", default-features = false }
|
|
system = { package = "srml-system", path = "../system", default-features = false }
|
|
timestamp = { package = "srml-timestamp", path = "../timestamp", default-features = false }
|
|
substrate-trie = { path = "../../core/trie", default-features = false, optional = true }
|
|
runtime-io ={ package = "sr-io", path = "../../core/sr-io", default-features = false }
|
|
impl-trait-for-tuples = "0.1.3"
|
|
|
|
[dev-dependencies]
|
|
primitives = { package = "substrate-primitives", path = "../../core/primitives" }
|
|
app-crypto = { package = "substrate-application-crypto", path = "../../core/application-crypto" }
|
|
lazy_static = "1.4.0"
|
|
|
|
[features]
|
|
default = ["std", "historical"]
|
|
historical = ["substrate-trie"]
|
|
std = [
|
|
"serde",
|
|
"safe-mix/std",
|
|
"codec/std",
|
|
"rstd/std",
|
|
"support/std",
|
|
"sr-primitives/std",
|
|
"sr-staking-primitives/std",
|
|
"timestamp/std",
|
|
"substrate-trie/std",
|
|
"runtime-io/std",
|
|
]
|