No description
Find a file
Christoph J. Scherr 7a2c3dd82b
Some checks failed
Rust CI / Clippy (push) Failing after 2s
Rust CI / Test Suite (push) Failing after 8s
update ci
2025-03-14 22:28:23 +01:00
.github/workflows update ci 2025-03-14 22:28:23 +01:00
crates reorganize the workspace 2025-03-14 22:24:47 +01:00
src clippy 2024-02-16 16:02:40 +01:00
.gitignore i got the graph example stuff now 2025-01-09 05:42:52 +01:00
.gitmodules move c-bindings to rs-unsafe 2023-09-19 17:12:51 +02:00
cargo.sh reorganize the workspace 2025-03-14 22:24:47 +01:00
Cargo.toml reorganize the workspace 2025-03-14 22:24:47 +01:00
cargo_crate.sh reorganize the workspace 2025-03-14 22:24:47 +01:00
for_each_crate.sh reorganize the workspace 2025-03-14 22:24:47 +01:00
for_each_crate_cargo.sh reorganize the workspace 2025-03-14 22:24:47 +01:00
LICENSE add LICENSE 2024-06-27 14:29:10 +02:00
README.md reorganize the workspace 2025-03-14 22:24:47 +01:00
tasks.md orga stuff 2023-09-12 16:23:49 +02:00

Rust basics

This project contains various smaller rust projects, often made by myself to gain more understanding with a topic or dependency. It contains the absolute basics of the language, the more advanced topics, but also demos on various dependencies.

Completeness is not a goal of this project.

Compiling

Please prefer the use of the cargo.sh script.

$ ./cargo.sh CRATE CARGO_COMMANDS...

Highlighted demo crates

Basics

Intermediate

Dependencies

Advanced Dependencies

Warnings

  • Some of the crates, especially those related to GUIs, may not work in WSL environments.

Additional dependencies

If you need to compile the whole workspace:

apt install libgtk-3-dev librust-atk-dev -y

Rust unsafe

Unsafe rust offers many possibilities otherwise locked from rust, which might cause undefined behavior (or are dubbed unsafe for other reasons). Let's be honest, they are often hacks. But they can have fun uses and are sometimes interesting to explore, if only to see how the underlying system works.

Unsafe rust also has important uses when using programs developed in other languages (like C or C++) or when manipulation of bits, bytes, and memory is in needed (sorting algorithms).

See rs-unsafe for more.