2023-08-08 08:47:05 +00:00
|
|
|
[package]
|
|
|
|
name = "bitcoin-units"
|
|
|
|
version = "0.1.0"
|
|
|
|
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-03-25 23:01:08 +00:00
|
|
|
internals = { package = "bitcoin-internals", version = "0.3.0" }
|
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"
|