[package] name = "bitcoin-primitives" # Arbitrary high version number so as to not clash with the original # `bitcoin-primitives` crate that we replaced `v0.1.16-alpha`. version = "0.100.0" authors = ["Andrew Poelstra "] license = "CC0-1.0" repository = "https://github.com/rust-bitcoin/rust-bitcoin" description = "Primitive types used by the rust-bitcoin ecosystem" categories = ["cryptography::cryptocurrencies"] keywords = ["bitcoin", "types"] readme = "README.md" edition = "2021" rust-version = "1.63.0" exclude = ["tests", "contrib"] [features] default = ["std"] std = ["alloc", "internals/std", "io/std", "units/std"] alloc = ["internals/alloc", "io/alloc", "units/alloc"] serde = ["dep:serde", "internals/serde", "units/serde"] [dependencies] internals = { package = "bitcoin-internals", version = "0.3.0" } io = { package = "bitcoin-io", version = "0.1.1", default-features = false } units = { package = "bitcoin-units", version = "0.1.0", default-features = false } ordered = { version = "0.2.0", optional = true } serde = { version = "1.0.103", default-features = false, features = ["derive"], optional = true } [dev-dependencies] [target.'cfg(mutate)'.dev-dependencies] mutagen = { git = "https://github.com/llogiq/mutagen" } [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"] [lints.rust] unexpected_cfgs = { level = "deny", check-cfg = ['cfg(mutate)'] }