diff --git a/compiler-rs/compiler-wasm-lib/src/lib.rs b/compiler-rs/compiler-wasm-lib/src/lib.rs index e90090c977..e37a13ba03 100644 --- a/compiler-rs/compiler-wasm-lib/src/lib.rs +++ b/compiler-rs/compiler-wasm-lib/src/lib.rs @@ -19,6 +19,10 @@ use anyhow::bail; use wasm_bindgen::prelude::*; use clients_schema::{Availabilities, Visibility}; + +#[cfg(not(target_arch="wasm32"))] +compile_error!("To build this crate use `make compiler-wasm-lib`"); + #[wasm_bindgen] pub fn convert_schema_to_openapi(json: &str, flavor: &str) -> Result { set_panic_hook();