tobogganSe connecter

louise

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

62 lignes · 1749 octetsBrut · Historique
1//! Louise runtime (`louise_rt`).
2//!
3//! Linked as a staticlib into every compiled Louise program. The C ABI is
4//! defined by `include/louise_rt.h` and explained in `docs/runtime-abi.md`;
5//! [`abi`] mirrors its layouts.
6//!
7//! **Where `unsafe` is.** A function that may dereference a context
8//! (`*mut Ctx`), a [`abi::Value`] or another raw pointer is `unsafe`, and
9//! its `# Safety` section says what the caller guarantees: usually "the
10//! running actor's context" and "a live string" (borrowed) or "owned".
11//! Functions that only allocate and fill a fresh block are safe even
12//! though they take a context: [`heap::tl_alloc`] never reads it (the
13//! runtime passes null when it builds a message outside any actor).
14//!
15//! The runtime keeps contexts as raw pointers rather than turning them into
16//! `&mut Ctx` at each entry point: generated C, closures and callbacks the
17//! runtime calls write to the same context, which a live `&mut Ctx` held
18//! across those calls would forbid.
19
20pub mod abi;
21pub mod array;
22pub mod blocking;
23pub mod builder;
24pub mod bytes;
25pub mod callback;
26pub mod checked;
27pub mod clock;
28pub(crate) mod console;
29pub mod crypto;
30pub mod ctx;
31pub mod dec;
32pub(crate) mod dist;
33pub mod effects;
34pub(crate) mod fiber;
35pub mod fs;
36pub mod handlers;
37pub(crate) mod handoff;
38pub mod heap;
39pub mod http;
40pub(crate) mod inbox;
41pub mod int;
42pub mod net;
43pub mod node;
44pub(crate) mod otp;
45pub(crate) mod park;
46pub mod prims;
47pub mod process;
48pub mod region;
49pub mod resource;
50pub mod sched;
51pub(crate) mod send;
52pub mod signals;
53#[cfg(feature = "tls")]
54pub(crate) mod sock;
55pub mod table;
56pub(crate) mod timers;
57pub mod tls;
58#[cfg(feature = "tls")]
59pub(crate) mod transport;
60pub mod u64;
61pub mod values;
62pub(crate) mod wire;