Skip to content
l3i

Library active

l3i

The Luau runtime for DreamWeave: a Rust binder that owns its Luau 0.748 build, plans every VM before it exists, and lowers hot script calls to native code.

cargo add l3i
Stable
3.1.0 2026-11-26
Package
Rust crate
License
MIT OR Apache-2.0

Overview

A game engine that scripts in Luau needs three things from its binder. Scripts must reach engine objects at the cost of a table lookup, not a registry walk. The engine must be able to run thousands of script instances in sandboxes it can measure, limit and profile. And the surface a script sees has to be declared once, typed, and impossible to drift from what the runtime does.

l3i is that binder. It started life as a C++ Luau binder for OpenMW, and this is the same design done again in Rust, with the parts a multi-crate engine needs on top: a planner that composes a VM from extensions before the VM exists, a packed scalar vocabulary for values that should never allocate, the network bridge in every runtime, Luau's native code generator with lowering hooks written in Rust, and a dialect of Luau whose comprehensions, slices and record patterns compile to the loops you would have written by hand.

From extensions to a running script

Extensions describe their Luau surface without a VM. The planner composes them, assigns every tag, atom and slot, and renders the type definitions. Each runtime built from the plan gets its own VM with exactly that shape, and scripts run in sandboxes the host can measure.

  1. Extension::describe

    Modules and their typed members, userdata types under stable keys with tag and compiler-slot policies, packed kinds, services, capabilities, memory categories, lowering hooks. No VM is touched.

  2. RuntimePlan::finalize

    Orders extensions by dependency, merges owners with augmenters, assigns tags, Luau's 32 compiler slots, atoms and direct slots, validates every identifier and path, and inserts the dream.udp bridge.

  3. Runtime::from_plan

    A VM with the planned metatables, generic direct-access callbacks, opened and frozen modules, every extension's install run in order, and compiler metadata for the compatibility globals. Any number per plan.

  4. Sandbox

    A sandbox prelude, one environment per script instance cloned from a compiled template, and the watchdog, memory categories and call scopes around every call.

  • the plan rendersType definitions

    The composition's declare extern type grammar, served to Luau's analysis frontend and type checked against strict scripts in the crate's tests, so the declared API and the runtime cannot drift.

  • with the jit featureNative code

    Lowering hooks written in Rust compile annotated call sites to IR: quaternions, colours and vertex writes with no C call, exiting to the interpreter only on malformed input.

  • Its own Luau. Luau 0.748 is a git submodule compiled by build.rs with clang, lld and

cross-language thin LTO, so the Rust thunks and the Luau API inline into each other. No mlua, no separate binding crate, nothing fetched at build time.

  • Arguments read from the value layout. The typed binder reads stack slots straight from

Luau's 16-byte TValue, and each runtime proves the mirror against the API once at creation. A bound (f64, f64) -> f64 call retires 320 instructions against 182 for a bare lua_CFunction.

  • Tags, atoms and slots are plan data. A RuntimePlan assigns userdata tags, Luau's 32

compiler type slots, atoms and direct-access slots per VM, so the same Rust type can be tag 8 in one runtime and untagged in another, and one handler serves both.

  • Typed by construction. Every module member carries a Luau signature or is marked untyped.

The plan renders the .d.luau, and the analysis feature type checks strict scripts against it in the crate's tests, so the declared API and the runtime cannot disagree.

  • Values that never allocate. Rotations, animation keys, colours and clip rectangles travel

as 64 bits each in a tagged light userdata, each kind its own type, with a kind nibble checked on every read. A packed rotate runs in about 21 ns lowered to native code.

  • The network is not optional. Every plan carries the dream.udp bridge; the policy's

capabilities decide what a script may do with it. Nothing calls into Luau from inside the transport.

  • Sandboxes the engine can account for. A sandbox prelude, per-script instances cloned from

compiled templates, a watchdog on time and heap, memory categories, call scopes with self-time accounting, and a sampling profiler.

  • Loops you did not have to write. [for e in entities if e.active => e.id],

