chmp / cargo-wop

Run cargo on Rust source files without setting up a project
MIT License
1 stars 1 forks source link

Improve build script experience #16

Closed chmp closed 3 years ago

chmp commented 3 years ago

At the moment build scripts are tricky to use, as they are executed in the generated manifest directory, not the script directory. Maybe add a new env variable?

Edit: Using the file!() macro inside the build script is a simple and portable way to locate the source file. Prefer adding docs instead of adding custom code.