#replace #signal #std #approach #signal-safe

stdworld

signal-safe std replacement

2 releases

0.1.1 Sep 17, 2024
0.1.0 Sep 4, 2024

#354 in Concurrency

Download history 117/week @ 2024-09-03 11/week @ 2024-09-10 227/week @ 2024-09-17 17/week @ 2024-09-24 40/week @ 2024-10-01 5/week @ 2024-10-08

300 downloads per month

AGPL-3.0-or-later

14KB
73 lines

Welcome to stdworld! This crate is an alternative to the Rust std crate, with a focus on use-cases not supported by Rust.

Motivation: Issues with std

While Rust works fine for a lot of use-cases, there are some use-cases that Rust either neglects, such as code/library unloading, or is actively hostile against, such as signal handling.

This crate provides a library-only approach that addresses those use-cases.

Structure

This crate is structured in modules analogous to Rust's own std. However, these are explicitly not drop-in replacements! Many of them differ in safety (often with the stdworld equivalent being safe), but all of them differ in types.

Stability

This crate is currently unusable.

You can look at the code tho.

Acknowledgements

This crate was inspired by crates such as qcell and our own selfref. We would also like to thank the various trans developers. Finally, we would like to blame tom7, for getting his PhD in 2008.

No runtime deps