Cargo Features

anchor-lang-idl has no features set by default.

[dependencies]
anchor-lang-idl = { version = "0.1.1", features = ["build", "convert"] }
build = regex

Affects anchor-lang-idl::build

convert = heck, sha2

Affects anchor-lang-idl::convert

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.

regex build?

Enables regex

build feature only

heck convert?

Enables heck ^0.3

convert feature only

sha2 convert?