If you generate some Python file or other assets in build.rs there is (as far as I'm aware) currently no way to include this in a Maturin build through the OUT_DIR. Your only option is to either store it in the source directory so Maturin will pick it up, but Rust recommends against storing files in the source directory.
If you generate some Python file or other assets in
build.rsthere is (as far as I'm aware) currently no way to include this in a Maturin build through theOUT_DIR. Your only option is to either store it in the source directory so Maturin will pick it up, but Rust recommends against storing files in the source directory.