refactor: rename WIT contract fai:platform->chain:platform
Some checks failed
CI / Linux x86_64 (Forgejo) (push) Failing after 2s
Some checks failed
CI / Linux x86_64 (Forgejo) (push) Failing after 2s
Tracks the platform's WIT ABI rename. The module world package is now chain:platform@1.0.0; generated binding paths + accessor names follow. Modules built with this SDK now import chain:platform/host. SDK crate names stay fai-* (vendor namespace) for now. Signed-off-by: flemming-it <sf@flemming.it>
This commit is contained in:
parent
5fe32eac8d
commit
a5da67d0a3
4 changed files with 6 additions and 6 deletions
|
|
@ -32,7 +32,7 @@ That single function — plus a `Cargo.toml` listing
|
|||
## Stability
|
||||
|
||||
The SDK insulates module code from the underlying WIT contract
|
||||
(`fai:platform`, frozen at v1.0 in the platform repo). The
|
||||
(`chain:platform`, frozen at v1.0 in the platform repo). The
|
||||
WIT may evolve in additive minor versions or, eventually, a
|
||||
coordinated v2.0; the SDK absorbs that change so existing
|
||||
module code keeps compiling.
|
||||
|
|
@ -47,7 +47,7 @@ two ever drift, CI fails.
|
|||
|
||||
| Track | Stability |
|
||||
|-------|-----------|
|
||||
| WIT contract (`fai:platform`) | Frozen at v1.0 in the platform repo |
|
||||
| WIT contract (`chain:platform`) | Frozen at v1.0 in the platform repo |
|
||||
| `fai-module-sdk` Rust API | Semver; v0.x while ergonomics evolve |
|
||||
| Per-module versions | Each module repo's own concern |
|
||||
|
||||
|
|
|
|||
|
|
@ -57,8 +57,8 @@ pub fn fai_module(_attrs: TokenStream, input: TokenStream) -> TokenStream {
|
|||
runtime_path: "::fai_module_sdk::__rt::wit_bindgen::rt",
|
||||
});
|
||||
|
||||
use exports::fai::platform::invoke::Guest;
|
||||
use fai::platform::types::{
|
||||
use exports::chain::platform::invoke::Guest;
|
||||
use chain::platform::types::{
|
||||
BytesValue as WitBytes,
|
||||
FileRef as WitFileRef,
|
||||
InvocationContext as WitContext,
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
//! # Stability
|
||||
//!
|
||||
//! This crate insulates modules from the underlying WIT contract
|
||||
//! (`fai:platform`, frozen at v1.0). The WIT may evolve in additive
|
||||
//! (`chain:platform`, frozen at v1.0). The WIT may evolve in additive
|
||||
//! minor versions or, eventually, a coordinated v2.0; the SDK absorbs
|
||||
//! that change so module code keeps compiling.
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
// stable, ergonomic surface. That is what protects modules
|
||||
// from any future evolution of this contract.
|
||||
|
||||
package fai:platform@1.0.0;
|
||||
package chain:platform@1.0.0;
|
||||
|
||||
/// Types that flow between the host (hub) and modules.
|
||||
interface types {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue