2023-08-08 08:47:05 +00:00
|
|
|
[package]
|
|
|
|
name = "bitcoin-units"
|
2024-04-03 21:24:28 +00:00
|
|
|
version = "0.1.1"
|
2023-08-08 08:47:05 +00:00
|
|
|
authors = ["Andrew Poelstra <apoelstra@wpsoftware.net>"]
|
|
|
|
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.56.1"
|
|
|
|
exclude = ["tests", "contrib"]
|
|
|
|
|
|
|
|
[features]
|
|
|
|
default = ["std"]
|
2023-11-20 00:52:19 +00:00
|
|
|
std = ["alloc", "internals/std"]
|
|
|
|
alloc = ["internals/alloc"]
|
2023-08-08 08:47:05 +00:00
|
|
|
|
|
|
|
[package.metadata.docs.rs]
|
|
|
|
all-features = true
|
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
|
|
|
|
[dependencies]
|
2024-04-03 21:18:51 +00:00
|
|
|
internals = { package = "bitcoin-internals", version = "0.3.0", features = ["alloc"] }
|
2023-08-08 08:47:05 +00:00
|
|
|
|
|
|
|
serde = { version = "1.0.103", default-features = false, features = ["derive"], optional = true }
|
|
|
|
|
|
|
|
[dev-dependencies]
|
|
|
|
serde_test = "1.0"
|
|
|
|
serde_json = "1.0"
|