chore(internals): drop no-std supp in internals#519
chore(internals): drop no-std supp in internals#519
Conversation
📝 WalkthroughWalkthroughThe PR removes no_std support and simplifies feature flags across the internals crate and its dependents. Feature-gated std and alloc are eliminated from internals/Cargo.toml, feature references are removed from dash and hashes Cargo.toml files, and conditional compilation gates are removed from internals source code to make alloc/std functionality unconditional. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@internals/src/hex/display.rs`:
- Around line 272-324: Add a unit test that exercises the newly added impl
DisplayHex for &Vec<u8> directly (current tests only call the &[u8] path via
check_encoding), e.g., add a test function (similar to existing tests like
single/two) that constructs a Vec<u8> and calls check_encoding on a reference to
it so the &Vec<u8> impl is used; reference the check_encoding helper and the
DisplayHex impl for &Vec<u8> when locating where to add the test in this file.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: b1841341-591e-49c0-b65d-57d7bc2ef026
📒 Files selected for processing (5)
dash/Cargo.tomlhashes/Cargo.tomlinternals/Cargo.tomlinternals/src/hex/display.rsinternals/src/lib.rs
💤 Files with no reviewable changes (2)
- internals/Cargo.toml
- internals/src/lib.rs
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## v0.42-dev #519 +/- ##
=============================================
+ Coverage 66.82% 67.14% +0.32%
=============================================
Files 313 313
Lines 64756 64757 +1
=============================================
+ Hits 43272 43484 +212
+ Misses 21484 21273 -211
*This pull request uses carry forward flags. Click here to find out more.
🚀 New features to boost your workflow:
|
Summary by CodeRabbit
to_lower_hex_string,to_upper_hex_string,to_hex_string,append_hex_to_string) are now always available instead of being conditionally compiled.