From 4cbb99a9a965cc6d35e8514a1f6b163336aee343 Mon Sep 17 00:00:00 2001 From: flemming-it Date: Tue, 16 Jun 2026 11:26:38 +0200 Subject: [PATCH] refactor: rename crate fai-plugin-sdk -> chain-plugin-sdk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Product-scoped SDK name (Ch∆In's plugin SDK). Signed-off-by: flemming-it --- Cargo.toml | 8 ++++---- src/lib.rs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9d0f47e..1583649 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,4 +1,4 @@ -# fai-plugin-sdk +# chain-plugin-sdk # # Ergonomic wrapper around the WIT bindings declared in # `wit/studio-plugin.wit`. Studio plugins depend on this crate @@ -12,7 +12,7 @@ # crates per the SDK-family convention in # `docs/architecture/sdks.md`: # - fai-module-sdk (Rust) — flow modules -# - fai-plugin-sdk (Rust) — Studio plugins ← this crate +# - chain-plugin-sdk (Rust) — Studio plugins ← this crate # - fai-client-sdk (Dart) — clients talking to the hub # Each gets a language-suffix on the dir / repo # (fai_plugin_sdk_rust / git.flemming.ai/fai/plugin-sdk-rust) @@ -24,7 +24,7 @@ # # Use: # -# use fai_plugin_sdk::{export_plugin, bindings}; +# use chain_plugin_sdk::{export_plugin, bindings}; # # struct MyTheme; # impl bindings::exports::chain::studio_plugin::theme::Guest for MyTheme { @@ -34,7 +34,7 @@ # export_plugin!(MyTheme); [package] -name = "fai-plugin-sdk" +name = "chain-plugin-sdk" version = "0.1.0" # edition 2021 for now — wit-bindgen 0.36 emits the older # `#[link_section]` / `unsafe`-attribute syntax that the diff --git a/src/lib.rs b/src/lib.rs index 89f0638..4601ad0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,4 @@ -//! `fai-plugin-sdk` — ergonomic wrapper around the +//! `chain-plugin-sdk` — ergonomic wrapper around the //! Studio-plugin WIT contract. //! //! Studio plugins are WASM components targeting the @@ -75,7 +75,7 @@ pub mod bindings { /// `Guest` traits. /// /// ```ignore -/// use fai_plugin_sdk::{export_plugin, bindings}; +/// use chain_plugin_sdk::{export_plugin, bindings}; /// /// struct MyTheme; /// impl bindings::exports::chain::studio_plugin::theme::Guest for MyTheme {