Skip to content

Commit

Permalink
imp: removed library feature (#20)
Browse files Browse the repository at this point in the history
* imp: removed library feature

* deps(owner): updated Cargo.toml
  • Loading branch information
srdtrk authored Nov 9, 2023
1 parent d5233cb commit 2fdc401
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ overflow-checks = true
[features]
# for more explicit tests, cargo test --features=backtraces
backtraces = ["cosmwasm-std/backtraces"]
# use library feature to disable all instantiate/execute/query exports
library = []
# disable export feature to disable all instantiate/execute/query exports
default = ["export"]
export = []

[package.metadata.scripts]
optimize = """docker run --rm -v "$(pwd)":/code \
Expand Down
4 changes: 2 additions & 2 deletions src/ibc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//!
//! The IBC module is responsible for handling the IBC channel handshake and handling IBC packets.

#[cfg(not(feature = "library"))]
#[cfg(feature = "export")]
pub mod handshake;
#[cfg(not(feature = "library"))]
#[cfg(feature = "export")]
pub mod relay;
pub mod types;
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![doc = include_str!("../README.md")]
#![deny(missing_docs)]

#[cfg(not(feature = "library"))]
#[cfg(feature = "export")]
pub mod contract;
pub mod helpers;
pub mod ibc;
Expand Down
2 changes: 1 addition & 1 deletion testing/contracts/cw-ica-owner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ cosmwasm-std = { version = "1.4.0", features = [
] }
cw-storage-plus = "1.1.0"
cw2 = "1.1.0"
cw-ica-controller = { path = "../../..", features = ["library"] }
cw-ica-controller = { path = "../../..", default-features = false }
schemars = "0.8.10"
serde = { version = "1.0.145", default-features = false, features = ["derive"] }
serde-json-wasm = "0.5.1"
Expand Down

0 comments on commit 2fdc401

Please sign in to comment.