chore: pin chain-module-sdk v0.3.0 and switch to #[chain_module]
Some checks failed
CI / Linux x86_64 (Forgejo) (push) Failing after 2s

The pre-rename #[fai_module] attribute is gone in SDK 0.3.0; the
dependency is tag-pinned so an SDK push can no longer change what
this module builds against. Rebuilt artifact where tracked.

Signed-off-by: flemming-it <sf@flemming.it>
This commit is contained in:
flemming-it 2026-07-12 13:52:39 +02:00
parent 10aa1e1b51
commit 83b65cd969
5 changed files with 7 additions and 7 deletions

8
Cargo.lock generated
View file

@ -79,8 +79,8 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
[[package]]
name = "chain-module-sdk"
version = "0.1.2"
source = "git+https://git.flemming.ai/fai/chain-module-sdk-rust.git?branch=main#98e98e9371f7409560a1ef08bc0923d9a2506449"
version = "0.3.0"
source = "git+https://git.flemming.ai/fai/chain-module-sdk-rust.git?tag=v0.3.0#a4415ada7e76aac5e3aabf3e4c4311ffc348d8d0"
dependencies = [
"chain-module-sdk-macros",
"serde",
@ -91,8 +91,8 @@ dependencies = [
[[package]]
name = "chain-module-sdk-macros"
version = "0.1.2"
source = "git+https://git.flemming.ai/fai/chain-module-sdk-rust.git?branch=main#98e98e9371f7409560a1ef08bc0923d9a2506449"
version = "0.3.0"
source = "git+https://git.flemming.ai/fai/chain-module-sdk-rust.git?tag=v0.3.0#a4415ada7e76aac5e3aabf3e4c4311ffc348d8d0"
dependencies = [
"proc-macro2",
"quote",

View file

@ -18,7 +18,7 @@ rust-version = "1.85"
crate-type = ["cdylib", "rlib"]
[dependencies]
chain-module-sdk = { git = "https://git.flemming.ai/fai/chain-module-sdk-rust.git", branch = "main" }
chain-module-sdk = { git = "https://git.flemming.ai/fai/chain-module-sdk-rust.git", tag = "v0.3.0" }
serde = { version = "1", features = ["derive"] }
pdf-extract = "0.7"
zip = { version = "2", default-features = false, features = ["deflate"] }

View file

@ -41,7 +41,7 @@ The build depends on a sibling checkout of `fai/module-sdk`:
```
~/fai/
├── module_sdk/ # cloned from fai/module-sdk
└── fai_modules/
└── chain_modules/
└── text-extract/ # this repo
```

Binary file not shown.

View file

@ -80,7 +80,7 @@ struct BoundingBox {
height: f64,
}
#[fai_module]
#[chain_module]
pub fn invoke(_ctx: Context, inputs: Inputs) -> Result<Outputs, ModuleError> {
let bytes = inputs.require_bytes("document")?;
let extracted = match bytes.mime_type.as_str() {