diff --git a/Cargo.toml b/Cargo.toml index d3ff7ad..9b94836 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ repository = "https://github.com/RealRTTV/nbtworkbench" keywords = ["nbt", "window", "unsafe", "editor", "tree"] categories = ["graphics", "rendering", "text-editors", "parser-implementations"] -[target.'cfg(target_arch = "wasm32")'.lib] +[lib] crate-type = ["cdylib", "rlib"] path = "src/main.rs" diff --git a/src/main.rs b/src/main.rs index a833297..9dd8e6b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -92,6 +92,7 @@ mod workbench_action; mod element_action; mod search_box; mod text; +#[cfg(not(target_arch = "wasm32"))] mod cli; #[macro_export]