Skip to content
Kitbay
Skill

rust-system-calls

NOASSERTIONUpdated on Nov 11, 202696,758GitHub stars

A short contributor guide in the Bun repository telling agents to use Bun's own bun_sys crate, not the Rust standard library or raw libc, for system calls and file input and output in Bun's Rust code.

What the skill teaches

A short contributor guide in the Bun repository telling agents to use Bun's own bun_sys crate, not the Rust standard library or raw libc, for system calls and file input and output in Bun's Rust code. It explains the File wrapper that closes its descriptor when dropped, compares bun_sys with the alternatives on Windows support, error detail and automatic retries, and shows how to propagate errors or turn them into JavaScript exceptions and how to ignore a specific error such as a missing file. It lists the key functions and open flags, recommends pooled path buffers over large stack buffers, and warns against unwrapping fallible results or closing a descriptor still owned by a File.

Capabilities

Not stated in its documentation