From 0ec78fb06f264d57a9e6f4f31c26ed8fa55de0c6 Mon Sep 17 00:00:00 2001 From: flemming-it Date: Tue, 26 May 2026 00:59:18 +0200 Subject: [PATCH] chore(plugin): adopt fai-plugin-sdk naming + fai-plugins repo URL Three SDK families convention from fai/platform/docs/architecture/sdks.md: base name carries family, suffix carries language. This plugin now depends on fai-plugin-sdk (was fai-studio-plugin-sdk) and moves to the fai-plugins/ org on Forgejo. Signed-off-by: flemming-it --- Cargo.lock | 4 ++-- Cargo.toml | 8 ++++---- README.md | 2 +- src/lib.rs | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8062727..198c495 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -39,7 +39,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" [[package]] -name = "fai-studio-plugin-sdk" +name = "fai-plugin-sdk" version = "0.1.0" dependencies = [ "wit-bindgen", @@ -209,7 +209,7 @@ dependencies = [ name = "studio_theme_solarized" version = "0.1.0" dependencies = [ - "fai-studio-plugin-sdk", + "fai-plugin-sdk", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index c6b8bb9..222a2aa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,17 +15,17 @@ authors = ["Dr. Stefan Flemming "] license = "Apache-2.0" publish = false description = "F∆I Studio plugin — Solarized Light and Dark theme" -repository = "https://git.flemming.ai/fai-modules/studio-theme-solarized" +repository = "https://git.flemming.ai/fai-plugins/studio-theme-solarized" rust-version = "1.85" [lib] crate-type = ["cdylib"] [dependencies] -# The SDK lives in fai/fai_studio_plugin_sdk during bootstrap; +# The SDK lives in fai/fai_plugin_sdk_rust during bootstrap; # in production this will be a git dependency pointing at -# https://git.flemming.ai/fai/studio-plugin-sdk. -fai-studio-plugin-sdk = { path = "../../fai_studio_plugin_sdk" } +# https://git.flemming.ai/fai/plugin-sdk-rust. +fai-plugin-sdk = { path = "../../fai_plugin_sdk_rust" } [package.metadata.component] package = "fai:studio-plugin" diff --git a/README.md b/README.md index af1fda0..48128c4 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ falls back to its built-in renderer / the `[EN]` badge. v0.2 will split the WIT into one world per hook so a theme plugin only writes the theme impl. See -`docs/advanced/studio-plugin-sdk.md` in `fai/platform` for +`docs/advanced/plugin-sdk.md` in `fai/platform` for the design notes. ## Build diff --git a/src/lib.rs b/src/lib.rs index 9d4402e..53f58c3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -5,12 +5,12 @@ //! export. //! //! This is the proof-of-contract plugin for the -//! `fai-studio-plugin-sdk` v0.1 shape: one struct, one +//! `fai-plugin-sdk` v0.1 shape: one struct, one //! `Guest` impl, one `export_plugin!` invocation. #![allow(clippy::result_large_err)] -use fai_studio_plugin_sdk::{bindings, export_plugin}; +use fai_plugin_sdk::{bindings, export_plugin}; // Type aliases against the SDK's bindings so the impl block // reads cleanly. Once the SDK v0.2 ships proper re-exports +