#process #standard #byte #wit #file #body #kinode

kinode_process_lib

The standard library for Kinode processes developed in Rust

1 unstable release

0.0.0-reserved Jan 17, 2024

#57 in #wit

Apache-2.0

145KB
3K SLoC

process_lib

Library of functions for more ergonomic kinode process development.

To develop/build:

git submodule update --init

Docs: (TODO link)


lib.rs:

kinode process standard library for Rust compiled to WASM Must be used in context of bindings generated by kinode.wit.

This library provides a set of functions for interacting with the kinode kernel interface, which is a WIT file. The types generated by this file are available in processes via the wit_bindgen macro, if a process needs to use them directly. However, the most convenient way to do most things will be via this library.

We define wrappers over the wit bindings to make them easier to use. This library encourages the use of IPC body and metadata types serialized and deserialized to JSON, which is not optimal for performance, but useful for applications that want to maximize composability and introspectability. For blobs, we recommend bincode to serialize and deserialize to bytes.

Dependencies

~4–17MB
~240K SLoC