Cargo Features

mainstay-syn has no features set by default.

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

Affects accounts::event_cpi

hash

Affects mainstay-syn::hash

idl-build = cargo_toml

Affects mainstay-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