Zum Inhalt springen
Kitbay
Skill

rust-system-calls

NOASSERTIONAktualisiert am 11. Nov. 202696.758GitHub-Sterne

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.

Was der Skill vermittelt

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.

Funktionen

In der Dokumentation nicht angegeben