[Media] Craturn, a Rust interpretation of the "Saturn Devouring His Son" painting.
![[Media] Craturn, a Rust interpretation of the "Saturn Devouring His Son" painting.](https://i.redd.it/p154eguivbhg1.png)
⚠️⚠️⚠️ THE CODE AND DOCS ARE NOT AI-GENERATED :) ⚠️⚠️⚠️
Hey fellow Rustaceans! 🦀
About a week ago, I posted about crabtime — a new way of writing Rust macros.
I was honestly thrilled by how well it was received. However, a few comments caught my special attention. So I decided to continue the joke. Ladies and gentlemen, I present craturn, a crate inspired by the Saturn Devouring His Son painting, except Saturn is your program, and the son is its own heap.
What is craturn?
craturn is a joke global allocator that:
- behaves perfectly normally at first,
- compiles cleanly,
- causes no immediate crashes,
- and then, slowly and nondeterministically eats your heap from the inside.
Sometimes nothing happens.
Sometimes a bit flips.
Sometimes a Vec forgets math.
Sometimes a String forgets letters.
Sometimes everything is fine... until it very much isn’t.
This crate exists for:
- jokes,
- demos,
- and terrifying coworkers.
🔗 Links
- GitHub: https://github.com/wdanilo/craturn
- crates.io: https://crates.io/crates/craturn
- docs.rs: https://docs.rs/craturn/1.0.0/craturn/
❤️ Thank you, Ferrisoft
Development of this library is sponsored by Ferrisoft, a Rust-focused software house.
I’m one of its founders, happy to answer questions :)