Cargo Features
[dependencies]
anchor-spl = { version = "0.30.1", default-features = false, features = ["associated_token", "dex", "devnet", "governance", "idl-build", "memo", "metadata", "mint", "stake", "token", "token_2022", "token_2022_extensions"] }
- default = associated_token, mint, token, token_2022, token_2022_extensions
-
These default features are set whenever
anchor-spl
is added without
somewhere in the dependency tree.default-features = false - associated_token default = spl-associated-token-account
-
Affects
anchor-spl::associated_token
… - dex = serum_dex
-
Affects
anchor-spl::dex
… - devnet
- governance
-
Affects
anchor-spl::governance
… - idl-build
-
Enables idl-build of anchor-lang
- memo = spl-memo
-
Affects
anchor-spl::memo
… - metadata = mpl-token-metadata
-
Affects
anchor-spl::metadata
… - mint default
-
Affects
anchor-spl::mint
… - stake = borsh
-
Affects
anchor-spl::stake
… - token default = spl-token
-
Affects
anchor-spl::token
… - token_2022 default = spl-token-2022
-
Affects
anchor-spl::token_2022
,anchor-spl::token_interface
… - token_2022_extensions default = spl-pod, spl-token-2022, spl-token-group-interface, spl-token-metadata-interface
-
Affects
anchor-spl::token_2022_extensions
…
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, <0.11
- mpl-token-metadata metadata?
- serum_dex dex?
-
Enables serum_dex ^0.4.0
- spl-associated-token-account associated_token
-
Enables spl-associated-token-account ^3
- spl-memo memo?
-
Enables spl-memo ^4
- spl-token token
-
Enables spl-token ^4
- spl-token-2022 token_2022 token_2022_extensions
-
Enables spl-token-2022 ^3
- spl-token-group-interface token_2022_extensions
-
Enables spl-token-group-interface ^0.2.3
- spl-token-metadata-interface token_2022_extensions
- spl-pod token_2022_extensions
-
Enables spl-pod ^0.2.2