Crates.io | lx |
lib.rs | lx |
version | 0.4.0 |
source | src |
created_at | 2023-03-21 07:55:13.926382 |
updated_at | 2023-11-09 16:35:34.355279 |
description | A no_std crate to use Linux system calls |
homepage | |
repository | https://git.sr.ht/~dfg/lx |
max_upload_size | |
id | 815944 |
size | 158,776 |
A Rust no_std
library to use userspace Linux ABI designed to have no overhead,
but still be safe when possible by leveraging Rust's type system.
The code must be carefully organized such that someone who has not read it yet can quickly guess what a file corresponds to, or where something is implemented, and how it works: it must be hackable without reading lots of context.
An implication is that the style must remain coherent across the code base, to make the organization predictable.
Code duplication must be avoided, but only when the duplicated piece of code makes sense as a whole, and has a descriptive name that fits well enough.