Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is build = "build.rs" really needed? #150

Closed
szabgab opened this issue Feb 12, 2024 · 1 comment
Closed

Is build = "build.rs" really needed? #150

szabgab opened this issue Feb 12, 2024 · 1 comment

Comments

@szabgab
Copy link

szabgab commented Feb 12, 2024

I just tried the example in the readme without adding

[package]
build = "build.rs"

and it worked as I expected. Using rustc 1.76.0

Is that entry really needed?

@baoyachi
Copy link
Owner

[package]
build = "build.rs"

This is an optional addition where, by default, build points to the build.rs file. It is recommended to use it as such. However, if your build script file is not named build.rs, please manually specify it. For example: build = "gen.rs".

Thank you for your question; I will improve the documentation accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants