Cargo Features

[dependencies]
underdog-anchor-spl = { version = "0.1.0", default-features = false, features = ["mint", "token", "token_2022", "associated_token", "governance", "shmem", "stake", "devnet", "metadata", "dex"] }
default = associated_token, mint, token, token_2022

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

mint default

Affects underdog-anchor-spl::mint

token default = spl-token

Affects underdog-anchor-spl::token

token_2022 default = spl-token-2022

Affects underdog-anchor-spl::token_2022, underdog-anchor-spl::token_interface

associated_token default = spl-associated-token-account

Affects underdog-anchor-spl::associated_token

governance

Affects underdog-anchor-spl::governance

shmem

Affects underdog-anchor-spl::shmem

stake = borsh

Affects underdog-anchor-spl::stake

devnet
metadata = mpl-token-metadata

Affects underdog-anchor-spl::metadata

dex = serum_dex

Affects underdog-anchor-spl::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.

borsh stake?

Enables borsh ^0.9

serum_dex dex?

Enables serum_dex ^0.4.0

spl-token token

Enables spl-token ^3.5.0

spl-token-2022 token_2022

Enables spl-token-2022 ^0.5.0

spl-associated-token-account associated_token

Enables spl-associated-token-account ^1.1.1

mpl-token-metadata metadata?

Enables mpl-token-metadata ^1.9.0