A high-performance inference engine for AI models
kiban
Cross-platform OS primitives (基盤, "foundation"). One async API that compiles to
tokio on native targets and to browser primitives — OPFS for
storage, wasm-bindgen-futures for tasks — on wasm. Downstream crates depend on kiban
instead of tokio or web-sys directly, so the same code builds and runs on both.
Modules
fs— async filesystem operations backed bytokio::fson native and OPFS onwasm.PartFileprovides resumable, append-oriented writes for partial downloads.rt— task runtime.time— time primitives.process— process helpers.maybe— theMaybeSend/MaybeSyncmarker traits, which requireSend/Syncon native targets and impose no bound onwasm, where futures are single-threaded.
The crate also exports the printf! and eprintf! macros, which route to println! /
eprintln! on native and to the browser console on wasm.
Platform
wasm support targets the browser and relies on OPFS for storage; note that OPFS does not
support hard links, so fs::hard_link falls back to copying. On native targets the full
tokio-backed implementations are used.