Skip to content

Commit

Permalink
Don't link to sapp-jsutils when we don't need to (#1)
Browse files Browse the repository at this point in the history
* Don't link to sapp-jsutils when we don't need to

* Update src/lib.rs

* Update Cargo.toml

Co-authored-by: ilya sheprut <optitel223@gmail.com>
  • Loading branch information
sdleffler and optozorax committed Aug 22, 2021
1 parent c0c8a2d commit 4dfa1c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -11,7 +11,7 @@ Plugin for macro-, mini-quad (quads) to do anything with url.
"""
readme="README.md"

[dependencies]
[target.'cfg(target_arch = "wasm32")'.dependencies]
sapp-jsutils = "0.1.4"

[target.'cfg(any(target_os = "linux", target_os = "windows", target_os = "macos", target_os = "android"))'.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Expand Up @@ -23,7 +23,7 @@
//! ```
//! Done! Now you can use this crate.

#[allow(unused_imports)]
#[cfg(target_arch = "wasm32")]
use sapp_jsutils::{JsObject, JsObjectWeak};

#[no_mangle]
Expand Down

0 comments on commit 4dfa1c0

Please sign in to comment.