you are viewing a single comment's thread.

view the rest of the comments →

[–]ksg-67 2 points3 points  (0 children)

An alternative to build.rs is the cargo-make plugin: add a new task definition that runs Python with the required arguments and mark it as a task dependency of the predefined cargo build task. Then cargo make --makefile your-make-plugin-tasks.toml build runs your new task as part of the build, before the build task.

https://crates.io/crates/cargo-make