primitives: add missing modules to api_can_use_modules_from_crate_root
What changed, and why it matters
This commit only updates an internal Rust test file to include additional module names in a list of crate-root modules. It does not change any actual library code, behavior, or security-sensitive logic. There is no apparent security relevance.
No security action needed. Treat as routine test maintenance.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change modifies primitives/tests/api.rs, expanding the imports inside the api_can_use_modules_from_crate_root test to cover newly added or previously omitted modules (amount, fee_rate, parse_int, result, time, weight). This is a test-only API surface check and has no runtime or cryptographic impact.
Changed components
primitives/tests/api.rsInspect captured patch +2 / −1
diff --git a/primitives/tests/api.rs b/primitives/tests/api.rs
index db50201b..fd3da885 100644
--- a/primitives/tests/api.rs
+++ b/primitives/tests/api.rs
@@ -261,7 +261,8 @@ fn api_can_use_all_units_types_from_module_amount_error() {
#[test]
fn api_can_use_modules_from_crate_root() {
use bitcoin_primitives::{
- block, locktime, merkle_tree, pow, script, sequence, transaction, witness,
+ amount, block, fee_rate, locktime, merkle_tree, parse_int, pow, result, script, sequence,
+ time, transaction, weight, witness,
};
}
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.