Skip to content

Commit

Permalink
Remove library feature mentions
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Sep 20, 2024
1 parent 1e5aae0 commit c862dd5
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 12 deletions.
4 changes: 0 additions & 4 deletions contracts/nested-contracts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ panic = 'abort'
incremental = false
overflow-checks = true

[features]
# use library feature to disable all instantiate/execute/query exports
library = []

[package.metadata.scripts]
optimize = """docker run --rm -v "$(pwd)":/code \
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/target \
Expand Down
4 changes: 0 additions & 4 deletions contracts/nested-contracts/inner-contract/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ panic = 'abort'
incremental = false
overflow-checks = true

[features]
# use library feature to disable all instantiate/execute/query exports
library = []

[package.metadata.scripts]
optimize = """docker run --rm -v "$(pwd)":/code \
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/target \
Expand Down
1 change: 0 additions & 1 deletion contracts/nested-contracts/inner-contract/src/contract.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#[cfg(not(feature = "library"))]
use cosmwasm_std::entry_point;
use cosmwasm_std::{Binary, Deps, DepsMut, Env, MessageInfo, Response, StdResult};
// use cw2::set_contract_version;
Expand Down
2 changes: 0 additions & 2 deletions contracts/queue/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ overflow-checks = true
default = []
# Use cranelift backend instead of singlepass. This is required for development on 32 bit or ARM machines.
cranelift = ["cosmwasm-vm/cranelift"]
# this is to demonstrate conditional entry-points for cosmwasm-plus style
library = []

[dependencies]
cosmwasm-schema = { path = "../../packages/schema" }
Expand Down
2 changes: 1 addition & 1 deletion contracts/queue/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ fn handle_dequeue(deps: DepsMut) -> StdResult<Response> {
Ok(res)
}

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

0 comments on commit c862dd5

Please sign in to comment.