Cargo Features

cw-token-swap has no features set by default.

[dependencies]
cw-token-swap = { version = "2.4.2", features = ["backtraces", "library"] }
backtraces

For more explicit tests, cargo test --features=backtraces.

Enables backtraces of cosmwasm-std ^1.5.0

library

Use library feature to disable all instantiate/execute/query exports.