Recently, I needed to package a Rust crate libslirp
for a Apertis, a Debian derivative. libslirp
is used by the newly release UML backend of debos, our Debian image build tool. Unfortunately, this crate hasn’t yet been properly packaged for Debian proper, so I could not simply pull the …
Articles tagged with Rust
Rust-like enums in Kotlin
By Andrej ShaduraRust has an exciting concept of enumeration types, which is much more powerful than enums in other languages. Notably C has the weakest type of enum, since there’s no type checking of any kind, and enum values can be used interchangeably with integers:
enum JobState { PENDING, STARTED, FAILED, COMPLETED …