sum[for x in samples[a:b, "f32"] => x] and local {x, y, z} = position are source syntax. They lower to the same-contract handwritten loop, one setup instruction apart, and a reduction over a buffer slice becomes one native call when @dream/data is in the plan.

  • Lowering hooks in Rust. With jit, hosts write Luau's userdata and vector lowering hooks

against an IrBuilder C ABI. The quaternion, colour and vertex-writer paths compile to IR with no C call and exit to the interpreter only on malformed input.

What a host writes§

use l3i::Runtime;
use l3i::userdata::{Owned, Userdata, tagged};

struct Vec3 { x: f32, y: f32, z: f32 }

unsafe impl Userdata for Vec3 {
    const NAME: &'static str = "dreamweave.Vec3";
}

fn main() -> l3i::Result<()> {
    let runtime = Runtime::new()?;
    // The host picks the tag, per runtime, at registration.
    tagged::register::<Vec3>(&runtime, 10, |ty| {
        ty.property("x", |v: &Vec3| v.x)?;
        ty.method("length", |v: &Vec3| (v.x * v.x + v.y * v.y + v.z * v.z).sqrt())
    })?;
    let make = runtime.bind_function("dreamweave.vec3", |x: f32, y: f32, z: f32| Owned(Vec3 { x, y, z }))?;
    runtime.set_global("vec3", &make)?;
    runtime.exec("local v = vec3(3, 4, 0) assert(v.x == 3 and v:length() == 5)")?;
    Ok(())
}

That is the hand-assembled runtime. An engine composes one from extensions instead:

use l3i::Runtime;
use l3i::extension::{RuntimePlan, RuntimePolicy};
use l3i::quat::QuatExtension;
use l3i::raster::RasterExtension;

let plan = RuntimePlan::builder()
    .policy(RuntimePolicy::new().compat_global("@dream/quat", "quat"))
    .extension(QuatExtension)
    .extension(RasterExtension)
    .finalize()?;
// One immutable plan, any number of runtimes, each with its own tags and atoms.
let runtime = Runtime::from_plan(&plan)?;
std::fs::write("dream.d.luau", plan.type_definitions())?;

What a script sees§

--!strict
--!native
local quat = require("@dream/quat")
local raster = require("@dream/raster")

-- A rotation is one value: 18 bits per component, smallest three, exact identity.
local spin = quat.axisAngle(vector.create(0, 0, 1), math.pi / 2)
local key = quat.key(spin, 5)          -- an AnimationKey: the rotation plus four flag bits
assert(quat.keyFlags(key) == 5)

-- Annotate the receiver and its methods lower to native code: no C call, no allocation.
local Q: dream_quat_Math = quat.math()
local forward = Q:rotate(spin, vector.create(1, 0, 0))

local C: dream_raster_Math = raster.math()
local tint = C:lerp(raster.rgb8(255, 240, 255), raster.rgba8(198, 160, 246, 255), 0.5)

Every name above is declared in the plan's definitions, so a strict script that misspells one, or passes a key where a rotation is expected, fails in the checker before it runs. At runtime the same mistake is a type error naming the kind: expected a packed Quaternion, got kind 2.

What it costs§

Retired instructions per call, read from the CPU's counters on Luau 0.747, with the loop subtracted. The rest of a call is Luau's own machinery.

Per callInstructionsCycles
hand-written lua_CFunction (f64, f64)18250
bound (f64, f64) -> f6432073
typed direct namecall, the VM's leanest method path31382
planned method () -> f6437596
planned direct field699

Every scenario reports fewer than 0.005 cache misses, TLB misses and branch misses per call: the whole path stays in L1 and predicts. Compatibility and performance has the Criterion tables, the memory per runtime, and the toolchain measurements behind the build rule.

Documentation§

  • Start here: the toolchain, the first runtime, a bound function and a

userdata type.

  • Guide: the stack model, userdata, sandboxes, runtime options, direct

