Skip to content

Instantly share code, notes, and snippets.

View caquillo07's full-sized avatar

Hector Mejia caquillo07

View GitHub Profile
@caquillo07
caquillo07 / Cargo.toml
Last active January 16, 2025 19:21
Rust simple thread + channel example
[package]
name = "rust_threads_mutex"
version = "0.1.0"
edition = "2021"
[dependencies]
# annoyingly, Rust has no built-in random generator...
rand = "0.8.5"