Files
pezkuwi-subxt/substrate/primitives/consensus/slots/Cargo.toml
T
Bastian Köcher b6294418f8 Introduce a Slot type (#7997)
* Introduce a `Slot` type

Instead of having some type definition that only was used in half of the
code or directly using `u64`, this adds a new unit type wrapper `Slot`.
This makes it especially easy for the outside api to know what type is
expected/returned.

* Change epoch duratioC

* rename all instances of slot number to slot

* Make the constructor private

Co-authored-by: André Silva <andrerfosilva@gmail.com>
2021-01-28 19:44:22 +00:00

27 lines
778 B
TOML

[package]
name = "sp-consensus-slots"
version = "0.8.1"
authors = ["Parity Technologies <admin@parity.io>"]
description = "Primitives for slots-based consensus"
edition = "2018"
license = "Apache-2.0"
homepage = "https://substrate.dev"
repository = "https://github.com/paritytech/substrate/"
readme = "README.md"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
codec = { package = "parity-scale-codec", version = "1.3.6", default-features = false, features = ["derive"] }
sp-runtime = { version = "2.0.0", default-features = false, path = "../../runtime" }
sp-arithmetic = { version = "2.0.0", default-features = false, path = "../../arithmetic" }
[features]
default = ["std"]
std = [
"codec/std",
"sp-runtime/std",
"sp-arithmetic/std",
]