-
Notifications
You must be signed in to change notification settings - Fork 106
Description
Hi,
I get an error "error: Rust build failed; unable to find any build artifacts" which originated from setuptools-rust https://github.com/PyO3/setuptools-rust/blob/v1.5.1/setuptools_rust/build.py#L284 even if rustc/cargo show no error ("Finished release [optimized] target(s) in 38.90s").
The rust lib build fine, but for any reason, setuptools-rust seems to not find artifacts.
My rust project is a single lib.rs file, compiled with cargo 1.63, setuptools-rust is v1.5.1 and pip is v22.2.1.
I tried trying running the rustc line outputed while building with cargo build -v, which output is the following:
rustc --crate-name mylib --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type dylib --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="python3"' -C metadata=a67764a0478247b2 --out-dir /home/me/mylib/target/debug/deps -C incremental=/home/me/mylib/target/debug/incremental -L dependency=/home/me/mylib/target/debug/deps --extern cpython=/home/me/mylib/target/debug/deps/libcpython-595113d75631677a.rlib --extern image=/home/me/mylib/target/debug/deps/libimage-3f31a25a1b7e2be8.rlib
{"artifact":"/home/me/mylib/target/debug/deps/watermarkrs.d","emit":"dep-info"}
{"artifact":"/home/me/mylib/target/debug/deps/libwatermarkrs.so","emit":"link"}
Looking at https://github.com/PyO3/setuptools-rust/blob/v1.5.1/setuptools_rust/build.py#L691 could it be that the json output of rustc have changed, then the parsing doesn't work ?