Skip to content

Commit

Permalink
Add library feature to cw1-whitelist
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanfrey committed Aug 11, 2020
1 parent bc9896a commit 9dd1682
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contracts/cw1-subkeys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ backtraces = ["cosmwasm-std/backtraces"]
cosmwasm-std = { version = "0.10.0", features = ["iterator"] }
cosmwasm-storage = { version = "0.10.0", features = ["iterator"] }
cw20 = { path = "../../packages/cw20", version = "0.1.0" }
cw1-whitelist = { path = "../cw1-whitelist", version = "0.1.0" }
cw1-whitelist = { path = "../cw1-whitelist", version = "0.1.0", features = ["library"] }
schemars = "0.7"
serde = { version = "1.0.103", default-features = false, features = ["derive"] }
snafu = { version = "0.6.3" }
Expand Down
3 changes: 2 additions & 1 deletion contracts/cw1-whitelist/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ crate-type = ["cdylib", "rlib"]

[features]
backtraces = ["cosmwasm-std/backtraces"]
# use library feature to disable all init/handle/query exports
library = []

[dependencies]
#cw1 = { path = "../../packages/cw1", version = "0.1.0" }
cosmwasm-std = { version = "0.10.0-alpha2", features = ["iterator"] }
cosmwasm-storage = { version = "0.10.0-alpha2", features = ["iterator"] }
schemars = "0.7"
Expand Down
2 changes: 1 addition & 1 deletion contracts/cw1-whitelist/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ pub mod contract;
pub mod msg;
pub mod state;

#[cfg(target_arch = "wasm32")]
#[cfg(all(target_arch = "wasm32", not(feature = "library")))]
cosmwasm_std::create_entry_points!(contract);

0 comments on commit 9dd1682

Please sign in to comment.