Open
Description
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:
[target.aarch64-apple-darwin]
rustflags = [
"-C", "link-arg=-undefined",
"-C", "link-arg=dynamic_lookup",
]
Running plain maturin develop
will invalidate the incremental compilation.
Only if I manually provide the RUSTFLAGS it works:
RUSTFLAGS="-C link-arg=-undefined -C link-arg=dynamic_lookup" maturin develop
Shouldn't maturin use the .cargo/config.toml during maturin develop
Your 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 build
work?
- Yes, it works
If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash /
)?
- Yes
Steps to Reproduce
- Create crate with above config
- Use VSCode with Rust Analyzer (RA)
- Let RA run Cargo check
- Now run maturin develop
- Change .rs file and save which triggers cargo check
- Run maturin develop again (notice it starts from beginning)