Repository navigation
fix: make cargo install clang-tools-manager --features bin work - #532
Conversation
The `bin` feature did not enable tokio's multi-threaded runtime (needed by `#[tokio::main]`) nor a TLS backend for reqwest. So the `clang-tools` binary only compiled within the workspace, where cpp-linter enables both. Installing the crate on its own failed to compile, and a build without TLS could not download anything. Also fix the cargo-binstall URL: release assets are named `clang-tools-<target>`, not `clang-tools-manager-<target>`.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 59 minutes. View limit details
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 |
|
Generated by Claude Code |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #532 +/- ##
=======================================
Coverage 99.88% 99.88%
=======================================
Files 28 28
Lines 6930 6930
=======================================
Hits 6922 6922
Misses 8 8 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
cargo install clang-tools-manager --features binfails to compile:The
binfeature only builds inside the workspace, where cpp-linter enables tokio'srt-multi-threadand reqwest'sdefault-tls. Built alone (cargo build -p clang-tools-manager --features bin), it also has no TLS backend, so every download fails.cargo binstall clang-tools-managercan't use the release assets either:pkg-urluses{ name }(clang-tools-manager-<target>..., 404), but the assets are namedclang-tools-<target>..., with the binary at the archive's root.Changes
binfeature: addtokio/rt-multi-threadandreqwest/default-tls(same as cpp-linter'sbinfeature).pkg-urlusesclang-tools-{ target },bin-dir = "{ bin }{ binary-ext }".Testing
cargo build -p clang-tools-manager --features binwith a separate target dir now compiles, andclang-tools clang-format -v 19 -d <dir>downloads and installs it.clang-tools-x86_64-unknown-linux-gnu.tar.gzfromclang-tools-manager/v0.3.1hasclang-toolsat its root; the old URL returns 404.