feat: add support for WebAssembly plugin crates #20

Merged
eric merged 1 commit from push-kozzotstmzos into main 2026-11-25 11:00:48 +01:00
Owner

Introduce a new plugin crate kind in kit/crate.mk to handle the build,
distribution, and installation of WebAssembly modules. This includes adding
a dedicated template (template-plugin/) with a CeCILL license, a Gitea
release workflow, and necessary configuration files. Update adopt.sh to
support plugin templates and modify API-related scripts to skip checks for
plugins since they do not expose Rust APIs.

  • Add kit/crate.mk logic for CRATE_KIND=plugin, defining variables like
    PLUGIN_ID and targets for WASM compilation (wasm32-unknown-unknown),
    distribution, and installation.
  • Create template-plugin/ directory containing a Makefile, .gitignore,
    CeCILL licenses (FR/EN), and a Gitea release workflow for tagging and
    publishing.
  • Update adopt.sh to accept a --plugin argument, selecting the
    template-plugin directory instead of the standard template.
  • Modify kit/scripts/api-level.sh, api-snapshot.sh, publish.sh, and
    wiki.sh to exit early for plugin crates, as they do not have Rust APIs
    or wiki documentation requirements.
  • Add tests/e2e-plugin.sh to verify the end-to-end workflow of building,
    installing, and distributing a WASM plugin crate.
  • Update kit/VERSION from 0.1.19 to 0.1.22 and add an e2e test case to
    the main Makefile.
  • Document the new plugin workflow in README.md, including prerequisites
    for the WASM target and versioning rules.
Introduce a new `plugin` crate kind in `kit/crate.mk` to handle the build, distribution, and installation of WebAssembly modules. This includes adding a dedicated template (`template-plugin/`) with a CeCILL license, a Gitea release workflow, and necessary configuration files. Update `adopt.sh` to support plugin templates and modify API-related scripts to skip checks for plugins since they do not expose Rust APIs. - Add `kit/crate.mk` logic for `CRATE_KIND=plugin`, defining variables like `PLUGIN_ID` and targets for WASM compilation (`wasm32-unknown-unknown`), distribution, and installation. - Create `template-plugin/` directory containing a Makefile, `.gitignore`, CeCILL licenses (FR/EN), and a Gitea release workflow for tagging and publishing. - Update `adopt.sh` to accept a `--plugin` argument, selecting the `template-plugin` directory instead of the standard template. - Modify `kit/scripts/api-level.sh`, `api-snapshot.sh`, `publish.sh`, and `wiki.sh` to exit early for plugin crates, as they do not have Rust APIs or wiki documentation requirements. - Add `tests/e2e-plugin.sh` to verify the end-to-end workflow of building, installing, and distributing a WASM plugin crate. - Update `kit/VERSION` from 0.1.19 to 0.1.22 and add an e2e test case to the main Makefile. - Document the new plugin workflow in `README.md`, including prerequisites for the WASM target and versioning rules.
feat: add support for WebAssembly plugin crates
All checks were successful
Release / release (push) Successful in 27s
57d76b386e
Introduce a new `plugin` crate kind in `kit/crate.mk` to handle the build,
distribution, and installation of WebAssembly modules. This includes adding
a dedicated template (`template-plugin/`) with a CeCILL license, a Gitea
release workflow, and necessary configuration files. Update `adopt.sh` to
support plugin templates and modify API-related scripts to skip checks for
plugins since they do not expose Rust APIs.

- Add `kit/crate.mk` logic for `CRATE_KIND=plugin`, defining variables like
  `PLUGIN_ID` and targets for WASM compilation (`wasm32-unknown-unknown`),
  distribution, and installation.
- Create `template-plugin/` directory containing a Makefile, `.gitignore`,
  CeCILL licenses (FR/EN), and a Gitea release workflow for tagging and
  publishing.
- Update `adopt.sh` to accept a `--plugin` argument, selecting the
  `template-plugin` directory instead of the standard template.
- Modify `kit/scripts/api-level.sh`, `api-snapshot.sh`, `publish.sh`, and
  `wiki.sh` to exit early for plugin crates, as they do not have Rust APIs
  or wiki documentation requirements.
- Add `tests/e2e-plugin.sh` to verify the end-to-end workflow of building,
  installing, and distributing a WASM plugin crate.
- Update `kit/VERSION` from 0.1.19 to 0.1.22 and add an e2e test case to
  the main Makefile.
- Document the new plugin workflow in `README.md`, including prerequisites
  for the WASM target and versioning rules.
eric merged commit a4576f4fbd into main 2026-11-25 11:00:48 +01:00
eric deleted branch push-kozzotstmzos 2026-11-25 11:00:51 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
LLM/crate-kit!20
No description provided.