refactor: rename crate fai-module-sdk -> chain-module-sdk
Some checks failed
CI / Linux x86_64 (Forgejo) (push) Failing after 2s
Some checks failed
CI / Linux x86_64 (Forgejo) (push) Failing after 2s
The SDK is product-scoped (Ch∆In's module SDK), not a generic vendor crate — a future Brain SDK would collide. Crate + macros renamed to chain-module-sdk[-macros]; repo + dir follow. Signed-off-by: flemming-it <sf@flemming.it>
This commit is contained in:
parent
cd4457310b
commit
98e98e9371
14 changed files with 58 additions and 58 deletions
13
crates/chain-module-sdk/src/context.rs
Normal file
13
crates/chain-module-sdk/src/context.rs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
//! Invocation context passed to a module on every call.
|
||||
//!
|
||||
//! Mirrors the WIT `invocation-context` record. The
|
||||
//! `#[fai_module]` macro builds this from the WIT-generated value
|
||||
//! before handing it to user code.
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct Context {
|
||||
pub invocation_id: String,
|
||||
pub capability_namespace: String,
|
||||
pub capability_name: String,
|
||||
pub deadline_ms: u64,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue