feat(sdk): rename attribute to #[chain_module], keep #[fai_module] alias
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 public macro name was the last product-scoped 'fai' identifier in the SDK surface. #[chain_module] is now the primary attribute (README + examples updated); #[fai_module] stays as a delegating alias so modules written before the rename keep compiling. 0.2.1. Signed-off-by: flemming-it <sf@flemming.it>
This commit is contained in:
parent
40f3dbd885
commit
4b4de3374c
9 changed files with 33 additions and 19 deletions
4
examples/progress/Cargo.lock
generated
4
examples/progress/Cargo.lock
generated
|
|
@ -34,7 +34,7 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
|||
|
||||
[[package]]
|
||||
name = "chain-module-sdk"
|
||||
version = "0.1.2"
|
||||
version = "0.2.0"
|
||||
dependencies = [
|
||||
"chain-module-sdk-macros",
|
||||
"serde",
|
||||
|
|
@ -45,7 +45,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "chain-module-sdk-macros"
|
||||
version = "0.1.2"
|
||||
version = "0.2.0"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
use chain_module_sdk::prelude::*;
|
||||
|
||||
#[fai_module]
|
||||
#[chain_module]
|
||||
fn invoke(ctx: Context, inputs: Inputs) -> Result<Outputs, ModuleError> {
|
||||
let text = inputs.require_text("input")?;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue