doc updates
cargo devel CI / cargo CI (push) Has been cancelled Details

This commit is contained in:
Christoph J. Scherr 2024-06-27 14:15:44 +02:00
parent b9e7e650fd
commit 99e1d908b8
6 changed files with 53 additions and 4 deletions

4
Cargo.lock generated
View File

@ -1074,6 +1074,10 @@ version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
[[package]]
name = "hello-world"
version = "0.1.0"
[[package]] [[package]]
name = "hermit-abi" name = "hermit-abi"
version = "0.3.9" version = "0.3.9"

View File

@ -24,7 +24,7 @@ members = [
"members/onlytoken", "members/onlytoken",
"members/sqlite-demo", "members/sqlite-demo",
"members/diesel-demo", "members/diesel-demo",
"members/ptlog", "members/ptlog", "members/hello-world",
] ]
default-members = [ default-members = [
".", ".",

View File

@ -1,11 +1,47 @@
# Rust basics # Rust basics
This project contains various smaller rust projects, often made by myself to This project contains various smaller rust projects, often made by myself to
gain more understanding with a topic or dependency. 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.
**Basics**
* [echargs](./members/echargs/)
* [shortc](./members/shortc/)
* [hello-world](./members/hello-world/)
* [revsqrt](./members/revsqrt/)
**Intermediate**
* [mpsc](./members/mpsc/)
* [mpsc-full](./members/mpsc-full/)
* [panic-calm](./members/panic-calm/)
* [socker](./members/socker/)
**Dependencies**
* [serde-json-demo](./members/serde-json-demo/)
* [claptest](./members/claptest/)
* [ptlog](./members/ptlog/)
* [slog-demo](./members/slog-demo/)
* [sqlite-demo](./members/sqlite-demo/)
**Advanced Dependencies**
* [diesel-demo](./members/diesel-demo/)
* [tokio-send-sync](./members/tokio-send-sync/)
* [tokryon](./members/tokryon/)
* [cucumber-demo](./members/cucumber-demo/)
* [criterion-demo](./members/criterion-demo/)
* [revsqrt](./members/revsqrt/) (bench and tests)
* [rest](./members/rest/)
* [rest-queued](./members/rest-queued/)
## Rust unsafe ## Rust unsafe
Unsafe rust offers many possibilities otherwise locked from rust, which might Unsafe rust offers many possibilities otherwise locked from rust, which might
cause undefined behavior (or are dubbed unsafe for other reasons). Let's be cause undefined behavior (or are dubbed unsafe for other reasons). Let's be
honest, they are hacks. But they can have fun uses and are sometimes interesting honest, they are often hacks. But they can have fun uses and are sometimes
to explore, if only to see how the underlying system works. 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](rs-unsafe) for more.

View File

@ -0,0 +1,6 @@
[package]
name = "hello-world"
version = "0.1.0"
edition = "2021"
[dependencies]

View File

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}

View File