From 95ce780afd86a5fddf710bc2024ecb75d9238a8c Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Sat, 18 Jul 2026 21:38:43 +0200 Subject: [PATCH 1/5] chore: fix typo in linkify --- modules/linkify/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/linkify/src/lib.rs b/modules/linkify/src/lib.rs index a62ba7b..1e9eac6 100644 --- a/modules/linkify/src/lib.rs +++ b/modules/linkify/src/lib.rs @@ -222,7 +222,7 @@ impl TrinityCommand for Component { _ => "Invalid command!".into(), } } else { - "Create regex based substition rules per channel! Help topics: admin".to_owned() + "Create regex based substitution rules per channel! Help topics: admin".to_owned() } } From aa77e09022699c5e2eff6c4c95a2b14b4a024e4b Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Sat, 18 Jul 2026 21:48:02 +0200 Subject: [PATCH 2/5] chore: reformat modules --- modules/libcommand/src/trinity_module.rs | 4 +--- modules/wit-kv/src/kv_world.rs | 4 +--- modules/wit-log/src/log_world.rs | 4 +--- modules/wit-sync-request/src/sync_request_world.rs | 4 +--- modules/wit-sys/src/sys_world.rs | 4 +--- 5 files changed, 5 insertions(+), 15 deletions(-) diff --git a/modules/libcommand/src/trinity_module.rs b/modules/libcommand/src/trinity_module.rs index 8fb23f7..32b6109 100644 --- a/modules/libcommand/src/trinity_module.rs +++ b/modules/libcommand/src/trinity_module.rs @@ -658,9 +658,7 @@ contents\x09author-ids\x0bauthor-names\x04rooms\0\x0c\x04\0\x06on-msg\x01\x0e\x0 #[doc(inline)] pub use __export_trinity_module_impl as export; #[cfg(target_arch = "wasm32")] -#[unsafe( - link_section = "component-type:wit-bindgen:0.41.0:trinity:module:trinity-module-with-all-of-its-exports-removed:encoded world" -)] +#[unsafe(link_section = "component-type:wit-bindgen:0.41.0:trinity:module:trinity-module-with-all-of-its-exports-removed:encoded world")] #[doc(hidden)] #[allow(clippy::octal_escapes)] pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 236] = *b"\ diff --git a/modules/wit-kv/src/kv_world.rs b/modules/wit-kv/src/kv_world.rs index 1e9cd20..42b9c9b 100644 --- a/modules/wit-kv/src/kv_world.rs +++ b/modules/wit-kv/src/kv_world.rs @@ -309,9 +309,7 @@ mod _rt { extern crate alloc as alloc_crate; } #[cfg(target_arch = "wasm32")] -#[unsafe( - link_section = "component-type:wit-bindgen:0.41.0:trinity:api:kv-world:encoded world" -)] +#[unsafe(link_section = "component-type:wit-bindgen:0.41.0:trinity:api:kv-world:encoded world")] #[doc(hidden)] #[allow(clippy::octal_escapes)] pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 290] = *b"\ diff --git a/modules/wit-log/src/log_world.rs b/modules/wit-log/src/log_world.rs index 5e0df5b..0104e2b 100644 --- a/modules/wit-log/src/log_world.rs +++ b/modules/wit-log/src/log_world.rs @@ -109,9 +109,7 @@ pub mod trinity { } } #[cfg(target_arch = "wasm32")] -#[unsafe( - link_section = "component-type:wit-bindgen:0.41.0:trinity:api:log-world:encoded world" -)] +#[unsafe(link_section = "component-type:wit-bindgen:0.41.0:trinity:api:log-world:encoded world")] #[doc(hidden)] #[allow(clippy::octal_escapes)] pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 238] = *b"\ diff --git a/modules/wit-sync-request/src/sync_request_world.rs b/modules/wit-sync-request/src/sync_request_world.rs index f3c03c0..368f62b 100644 --- a/modules/wit-sync-request/src/sync_request_world.rs +++ b/modules/wit-sync-request/src/sync_request_world.rs @@ -403,9 +403,7 @@ mod _rt { extern crate alloc as alloc_crate; } #[cfg(target_arch = "wasm32")] -#[unsafe( - link_section = "component-type:wit-bindgen:0.41.0:trinity:api:sync-request-world:encoded world" -)] +#[unsafe(link_section = "component-type:wit-bindgen:0.41.0:trinity:api:sync-request-world:encoded world")] #[doc(hidden)] #[allow(clippy::octal_escapes)] pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 483] = *b"\ diff --git a/modules/wit-sys/src/sys_world.rs b/modules/wit-sys/src/sys_world.rs index 8f4b2e1..8398075 100644 --- a/modules/wit-sys/src/sys_world.rs +++ b/modules/wit-sys/src/sys_world.rs @@ -31,9 +31,7 @@ pub mod trinity { } } #[cfg(target_arch = "wasm32")] -#[unsafe( - link_section = "component-type:wit-bindgen:0.41.0:trinity:api:sys-world:encoded world" -)] +#[unsafe(link_section = "component-type:wit-bindgen:0.41.0:trinity:api:sys-world:encoded world")] #[doc(hidden)] #[allow(clippy::octal_escapes)] pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 200] = *b"\ From e1bd88685e576e42c98586b84461967beab6ef46 Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Sat, 18 Jul 2026 21:48:25 +0200 Subject: [PATCH 3/5] ci: re-enable modules formatting --- .github/workflows/main.yml | 6 +++--- modules/Makefile | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5669c22..72c3373 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -60,9 +60,9 @@ jobs: - uses: Swatinem/rust-cache@v2 - #- name: Format modules - # run: | - # cargo fmt --all --manifest-path ./modules/Cargo.toml -- --check + - name: Format modules + run: | + cargo fmt --all --manifest-path ./modules/Cargo.toml -- --check - name: Install Protoc uses: arduino/setup-protoc@v1 diff --git a/modules/Makefile b/modules/Makefile index 69f9d7d..c9d3dd6 100644 --- a/modules/Makefile +++ b/modules/Makefile @@ -29,6 +29,7 @@ release: bindings check: bindings ## Check all the component modules in debug mode. cargo check --target wasm32-unknown-unknown + cargo fmt watch: bindings ## Regenerates bindings once and watches for changes in the Rust source files. cargo watch -s "make build-tail" From f0fdf1bdaf27179d9fc69df4e1a00c70fb792d28 Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Sat, 18 Jul 2026 21:50:04 +0200 Subject: [PATCH 4/5] ci: remove --verbose for `cargo check` --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 72c3373..f7ad8da 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,7 +36,7 @@ jobs: - name: Check host run: | - cargo check --all --verbose + cargo check --all ci-modules: env: From dbafe3fe736df6f44e316c85a57b4e1e4785811f Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Sat, 18 Jul 2026 21:51:44 +0200 Subject: [PATCH 5/5] doc: update modules' README --- modules/README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/README.md b/modules/README.md index 5e3b0fe..15530d9 100644 --- a/modules/README.md +++ b/modules/README.md @@ -2,7 +2,4 @@ These are the Trinity modules. -Install all the required tools with `./install.sh`. -Then use any of `./check.sh`, `./build.sh`. - -`regenerate.sh` can be used to regenerate the wit bindings into the library directories. +Look at available `make` commands by running `make` (or equivalent `make help`).