feat(sdk)!: drop the #[fai_module] alias — #[chain_module] only
Some checks failed
CI / Linux x86_64 (Forgejo) (push) Failing after 1s
Some checks failed
CI / Linux x86_64 (Forgejo) (push) Failing after 1s
No module outside this workspace was ever published against the alias (the system has no external users yet), so the pre-rename name goes away instead of being maintained: one attribute, no legacy surface. All internal doc references swept; echo example description moves to the product name. 0.3.0. Signed-off-by: flemming-it <sf@flemming.it>
This commit is contained in:
parent
4b4de3374c
commit
a4415ada7e
13 changed files with 17 additions and 31 deletions
|
|
@ -1,7 +1,6 @@
|
|||
//! Procedural macros powering `chain-module-sdk`.
|
||||
//!
|
||||
//! This crate exists only to host the `#[chain_module]` attribute
|
||||
//! (and its legacy alias `#[fai_module]`).
|
||||
//! This crate exists only to host the `#[chain_module]` attribute.
|
||||
//! Module authors should depend on `chain-module-sdk` (which
|
||||
//! re-exports the macro), not on this crate directly.
|
||||
|
||||
|
|
@ -28,18 +27,6 @@ const WIT_INLINE: &str = include_str!("../../../wit/world.wit");
|
|||
/// anything — only its signature matters.
|
||||
#[proc_macro_attribute]
|
||||
pub fn chain_module(_attrs: TokenStream, input: TokenStream) -> TokenStream {
|
||||
expand_module(input)
|
||||
}
|
||||
|
||||
/// Legacy alias for [`chain_module`], kept so modules written
|
||||
/// before the product rename keep compiling. New code uses
|
||||
/// `#[chain_module]`.
|
||||
#[proc_macro_attribute]
|
||||
pub fn fai_module(_attrs: TokenStream, input: TokenStream) -> TokenStream {
|
||||
expand_module(input)
|
||||
}
|
||||
|
||||
fn expand_module(input: TokenStream) -> TokenStream {
|
||||
let user_fn = parse_macro_input!(input as ItemFn);
|
||||
let user_fn_name = user_fn.sig.ident.clone();
|
||||
let wit_literal = WIT_INLINE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue