Cargo Features

anchor-syn has no features set by default.

[dependencies]
anchor-syn = { version = "0.30.1", features = ["anchor-debug", "event-cpi", "hash", "idl-build", "init-if-needed", "interface-instructions"] }
allow-missing-optionals anchor-debug
event-cpi

Affects accounts::event_cpi

hash

Affects anchor-syn::hash

idl-build = cargo_toml

Affects anchor-syn::idl

init-if-needed
interface-instructions

Affects spl_interface::parse

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.

cargo_toml idl-build?

Enables cargo_toml ^0.19

idl-build feature only