From 78a79954250a71f6a89b4ade7c26b33ef681f265 Mon Sep 17 00:00:00 2001 From: jurij-jukic Date: Wed, 8 May 2024 15:59:18 +0200 Subject: [PATCH 1/2] add link --- src/process_stdlib/overview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/process_stdlib/overview.md b/src/process_stdlib/overview.md index 34e5cbbb..87a0b420 100644 --- a/src/process_stdlib/overview.md +++ b/src/process_stdlib/overview.md @@ -24,7 +24,7 @@ Since the current major version of both is 0, breaking changes can occur at any 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. -Since Kinode apps use the [WebAssembly Component Model](https://component-model.bytecodealliance.org/), they are built on top of a WIT (Wasm Interface Type) package. +Since Kinode apps use the [WebAssembly Component Model](https://component-model.bytecodealliance.org/), they are built on top of a [WIT](https://component-model.bytecodealliance.org/design/wit.html) (Wasm Interface Type) package. This interface contains the core types and functions that are available to all Kinode apps, and these are automatically generated in Rust when building a Wasm app. However, the types themselves are unwieldy to use directly, and runtime modules present APIs that can be drastically simplified by using helper functions and types in the process standard library. From a6e7345242e039a69ccb0fe332f0fa422844cc0f Mon Sep 17 00:00:00 2001 From: jurij-jukic Date: Thu, 9 May 2024 10:10:11 +0200 Subject: [PATCH 2/2] codegen clarify --- src/process_stdlib/overview.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/process_stdlib/overview.md b/src/process_stdlib/overview.md index 87a0b420..ea40ab57 100644 --- a/src/process_stdlib/overview.md +++ b/src/process_stdlib/overview.md @@ -24,8 +24,10 @@ Since the current major version of both is 0, breaking changes can occur at any 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. -Since Kinode apps use the [WebAssembly Component Model](https://component-model.bytecodealliance.org/), they are built on top of a [WIT](https://component-model.bytecodealliance.org/design/wit.html) (Wasm Interface Type) package. -This interface contains the core types and functions that are available to all Kinode apps, and these are automatically generated in Rust when building a Wasm app. +Since Kinode apps use the [WebAssembly Component Model](https://component-model.bytecodealliance.org/), they are built on top of a [WIT](https://component-model.bytecodealliance.org/design/wit.html) (Wasm Interface Type) [package](https://github.com/kinode-dao/kinode-wit/blob/master/kinode.wit). +[`wit-bindgen`](https://github.com/bytecodealliance/wit-bindgen) is used to generate Rust code from a WIT file. +The generated code then contains the core types and functions that are available to all Kinode apps. + However, the types themselves are unwieldy to use directly, and runtime modules present APIs that can be drastically simplified by using helper functions and types in the process standard library. Almost all code examples in this book make use of the process lib. For specific examples of its usage, check out the [docs](https://docs.rs/kinode_process_lib) or just follow the tutorials later in this book.