Add all the pedantic lints to the repository by way of the repository manifest. Then enable these lints in the `units` manifest. Some things worth mentioning: - Fix `needless_pass_by_value` by adding derives to `FormatOptions`. - Fix lint `cast_lossless` using `cargo clippy --fix`` - While fixing `lint enum_glob_use` introduce a new style to the codebase; import enums using a single character. Doing so prevents namespace clashes, improves clarity, and maintains terseness. Audit: Use the following lints locally and audit all the warnings, they produce many false positives so we can't enable them permentently. - `cast_possible_truncation` - `cast_possible_lint` - `cast_sign_loss` |
||
---|---|---|
.. | ||
contrib | ||
src | ||
tests | ||
CHANGELOG.md | ||
Cargo.toml | ||
README.md |
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.