Repository navigation
chore(rust): trim dependency tree - #426
Conversation
|
This PR does not match any of the 1 configured review trigger rule. |
zmanian
left a comment
There was a problem hiding this comment.
LGTM. Verified on top of #425: clippy clean, 43 tests pass, --no-default-features and no-std-check build. Dependency tree reduction confirmed (default 41 -> 33 crates, --no-default-features --features std 21 -> 13). The ?/ weak features are fine for the current MSRV (1.60), and &[u8]: Buf with .len() in place of Bytes/.remaining() is equivalent in ensure_iavl_prefix.
Note this will conflict with #416 in rust/Cargo.toml; #416 should rebase after this lands.
522e379 to
064a3c8
Compare
- `std` listed `serde/std` and `informalsystems-pbjson/std`, which enables both optional deps even when the `serde` feature is off; use weak `?/` features instead (default tree 41 -> 33 crates, std-only 21 -> 13) - drop the direct `bytes` dep: prost re-exports it and `&[u8]` already implements `Buf` - `hex` is only used in tests; move it to dev-dependencies Co-Authored-By: Claude Mythos 5.1 <noreply@anthropic.com>
064a3c8 to
bf2972e
Compare
|
@zmanian Thanks for the review! I've rebased on the latest master, should be no conflicts anymore |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #426 +/- ##
=======================================
Coverage 67.88% 67.88%
=======================================
Files 7 7
Lines 2824 2824
=======================================
Hits 1917 1917
Misses 907 907
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
- changelog: the `std` feature no longer enables `serde`, so the `Serialize`/`Deserialize` impls need `features = ["serde"]` - ci: run the test suite with `--features serde`, since the default feature set no longer covers the serde roundtrip test Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: srdtrk <srdtrk@hotmail.com>
stdlistedserde/stdandinformalsystems-pbjson/std, which enables both optional deps even when theserdefeature is off; use weak?/features instead (default tree 41 -> 33 crates, std-only 21 -> 13)bytesdep: prost re-exports it and&[u8]already implementsBufhexis only used in tests; move it to dev-dependencies