Rust Analyzer <-> Maturin interaction #3146
Replies: 1 comment
-
|
This is likely a known Cargo fingerprinting issue rather than a maturin bug. When maturin sets How maturin handles this today:
The upstream Cargo fix: Recommendation: Upgrading to Rust >= 1.85.0 should resolve the incremental compilation invalidation. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug Description
In delta-rs we have a .cargo/config.toml in the root and .carg/config.toml in our python subcrate.
Both of the following rustflags:
Running plain
maturin developwill invalidate the incremental compilation.Only if I manually provide the RUSTFLAGS it works:
RUSTFLAGS="-C link-arg=-undefined -C link-arg=dynamic_lookup" maturin developShouldn't maturin use the .cargo/config.toml during
maturin developYour maturin version (
maturin --version)1.8.2
Your Python version (
python -V)3.11
Your pip version (
pip -V)UV is used
What bindings you're using
pyo3
Does
cargo buildwork?If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash
/)?Steps to Reproduce
Beta Was this translation helpful? Give feedback.
All reactions