Christoph J. Scherr
6c48db6e37
cargo devel CI / cargo CI (push) Failing after 51s
Details
|
||
---|---|---|
.gitea/workflows | ||
.github/workflows | ||
members | ||
rs-unsafe@7c19e55d97 | ||
src | ||
.gitignore | ||
.gitmodules | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE | ||
README.md | ||
tasks.md |
README.md
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.
Highlighted demo crates
Basics
Intermediate
Dependencies
- serde-json-demo (for
serde
andserde_json
) - claptest (for
clap
) - ptlog (for
libpt
) - sqlite-demo (for
rusqlite
) - onlytoken (for
rand
andargon2
)
Advanced Dependencies
- diesel-demo (for
diesel
) - tokio-send-sync (for
tokio
) - tokryon (for
tokio
andrayon
) - cucumber-demo (for
cucumber
) - criterion-demo (for
criterion
) - revsqrt (the bench and tests, for
criterion
andcucumber
) - rest (for
serde
,tokio
andwarp
) - rest-queued (for
serde
,tokio
andwarp
)
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.