Cargo Features

[dependencies]
anchor-sp1 = { version = "0.1.0", default-features = false, features = ["mint", "token", "associated_token", "governance", "shmem", "devnet", "dex"] }
default = associated_token, mint, token

These default features are set whenever anchor-sp1 is added without default-features = false somewhere in the dependency tree.

mint default

Affects anchor-sp1::mint

token default

Affects anchor-sp1::token

associated_token default

Affects anchor-sp1::associated_token

governance

Affects anchor-sp1::governance

shmem

Affects anchor-sp1::shmem

devnet
dex = serum_dex

Affects anchor-sp1::dex

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

serum_dex dex?

Enables serum_dex ^0.4.0