Set up Cargo workspace with hello and variables examples
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# Changelog
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Added
|
||||
|
||||
- Cargo workspace (resolver 3) with all crates under `crates/*` picked up automatically.
|
||||
- `crates/01-hello` (package `hello`): minimal binary crate.
|
||||
- `crates/02-variables` (package `variables`): annotated showcase (comments in Czech) of working with variables in Rust: `let`/`mut`, shadowing, types and literals, overflow handling, casting, `const`/`static`, tuples/arrays/`Vec`, destructuring, deferred initialization, block/`if`/`match`/`loop` expressions, scope, move vs. copy, references, `&str` vs. `String`, `Option`/`if let` and `let-else`.
|
||||
Reference in New Issue
Block a user