access, extensions and plans, packed primitives, the built-in extensions, the dialect, and native code.

  • Rust API: every public module.
  • Safety model: what unwinds, what aborts, what panics, and the deliberate

divergences from the C++ binder.

Install

Rust crate · 3.1.0

Add it with Cargofrom crates.io, 3.1.0 today

From your project's directory:

cargo add l3i

Or by hand, in Cargo.toml:

[dependencies]
l3i = "3.1.0"

Cargo reads a bare version as "this or any compatible newer release" and records the exact one in Cargo.lock.

From the repositorythe default branch, ahead of the latest release
[dependencies]
l3i = { git = "https://github.com/DreamWeave-MP/l3i" }

Cargo pins the commit it fetched in Cargo.lock; cargo update -p l3i moves it forward.

Compatibility

Anything not listed here is untested.

Requires

  • dream-net=2.1.0 not on the network

    Runtime infrastructure: the @dream/udp module is in every plan, and l3i owns the bridge.

Works better with

  • dream-soft-render=2.0.0 not on the network

    The @dream/soft-render module, when the soft-render feature is on.

  1. 3.1.0 stable 2026-11-26

    bytes.deflater: one zlib, raw or gzip stream written in pieces, so a large output never needs its whole input and whole compressed form in memory at once, with a per-runtime limit on live deflaters. A host policy that can refuse process.sleep, and os.clock documented as the clock to measure it with (#56).

    Added

    • bytes.deflater(options) (bytes-codecs) takes deflate's options and returns a dream_bytes_Deflater. write(source, flush?) returns the compressed bytes that are ready, finish(source?) ends the stream and returns the rest; together they are one stream. Without a flush it is byte for byte what bytes.deflate makes of the whole input at the same format and level, however the input was split. flush is 'sync' or 'full' for a decodable point mid-stream. close() abandons the stream without output and is idempotent. Any write or finish after finish, close, a compressor failure or an output Luau's heap could not take is an error. l3i::bytes::codecs::Deflater is its userdata.
    • A deflater holds about 300 KiB outside the Luau heap, so a runtime holds at most 32 live at once, or what the host sets with BytesExtension.with_max_deflaters(max) (1 to 1024), which returns a bytes::BytesConfig. A deflater stops counting when it is finished, closed, fails or is collected.
    • process::input::Policy::check_sleep, asked before every process.sleep, so a frame-driven host can refuse a sleep that would freeze its frames. Its default admits every sleep, so a policy written for 3.0 behaves as it did.

    Changed

    • bytes.deflater and process.sleep are installed per runtime rather than described as plain functions, so a host extension that reuses BytesExtension's or ProcessExtension's describe with an install of its own must install them too. BytesExtension, BytesConfig, ProcessExtension and ProcessConfig themselves need nothing.

    Migration

    Take 3.1.0 in place of 3.0.0. Nothing a caller wrote changes.

    A script that waits measures the wait with os.clock(), which Luau reads from a monotonic wall clock, not CPU time, on Windows, Apple platforms, Linux, Android, FreeBSD and wasm32. A host whose frames must not block overrides check_sleep in the policy it already passes to with_input_policy.

    l3i 3.1.0 3.6 MB · crates.io
    View on crates.io
    Verify · sha256 ee9d395ce0e4…d9ceb9a71
    File
    l3i-3.1.0.crate
    Size
    3750810 bytes
    SHA-256
    ee9d395ce0e4db8dfd1dcf8fcd94e655050b2b35b5a8df50dd61257d9ceb9a71

    The same digest as the crates.io index's checksum, which Cargo checks on every download.

  2. 3.0.0 stable 2026-11-21

    Luau 0.747, which removed the integer type: packed scalars ride in tagged light userdata on x86-64 and AArch64 and in interned userdata elsewhere, each kind is its own nominal type, and every other 64-bit value is an exact number or a Bits64. The transport moves to dream-net 2.1, on Más Bandwidth's C netcode with its handshake nonce fix, and a started child's stdin is fed about ten times faster.

    Breaking changes

    • dream-net 2.1.0 (from 1.1.1). @dream/udp speaks NETCODE 1.03, which fixes AEAD nonce reuse in the netcode handshake (GHSA-8mrq-q9c6-h23v): a peer on l3i 3.0 never connects to one on l3i 2.x, whose dream-net speaks NETCODE 1.02, and the attempt ends in connectFailed with "timeout". Upgrade servers and clients together.
    • Connect tokens admit one session: once a session is established with a token, the server refuses it again, from any address, even after the session ends. A client that reconnects needs a fresh token from server:connectToken. A server created from Luau still accepts a token minted in the second it started; a host-created dream_net::Server keeps the restart floor dream-net 2.0 added (a token expiring within the server's maximum token lifetime of its start is refused, 30 seconds with Server::new).
    • A Rust host that depends on dream-net itself, to build the dream_net::Server it hands udp::Server::new, moves to dream-net 2.1.0 too, since that is the Server the bridge takes, and gets dream-net 2's types: Error::Netcode and generate_connect_token carry dream_net::NetcodeError, and TransportConfig::reliable_config and Connection::reliable_counters return ReliableConfig and ReliableCounters. Reliable's packet buffers are capped at 16384.
    • Luau 0.747 (from 0.745). The integer type, 42i literals, the integer library and buffer.readinteger/writeinteger are gone from the language: 42i is a syntax error (Malformed number) and integer an unknown type to the checker.
    • Fast flags: the integer flags left with the type, and LuauCompileNoFoldVectorEqW, LuauCompileMoveElision, LuauCompileFastpcall, LuauFastpcall, LuauTableRobustOom and LuauCodegenPropagateFallbackTags graduated and left the list, so memory::fast_flag answers None for them. The while-local flags lost their Debug prefix (LuauExperimentalWhileLocalSyntax, LuauExperimentalWhileLocalAnalysis).
    • A packed scalar is no longer a Luau integer. typeof answers its kind's name (Quaternion, AnimationKey, Color, ClipRect, Color16, Bits64, a host kind's NAME); it compares and keys tables by its 64 bits and kind, and arithmetic or ordering on one raises. Its bits are unchanged, so BufferPack bytes, saved files and wire formats read the same.
    • Signatures and definitions name each packed kind as a nominal type instead of integer, so a strict script that passes a Color where a Quaternion is expected no longer type checks. A plan whose userdata class or type alias takes a kind's name does not finalize.
    • The packed constants (quat.IDENTITY, raster's TRANSPARENT, BLACK, WHITE, CLIP_ALL and the three 16-bit colours) are module values, no longer folded by the compiler.
    • @dream/udp: peer, event and channel ids are numbers, exact or an error, never rounded; the protocol id, client ids and connect-token fingerprint halves are Bits64. udp.server{ protocolId = ... } takes a Bits64 (bits64.fromNumber(n) or bits64.fromHex(s)).
    • @dream/bytes: readVarint and readSignedVarint answer an exact number or raise above 2^53, and readVarint64/writeVarint64 carry all 64 bits as a Bits64; readi64be/writei64be, fnv1a64, xxh64, xxh3 and a 64-bit hasher's value() are Bits64. 32-bit checksums stay numbers.
    • Rust: convert::Integer, FieldValue::Integer, CompileConstant::Integer, stack::Type::Integer, ValueView::is_integer, Library::Integer and the integer arms of the number readers are gone; Library::STANDARD has 11 entries. Bits64 is a wide packed scalar. FieldValue::Bits64 replaces FieldValue::Integer where the light carrier is in use.
    • Rust FFI: Luau 0.747 renumbers the type tags after LUA_TNUMBER (LUA_TVECTOR is 4 through LUA_TOBJECT 12), and the integer entry points (lua_pushinteger64, lua_tointeger64, lua_isinteger64, luaL_checkinteger64, luaL_optinteger64, luaopen_integer, luau_set_compile_constant_integer64, lua_userdatadirectfield_setinteger64) are gone.
    • Host light userdata: LightUserdata pushes and set_light_userdata_name refuse tags at or above 128, which packed kinds own, and a pointer with a non-zero top nibble.
    • @dream/luau trees: ExprConstantInteger is gone, a StatClass name is a Local or an Expr (Luau 0.747's class a.b), and TypeTable lost isExact with Luau's exact table types.
    • Bytecode with a 64-bit integer constant, which an l3i built on Luau 0.746 or older could write, is refused by load_bytecode with an error naming the chunk. Luau 0.747 keeps bytecode version 14, so its own version check would not catch it.

    Added

    • @dream/bits64 in every plan: fromNumber, toNumber (exact, an error past 2^53), fromParts, parts, hex, fromHex, and read and write on a buffer in little or big byte order. A Bits64 has no arithmetic.
    • l3i::packed::carrier: one seam for how a packed scalar is stored, checked by a self-test at every runtime creation (every single bit, all ones and the non-canonical patterns through a push, a read, equality, inequality under another tag and a table key). L3I_CARRIER=boxed at build time forces the interned carrier on a desktop for testing, without jit.
    • ffi::luau_loadlazy, Luau 0.747's loader that builds each function on first call. l3i does not use it.
    • Runtime::lint_native_annotations and source::lint_native_annotations: the parameters of native functions whose annotation still compiles to a userdata guard after the packed-kind erasure (a kind missing from packed_types, a misspelt type), each with its position. Such a guard refuses a packed scalar on every call and leaves the function at interpreter speed.
    • Luau 0.747's compiler and code generator fixes are on: LuauCompileLoopUnrollNegativeZero, LuauCodegenExitSyncExpectedTag and LuauCodegenFastcallAnalysisLimit, with 0.746's LuauCompileRequireNoInline, LuauLoadExplicitGcDisable, LuauSaltedInterningTable and LuauCodegenX64ConflictCheck.

    Changed

    • dream-net runs on Más Bandwidth's C netcode 1.5.0 and reliable, vendored in dream-net and compiled with clang (18 or newer; l3i already builds only with clang), in place of the netcode-official, reliable and serialize-official crates. Those crates leave l3i's dependency graph, and with them netcode-official 1.0.0, which is yanked: a fresh resolution of l3i 2.11.0 or older no longer builds. The wire format above netcode is unchanged.
    • Every build now links C under BSD-3-Clause (netcode and reliable, Más Bandwidth LLC) and ISC (netcode's libsodium subset), dream-net's license being (MIT OR Apache-2.0) AND BSD-3-Clause AND ISC. A product that ships l3i reproduces dream-net's NOTICE.md.
    • A started child's stdin (process.start, child:write) is written in pieces of up to 256 KiB copied out of the queue as slices, where it went 8 KiB at a time, a byte at a time, under the lock write needs. Feeding 8 MB frames to a child went from 18.09 ms to 1.83 ms a frame in one build without LTO, so read it as relative: about ten times faster, enough to stream raw 1080p60 video to an encoder. The 1 MiB queue bound, wouldBlock, close and cancel behave as before.
    • Every dependency is at its latest compatible release (cc 1.11, ICU4X 2.4, rustls-webpki 0.103.17, webpki-root-certs 1.0.12, among others). No requirement in the manifest moved but dream-net's.
    • Luau 0.747 adds about 9 instructions to every C function call on AArch64 (a raw lua_CFunction counts 243 against 234 on 0.746 under Cachegrind) and none on x86-64; l3i's own share of a bound call is unchanged. The measurements and how to repeat them are in CARRIER_BUDGETS.md.
    • Native lowering of @dream/quat, @dream/raster and @dream/bytes reads and writes the light carrier directly and checks the kind nibble, so a lowered call stays native. A lowered call that produces a packed value writes three stores where the integer took one (Luau does not track a light userdata's extra word), so the smallest such operations cost more than they did: C:rgba8 2 to 3 instructions (+10 to 15 percent) and about 65 percent more cycles, Q:fromXYZW +2 to +3 percent, a reassigned acc = Q:mul(acc, r) about 18 cycles, reassigned raster operations 3 to 5 ns. C:rgba8 exceeds the 3 percent native budget the migration set and is accepted as an exception until Luau tracks extra (#34). Binder instruction counts are unchanged.
    • On targets other than x86-64 and AArch64 (wasm32 first) a packed scalar is an interned userdata: the same semantics, at the cost of a lookup and, for a new value, an allocation. jit is refused there. CI builds wasm32-unknown-emscripten and runs the integration suite there under Node with every feature emscripten can back (all but jit, process, tcp, dns, tls, bytes-crypto), but for UDP sockets, child processes, threads and filesystem semantics its Node filesystem lacks; the boxed carrier reproduces the integer carrier's corpus and BufferPack goldens byte for byte. A wasm32 host links with a -sSTACK_SIZE well above emscripten's 64 KiB default and with ALLOW_MEMORY_GROWTH.
    • Packed type names are erased to any before bytecode, so native type guards never reject a packed value; analysis still sees the names.

    Fixed

    • A lowered colour operation accepted a Color whose payload exceeded 32 bits, which the bound call refuses; it now exits to the bound call.
    • quat.key, keyRotation and keyFlags canonicalized a non-canonical payload where their lowering did not; both now compute on the bits.
    • data.selection with a length the host cannot allocate aborted the process (Rust's infallible allocation); it raises. On 32-bit targets a span's count, offset or stride past the address space was reported as negative or as a short stride; it is refused as a 64-bit target refuses it.
    • l3i did not build for wasm32: the value mirror pinned a 64-bit TString layout (its asserts refused the build rather than misread), the toolchain config handed emscripten's target to plain clang, and the value mirror's self-test compared a light userdata's whole value word where a 32-bit pointer fills half of it, and data pinned a 64-bit offset for its selections' word pointer.
    • quat.mul, slerp and rotate (module and quat.math()) agreed with their native lowering only to the angle: the bound path decoded, renormalised and branched differently. They now run the lowering's operations in its order and return the same bits; results from well-formed rotations are unchanged.
    • process.run could answer held = true with whole captures: a process holding a capture that wrote and exited just as the run gave up on it after 250 ms quiet had its output read, but the run still said held. held now says a reader was stopped before its stream's end (#37).

    Migration

    Rebuild every bytecode cache: a chunk with an integer constant is refused, and chunks without one load but were compiled with the old flags.

    Scripts that wrote integer literals write numbers (7 for 7i) where the value is a count or a size, and bits64.fromNumber(n) or bits64.fromHex(s) where it is an id or a hash. typeof(x) == "integer" checks become typeof(x) == "Quaternion" (or the kind expected). Comparing a udp client id or a digest with a number never succeeds; compare it with another Bits64.

    Hosts that pushed light userdata with tags at or above 128, or with high pointer bits set, move those tags below 128. A host that matched on stack::Type::Integer, read convert::Integer or set CompileConstant::Integer uses numbers or Bits64 instead.

    Packed values written to files, buffers or sockets keep their bytes; nothing needs converting.

    Ship servers and clients built on 3.0 together: they do not connect to 2.x peers. Mint a new connect token for every connection attempt, and keep none to present again after a reconnect or a restart. A Rust host that matched netcode-official's Error matches dream_net::NetcodeError, which has the same variants and texts.

    l3i 3.0.0 3.6 MB · crates.io
    View on crates.io
    Verify · sha256 1143e6cb7d8e…dd31e0225
    File
    l3i-3.0.0.crate
    Size
    3744109 bytes
    SHA-256
    1143e6cb7d8eccdc74f39ae849e6294f64ca6be618582f75e4a9cf8dd31e0225

    The same digest as the crates.io index's checksum, which Cargo checks on every download.

  3. 2.11.0 stable 2026-11-13

    Unix permission bits for what @dream/fs creates, set exactly and from the moment it exists, and fs.chmod. process.run no longer cuts a capture short, or calls a run held, because the machine was slow to read it.

    Added

    • fs.writeFile, fs.openWrite, fs.createDurable, fs.mkdir and fs.lock take mode: the Unix permission bits of what the call creates, such as tonumber('600', 8): a file's nine permission bits (0 to 511), and for mkdir set-user-ID, set-group-ID and sticky as well (0 to 4095). The bits are exact, whatever the process umask, and nobody but the owner is given more on the way there: the file is created with them, and what the umask took away is put back through the handle just opened before anything is written. A file that is already there keeps its own bits. mkdir with recursive gives a parent it creates the mode and the owner's write and search bits.
    • fs.writeFile with atomic and a mode gives the new file that mode in place of the old file's permissions.
    • fs.chmod(path, mode) sets the bits of what path names, following symbolic links. It needs filesystem.write, as every call that changes the disk does.
    • fs.stat and fs.lstat report mode, the permission bits, on Unix.

    Changed

    • On Unix the temporary of an atomic fs.writeFile is created with the permission bits the file will keep. It used to be created under the umask, written, and narrowed afterwards, so the new contents of a file private to its owner could be read by others until the write finished.
    • On Unix, whether something still holds a captured stream after the child of process.run has exited is asked of the pipe. The 250 ms and 2 s that end the reading time a process that holds a capture: they start when one is seen, and bytes waiting unread count as that process not being quiet. A run whose captures nothing holds reads them to their end, with only its own limits over it.
    • A process that held a capture and exits while process.run is still reading leaves whole captures and no held: the reading used to stop 250 ms after the child's exit whatever happened next.

    Fixed

    • process.run answered held = true, with a capture cut short, for a child nothing was holding, when the threads reading its captures had not run for 250 ms after it exited. A stalled or heavily loaded machine was enough: a run that only echoed a line could come back held.

    Migration

    Take 2.11.0 in place of 2.10.0. Nothing a caller wrote changes.

    A file that should be its owner's alone is created that way with mode, in place of a umask set from outside the program:

    local Private = tonumber('600', 8)
    assert(fs.writeFile(path, secret, { atomic = true, mode = Private }))
    

    On Windows there are no such bits: a mode is checked and then changes nothing, a stat has no mode, and fs.chmod answers unsupported. A file made with a mode through a name that is a dangling symbolic link is refused with alreadyExists, where the same call without a mode creates the link's target.

    A run that 2.10.0 called held is still held when a process its child started really does keep the pipe open and stays quiet. One that was called held only because the machine was slow is now read whole.

    Not changed in this release: on Windows a run still waits for a held pipe until a limit.

    l3i 2.11.0 3.5 MB · crates.io
    View on crates.io
    Verify · sha256 d14b9b68ec4c…fa3ddfcd3
    File
    l3i-2.11.0.crate
    Size
    3651824 bytes
    SHA-256
    d14b9b68ec4c27fbf858ed15d31d6a7635adefa4b267cef479b32dafa3ddfcd3

    The same digest as the crates.io index's checksum, which Cargo checks on every download.

Credits

  • MaintainerS3kshun8
  • Luau, the language and VM this crate builds and binds (MIT)Roblox
  • netcode and reliable, the C beneath dream-net (BSD-3-Clause; a binary that ships it reproduces dream-net's NOTICE.md)Más Bandwidth LLC
  • libopus, the Opus decoder behind @dream/audio (BSD-3-Clause; a binary that ships it reproduces opus/COPYING)Xiph.Org Foundation and contributors
  • nanomp3, the MP3 decoder behind @dream/audio (MIT OR Apache-2.0)Robert B. Langer
  • lewton, the Vorbis decoder behind @dream/audio (MIT OR Apache-2.0)est31