Skip to content

Commit 9c9ec09

Browse files
committed
Remove library feature mentions
1 parent 16e45c4 commit 9c9ec09

File tree

5 files changed

+1
-12
lines changed

5 files changed

+1
-12
lines changed

contracts/nested-contracts/Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ panic = 'abort'
2020
incremental = false
2121
overflow-checks = true
2222

23-
[features]
24-
# use library feature to disable all instantiate/execute/query exports
25-
library = []
26-
2723
[package.metadata.scripts]
2824
optimize = """docker run --rm -v "$(pwd)":/code \
2925
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/target \

contracts/nested-contracts/inner-contract/Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ panic = 'abort'
2020
incremental = false
2121
overflow-checks = true
2222

23-
[features]
24-
# use library feature to disable all instantiate/execute/query exports
25-
library = []
26-
2723
[package.metadata.scripts]
2824
optimize = """docker run --rm -v "$(pwd)":/code \
2925
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/target \

contracts/nested-contracts/inner-contract/src/contract.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#[cfg(not(feature = "library"))]
21
use cosmwasm_std::entry_point;
32
use cosmwasm_std::{Binary, Deps, DepsMut, Env, MessageInfo, Response, StdResult};
43
// use cw2::set_contract_version;

contracts/queue/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ overflow-checks = true
2727
default = []
2828
# Use cranelift backend instead of singlepass. This is required for development on 32 bit or ARM machines.
2929
cranelift = ["cosmwasm-vm/cranelift"]
30-
# this is to demonstrate conditional entry-points for cosmwasm-plus style
31-
library = []
3230

3331
[dependencies]
3432
cosmwasm-schema = { path = "../../packages/schema" }

contracts/queue/src/contract.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ fn handle_dequeue(deps: DepsMut) -> StdResult<Response> {
7171
Ok(res)
7272
}
7373

74-
#[cfg_attr(not(feature = "library"), entry_point)]
74+
#[entry_point]
7575
pub fn migrate(deps: DepsMut, _env: Env, _msg: MigrateMsg) -> StdResult<Response> {
7676
// clear all
7777
let keys: Vec<_> = deps

0 commit comments

Comments
 (0)