You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/doc/src/guide/project-layout.md
+2
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,8 @@ files, place a `main.rs` file along with the extra [*modules*][def-module]
48
48
within a subdirectory of the `src/bin`, `examples`, `benches`, or `tests`
49
49
directory. The name of the executable will be the directory name.
50
50
51
+
> **Note:** By convention, binaries, examples, benches and integration tests follow `kebab-case` naming style, unless there are compatibility reasons to do otherwise (e.g. compatibility with a pre-existing binary name). Modules within those targets are `snake_case` following the [Rust standard](https://rust-lang.github.io/rfcs/0430-finalizing-naming-conventions.html).
52
+
51
53
You can learn more about Rust's module system in [the book][book-modules].
52
54
53
55
See [Configuring a target] for more details on manually configuring targets.
0 commit comments