Skip to content

Commit

Permalink
feat(api) Set crate-type only if js feature is turned on.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan committed Jul 23, 2021
1 parent 5bfd45e commit fcc9e74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ license = "MIT"
readme = "README.md"
edition = "2018"

[lib]
crate-type = ["cdylib", "rlib"]

#####
#
# This crate comes in 2 major flavors:
Expand Down
2 changes: 2 additions & 0 deletions lib/api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
clippy::use_self
)
)]
#![cfg_attr(feature = "js", crate_type = "cdylib")]
#![cfg_attr(feature = "js", crate_type = "rlib")]

//! This crate contains the `wasmer` API. The `wasmer` API facilitates the efficient,
//! sandboxed execution of [WebAssembly (Wasm)][wasm] modules.
Expand Down

0 comments on commit fcc9e74

Please sign in to comment.