[package] name = "bitcoin-units" version = "0.2.0" authors = ["Andrew Poelstra "] license = "CC0-1.0" repository = "https://github.com/rust-bitcoin/rust-bitcoin/" description = "Basic Bitcoin numeric units such as amount" categories = ["cryptography::cryptocurrencies"] keywords = ["bitcoin", "newtypes"] readme = "README.md" edition = "2021" rust-version = "1.63.0" exclude = ["tests", "contrib"] [features] default = ["std"] std = ["alloc", "internals/std"] alloc = ["internals/alloc"] [dependencies] internals = { package = "bitcoin-internals", version = "0.4.0" } serde = { version = "1.0.103", default-features = false, features = ["derive"], optional = true } arbitrary = { version = "1", optional =true } [dev-dependencies] internals = { package = "bitcoin-internals", version = "0.4.0", features = ["test-serde"] } serde_test = "1.0" serde_json = "1.0" [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"] [lints.rust] unexpected_cfgs = { level = "deny", check-cfg = ['cfg(kani)'] }