Cargo Features

mainstay-lang has no features set by default.

[dependencies]
mainstay-lang = { version = "0.30.1", features = ["allow-missing-optionals", "mainstay-debug", "derive", "event-cpi", "idl-build", "init-if-needed", "interface-instructions", "lazy-account"] }
allow-missing-optionals

Enables allow-missing-optionals of mainstay-derive-accounts

mainstay-debug

Enables mainstay-debug of mainstay-attribute-access-control, mainstay-attribute-account, mainstay-attribute-constant, mainstay-attribute-error, mainstay-attribute-event, mainstay-attribute-program, and mainstay-derive-accounts

derive
event-cpi

Enables event-cpi of mainstay-attribute-event

idl-build

Enables idl-build of mainstay-attribute-account, mainstay-attribute-constant, mainstay-attribute-error, mainstay-attribute-event, mainstay-attribute-program, mainstay-derive-accounts, and mainstay-derive-serde and build of mainstay-lang-idl

mainstay-lang-idl should only be included with idl-build feature

init-if-needed

Enables init-if-needed of mainstay-derive-accounts

interface-instructions

Enables interface-instructions of mainstay-attribute-program

lazy-account

Enables lazy-account of mainstay-attribute-account and mainstay-derive-serde

Affects accounts::lazy_account

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.

mainstay-lang-idl idl-build?