Skip to content

Commit

Permalink
No build.rs for rust crates (#8432)
Browse files Browse the repository at this point in the history
  • Loading branch information
heaths authored Jan 21, 2025
1 parent 930d78b commit 060ef77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/rust/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,8 @@ Dashes are supported in feature names as well as crate names, but using undersco

{% include requirement/SHOULD id="directory-structure-lib" %} only export public APIs from the crate `lib.rs` and define all other types in suitable [modules][rust-lang-modules]:

{% include requirement/MUSTNOT id="directory-structure-build-script" %} include a `build.rs` build script in the crate root.

* Single-file modules should be declared in a file next to their parent module.
* Multi-file modules should be declared in a directory next to their parent module with a `mod.rs` file.

Expand Down

0 comments on commit 060ef77

Please sign in to comment.