#process #version #wit #byte #standard #file #kinode

kinode_process_lib

A library for writing Kinode processes in Rust

11 releases

0.9.6 Nov 1, 2024
0.9.5 Nov 1, 2024
0.9.4 Oct 22, 2024
0.9.2 Sep 21, 2024
0.0.0-reserved Jan 17, 2024

#988 in Magic Beans

Download history 112/week @ 2024-07-22 106/week @ 2024-08-12 7/week @ 2024-08-19 1/week @ 2024-08-26 145/week @ 2024-09-02 6/week @ 2024-09-09 201/week @ 2024-09-16 74/week @ 2024-09-23 231/week @ 2024-09-30 31/week @ 2024-10-07 22/week @ 2024-10-14 157/week @ 2024-10-21 239/week @ 2024-10-28 72/week @ 2024-11-04

492 downloads per month

Custom license

255KB
5.5K SLoC

kinode_process_lib

Library of functions for more ergonomic Kinode Rust process development. Documentation can be found here. See the Kinode Book for a guide on how to use this library to write Kinode apps in Rust.

The major version of kinode_process_lib will always match the major version of Kinode OS. Since the current major version of both is 0, breaking changes can occur on minor releases. Once the major version reaches 1, breaking changes will only occur between major versions. As is, developers may have to update their version of process_lib as they update Kinode OS.


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

~23–33MB
~622K SLoC