├── .devcontainer └── devcontainer.json ├── .gitignore ├── .vscode ├── launch.json └── settings.json ├── Cargo.lock ├── Cargo.toml ├── README.md ├── assets └── banner.svg ├── examples ├── 1-components │ ├── README.md │ └── project │ │ ├── Cargo.lock │ │ ├── Cargo.toml │ │ ├── lib.rs │ │ └── src │ │ └── main.rs ├── 10-match-control-flow │ ├── main.rs │ └── match-control │ │ ├── Cargo.toml │ │ └── src │ │ └── main.rs ├── 11-unit-functions │ ├── .vscode │ │ └── settings.json │ └── unit │ │ ├── Cargo.toml │ │ └── src │ │ └── main.rs ├── 12-return-values │ └── values │ │ ├── Cargo.toml │ │ └── src │ │ └── main.rs ├── 13-function-arguments │ └── values │ │ ├── Cargo.toml │ │ └── src │ │ └── main.rs ├── 14-borrowing │ └── borrowing │ │ ├── Cargo.toml │ │ └── src │ │ └── main.rs ├── 15-panic │ └── panicking │ │ ├── Cargo.toml │ │ └── src │ │ └── main.rs ├── 16-error-handling │ └── error-handling │ │ ├── Cargo.toml │ │ └── src │ │ └── main.rs ├── 17-data-structures │ ├── Cargo.toml │ ├── README.md │ └── src │ │ ├── data.rs │ │ └── main.rs ├── 2-variables │ ├── .vscode │ │ └── settings.json │ ├── mutable │ │ ├── Cargo.lock │ │ ├── Cargo.toml │ │ └── src │ │ │ └── main.rs │ └── variables │ │ ├── Cargo.lock │ │ ├── Cargo.toml │ │ └── src │ │ └── main.rs ├── 3-control-flow │ └── conditionals │ │ ├── Cargo.toml │ │ └── src │ │ └── main.rs ├── 4-shadowing │ └── shadowing │ │ ├── .gitignore │ │ ├── Cargo.toml │ │ └── src │ │ └── main.rs ├── 5-loops │ └── loops │ │ ├── Cargo.toml │ │ └── src │ │ └── main.rs ├── 6-conditionals │ └── conditionals │ │ ├── Cargo.toml │ │ └── src │ │ └── main.rs ├── 7-while-loops │ ├── user-input │ │ ├── Cargo.toml │ │ └── src │ │ │ └── main.rs │ └── while-loops │ │ ├── Cargo.toml │ │ └── src │ │ └── main.rs ├── 8-for-loops │ └── for-loop │ │ ├── Cargo.toml │ │ └── src │ │ └── main.rs └── 9-break-and-continue │ └── loop-control │ ├── Cargo.toml │ └── src │ └── main.rs └── lab.md /.devcontainer/devcontainer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/.devcontainer/devcontainer.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *target* 2 | Cargo.lock 3 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/Cargo.toml -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/README.md -------------------------------------------------------------------------------- /assets/banner.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/assets/banner.svg -------------------------------------------------------------------------------- /examples/1-components/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/1-components/README.md -------------------------------------------------------------------------------- /examples/1-components/project/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/1-components/project/Cargo.lock -------------------------------------------------------------------------------- /examples/1-components/project/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/1-components/project/Cargo.toml -------------------------------------------------------------------------------- /examples/1-components/project/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/1-components/project/lib.rs -------------------------------------------------------------------------------- /examples/1-components/project/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/1-components/project/src/main.rs -------------------------------------------------------------------------------- /examples/10-match-control-flow/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/10-match-control-flow/main.rs -------------------------------------------------------------------------------- /examples/10-match-control-flow/match-control/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/10-match-control-flow/match-control/Cargo.toml -------------------------------------------------------------------------------- /examples/10-match-control-flow/match-control/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/10-match-control-flow/match-control/src/main.rs -------------------------------------------------------------------------------- /examples/11-unit-functions/.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/11-unit-functions/.vscode/settings.json -------------------------------------------------------------------------------- /examples/11-unit-functions/unit/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/11-unit-functions/unit/Cargo.toml -------------------------------------------------------------------------------- /examples/11-unit-functions/unit/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/11-unit-functions/unit/src/main.rs -------------------------------------------------------------------------------- /examples/12-return-values/values/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/12-return-values/values/Cargo.toml -------------------------------------------------------------------------------- /examples/12-return-values/values/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/12-return-values/values/src/main.rs -------------------------------------------------------------------------------- /examples/13-function-arguments/values/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/13-function-arguments/values/Cargo.toml -------------------------------------------------------------------------------- /examples/13-function-arguments/values/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/13-function-arguments/values/src/main.rs -------------------------------------------------------------------------------- /examples/14-borrowing/borrowing/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/14-borrowing/borrowing/Cargo.toml -------------------------------------------------------------------------------- /examples/14-borrowing/borrowing/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/14-borrowing/borrowing/src/main.rs -------------------------------------------------------------------------------- /examples/15-panic/panicking/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/15-panic/panicking/Cargo.toml -------------------------------------------------------------------------------- /examples/15-panic/panicking/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/15-panic/panicking/src/main.rs -------------------------------------------------------------------------------- /examples/16-error-handling/error-handling/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/16-error-handling/error-handling/Cargo.toml -------------------------------------------------------------------------------- /examples/16-error-handling/error-handling/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/16-error-handling/error-handling/src/main.rs -------------------------------------------------------------------------------- /examples/17-data-structures/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/17-data-structures/Cargo.toml -------------------------------------------------------------------------------- /examples/17-data-structures/README.md: -------------------------------------------------------------------------------- 1 | Building organizers for your data. 2 | -------------------------------------------------------------------------------- /examples/17-data-structures/src/data.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/17-data-structures/src/data.rs -------------------------------------------------------------------------------- /examples/17-data-structures/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/17-data-structures/src/main.rs -------------------------------------------------------------------------------- /examples/2-variables/.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/2-variables/.vscode/settings.json -------------------------------------------------------------------------------- /examples/2-variables/mutable/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/2-variables/mutable/Cargo.lock -------------------------------------------------------------------------------- /examples/2-variables/mutable/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/2-variables/mutable/Cargo.toml -------------------------------------------------------------------------------- /examples/2-variables/mutable/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/2-variables/mutable/src/main.rs -------------------------------------------------------------------------------- /examples/2-variables/variables/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/2-variables/variables/Cargo.lock -------------------------------------------------------------------------------- /examples/2-variables/variables/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/2-variables/variables/Cargo.toml -------------------------------------------------------------------------------- /examples/2-variables/variables/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/2-variables/variables/src/main.rs -------------------------------------------------------------------------------- /examples/3-control-flow/conditionals/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/3-control-flow/conditionals/Cargo.toml -------------------------------------------------------------------------------- /examples/3-control-flow/conditionals/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/3-control-flow/conditionals/src/main.rs -------------------------------------------------------------------------------- /examples/4-shadowing/shadowing/.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | -------------------------------------------------------------------------------- /examples/4-shadowing/shadowing/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/4-shadowing/shadowing/Cargo.toml -------------------------------------------------------------------------------- /examples/4-shadowing/shadowing/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/4-shadowing/shadowing/src/main.rs -------------------------------------------------------------------------------- /examples/5-loops/loops/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/5-loops/loops/Cargo.toml -------------------------------------------------------------------------------- /examples/5-loops/loops/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/5-loops/loops/src/main.rs -------------------------------------------------------------------------------- /examples/6-conditionals/conditionals/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/6-conditionals/conditionals/Cargo.toml -------------------------------------------------------------------------------- /examples/6-conditionals/conditionals/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/6-conditionals/conditionals/src/main.rs -------------------------------------------------------------------------------- /examples/7-while-loops/user-input/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/7-while-loops/user-input/Cargo.toml -------------------------------------------------------------------------------- /examples/7-while-loops/user-input/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/7-while-loops/user-input/src/main.rs -------------------------------------------------------------------------------- /examples/7-while-loops/while-loops/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/7-while-loops/while-loops/Cargo.toml -------------------------------------------------------------------------------- /examples/7-while-loops/while-loops/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/7-while-loops/while-loops/src/main.rs -------------------------------------------------------------------------------- /examples/8-for-loops/for-loop/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/8-for-loops/for-loop/Cargo.toml -------------------------------------------------------------------------------- /examples/8-for-loops/for-loop/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/8-for-loops/for-loop/src/main.rs -------------------------------------------------------------------------------- /examples/9-break-and-continue/loop-control/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/9-break-and-continue/loop-control/Cargo.toml -------------------------------------------------------------------------------- /examples/9-break-and-continue/loop-control/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/examples/9-break-and-continue/loop-control/src/main.rs -------------------------------------------------------------------------------- /lab.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfredodeza/rust-fundamentals/HEAD/lab.md --------------------------------------------------------------------------------