Browse Source

docs: Add `anchor-spl/idl-build` in `idl-build` feature list (#3537)

Hanggang Z 8 months ago
parent
commit
13a6df9232
1 changed files with 7 additions and 1 deletions
  1. 7 1
      docs/content/docs/tokens/index.mdx

+ 7 - 1
docs/content/docs/tokens/index.mdx

@@ -24,7 +24,7 @@ simplifies the process of interacting with Solana's Token Programs in an Anchor
 program. This crate includes instructions and account types for both the
 program. This crate includes instructions and account types for both the
 original Token Program and the newer Token Extension Program (Token 2022).
 original Token Program and the newer Token Extension Program (Token 2022).
 
 
-Simply add the `anchor-spl` crate as a dependency to your program. For a
+Simply add the `anchor-spl` crate as a dependency to your program and add `"anchor-spl/idl-build"` to idl-build feature list in `Cargo.toml`. For a
 walkthrough of how to create an Anchor program locally, see the
 walkthrough of how to create an Anchor program locally, see the
 [quickstart page](/docs/quickstart/local).
 [quickstart page](/docs/quickstart/local).
 
 
@@ -33,6 +33,12 @@ cargo add anchor-spl
 ```
 ```
 
 
 ```toml title="Cargo.toml"
 ```toml title="Cargo.toml"
+[features]
+idl-build = [
+    "anchor-lang/idl-build",
+    "anchor-spl/idl-build",
+]
+
 [dependencies]
 [dependencies]
 anchor-lang = "0.30.1"
 anchor-lang = "0.30.1"
 anchor-spl = "0.30.1"
 anchor-spl = "0.30.1"