baoyachi / shadow-rs

A build-time information stored in your rust project.(binary,lib,cdylib,dylib)
https://docs.rs/shadow-rs
MIT License
444 stars 40 forks source link

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

Closed szabgab closed 5 months ago

szabgab commented 6 months ago

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 commented 5 months ago
[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.