Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rust edition to 2024 #50

Merged
merged 18 commits into from
Feb 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
140 changes: 122 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[workspace]
resolver = "2"

package.edition = "2024"
resolver = "3"
members = [
"_lib",
# topics
Expand All @@ -9,9 +9,14 @@ members = [
"design-patterns",
"macros",
"problem-solving",
# Advanced
"advanced/memory-management",
"advanced/meta-programming",
"advanced/systems-programming",
"advanced/types-and-generics",
# projects
"projects/pandas",
"projects/ruscrypt",
"projects/vault",
"projects/todo-web", "advanced",
"projects/todo-web",
]
20 changes: 9 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,26 +116,24 @@ cargo test --bin huffman
## [5. Advanced Concepts](advanced/README.md)

1. Memory Management
- [Ownership, borrowing, and Lifetimes](advanced/memory-management/ownership.rs) `cargo run --bin ownership`
- [Unsafe Rust](advanced/memory-management/unsafe.rs)
- [Ownership, borrowing, and Lifetimes](advanced/memory-management/src/ownership.rs) `cargo run --bin ownership`
- [Unsafe Rust](advanced/memory-management/src/unsafe.rs)
2. Type System and Generics
- [Generic Types](advanced/types-and-generics/generics.rs) `cargo run --bin generics`
- [Trait Objects and Dynamic Dispatch](advanced/types-and-generics/traits.rs) `cargo run --bin traits`
- [Generic Types](advanced/types-and-generics/src/generics.rs) `cargo run --bin generics`
- [Trait Objects and Dynamic Dispatch](advanced/types-and-generics/src/traits.rs) `cargo run --bin traits`
- Associated types and Generic Type parameters
- Lifetime Sub-typing
3. Concurrency and Parallelism
- `Async/Await` and `Futures`
- Task Executors
- Concurrency
4. Macros and Meta programming
- `macro_rules!`
- Procedural Macros
- Derive Macros
- Meta-programming
- Building Domain-Specific Languages (DSL) in Rust
- [`macro_rules!`](advanced/meta-programming/src/macro-rules.rs) `cargo run --bin macro`
- [Derive Macros](advanced/meta-programming/src/derive-macro.rs) `cargo run --bin derive`
- [Building Domain-Specific Languages (DSL)](advanced/meta-programming/src/dsl.rs) `cargo run --bin dsl`
5. Low level and systems programming
- [Conditional Compilation](advanced/systems-programming/conditional-compilation.rs) `cargo run --bin cc`
- [Inline Assembly](advanced/systems-programming/inline-assembly.rs) `cargo run --bin assembly`
- [Conditional Compilation](advanced/systems-programming/src/conditional-compilation.rs) `cargo run --bin cc`
- [Inline Assembly](advanced/systems-programming/src/inline-assembly.rs) `cargo run --bin assembly`
- Foreign Function Interface (FFI)
- Embedded rust and Bare-metal programming
6. Error handling and patterns
Expand Down
2 changes: 1 addition & 1 deletion _lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "_lib"
version = "0.1.0"
edition = "2021"
edition = "2024"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
37 changes: 0 additions & 37 deletions advanced/Cargo.toml

This file was deleted.

Loading