Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

- name: Check host
run: |
cargo check --all --verbose
cargo check --all

ci-modules:
env:
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions modules/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 1 addition & 4 deletions modules/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`).
4 changes: 1 addition & 3 deletions modules/libcommand/src/trinity_module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"\
Expand Down
2 changes: 1 addition & 1 deletion modules/linkify/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}

Expand Down
4 changes: 1 addition & 3 deletions modules/wit-kv/src/kv_world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"\
Expand Down
4 changes: 1 addition & 3 deletions modules/wit-log/src/log_world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"\
Expand Down
4 changes: 1 addition & 3 deletions modules/wit-sync-request/src/sync_request_world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"\
Expand Down
4 changes: 1 addition & 3 deletions modules/wit-sys/src/sys_world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"\
Expand Down
Loading