rust-bitcoin-unsafe-fast/units
Tobin C. Harding d8377d90dd
units: Remove serde derive feature
Currently we only need the `derive` feature of `serde` in test code.

Observe:

- We do not need the error testing logic because `ParseAmountError` is
already exhaustively tested.
- The rest of the `serde` test logic in `amount` can be done using the
public API so it can be moved to the integration test directory.

Move the unit test code to `tests/` excluding the error testing logic.
Remove the `derive` feature from the `serde` dependency. Add a
`dev-dependency` on `serde` that enables the `derive` feature.
2025-06-19 14:05:44 +10:00
..
contrib Add Arbitrary dependency 2024-08-23 15:39:20 -05:00
src units: Remove serde derive feature 2025-06-19 14:05:44 +10:00
tests units: Remove serde derive feature 2025-06-19 14:05:44 +10:00
CHANGELOG.md Add unreleased changelog entry 2025-01-25 06:52:26 +11:00
Cargo.toml units: Remove serde derive feature 2025-06-19 14:05:44 +10:00
README.md docs: fix LICENCE link 2025-03-23 11:41:07 +00:00

README.md

Bitcoin Units

This crate provides basic Bitcoin numeric units such as Amount.

Minimum Supported Rust Version (MSRV)

This library should always compile with any combination of features on Rust 1.63.0.

Licensing

The code in this project is licensed under the Creative Commons CC0 1.0 Universal license. We use the SPDX license list and SPDX IDs.