Repository navigation
Find hashed Cargo outputs in the Cargo 1.100 build directory layout - #98
Merged
Merged
Conversation
Cargo 1.100 writes hashed rustc outputs to build/<package>/<hash>/out/ under the profile directory. Earlier versions wrote them to deps/. Cargo copies a library to the profile directory only for crate types declared in Cargo.toml. When the crate type comes from rustc arguments, hatch-rs looks for the hashed file, and it found none with Cargo 1.100. Search both locations. Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #98 +/- ##
==========================================
+ Coverage 92.19% 92.34% +0.15%
==========================================
Files 15 15
Lines 2638 2665 +27
==========================================
+ Hits 2432 2461 +29
+ Misses 206 204 -2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Cargo 1.100 writes hashed rustc outputs to
build/<package>/<hash>/out/under the profile directory. Earlier versions wrote them todeps/.Cargo copies a library to the profile directory only for crate types declared in
Cargo.toml. When the crate type comes from rustc arguments (rustc-args, or the artifact'scrate-typewith no matching[lib]entry), hatch-rs looks for the hashed file, and with Cargo 1.100 the build failed withNo build artifacts foundordid not produce expected file. The lookup for extensions, shared libraries, executables, and Windows import libraries now searches both locations.CI installs stable Rust, which became 1.100.0 on 2026-11-12, so
test_cargo_controls_manifest_rustc_args_and_isolated_target_dirandtest_c_abi_symbol_validation_failurefail on other branches until this is merged.Type of Change
Checklist
make lint)make test)