Skip to content

Commit

Permalink
fix(schema-engine-wasm): clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jkomyno committed Jan 10, 2025
1 parent 30e488a commit 93379e7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
22 changes: 21 additions & 1 deletion schema-engine/schema-engine-wasm/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
mod engine;
#[cfg(not(target_arch = "wasm32"))]
mod arch {
// This crate only works in a Wasm environment.
// This conditional compilation block is here to make commands like
// `cargo clippy --all-features` happy, as `clippy` doesn't support the
// `--exclude` option (see: https://github.com/rust-lang/rust-clippy/issues/9555).
//
// This crate can still be inspected by `clippy` via:
// `cargo clippy --all-features -p schema-engine-wasm --target wasm32-unknown-unknown`
}

#[cfg(target_arch = "wasm32")]
mod wasm;

#[cfg(target_arch = "wasm32")]
mod arch {
pub use super::wasm::*;
}

#[cfg_attr(not(target_arch = "wasm32"), allow(unused_imports))]
pub use arch::*;
1 change: 1 addition & 0 deletions schema-engine/schema-engine-wasm/src/wasm.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod engine;

0 comments on commit 93379e7

Please sign in to comment.