You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-06-24 09:46:45 +02:00
Publish Comprehensive Rust 🦀
This commit is contained in:
22
src/modules/filesystem.md
Normal file
22
src/modules/filesystem.md
Normal file
@ -0,0 +1,22 @@
|
||||
# Filesystem Hierarchy
|
||||
|
||||
The module content can be omitted:
|
||||
|
||||
```rust,editable,compile_fail
|
||||
mod garden;
|
||||
```
|
||||
|
||||
The `garden` module content is found at:
|
||||
|
||||
* `src/garden.rs` (modern Rust 2018 style)
|
||||
* `src/garden/mod.rs` (older Rust 2015 style)
|
||||
|
||||
Similarly, a `garden::vegetables` module can be found at:
|
||||
|
||||
* `src/garden/vegetables.rs` (modern Rust 2018 style)
|
||||
* `src/garden/vegetables/mod.rs` (older Rust 2015 style)
|
||||
|
||||
The `crate` root is in:
|
||||
|
||||
* `src/lib.rs` (for a library crate)
|
||||
* `src/main.rs` (for a binary crate)
|
Reference in New Issue
Block a user