ソースを参照

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

Hanggang Z 8 ヶ月 前
コミット
13a6df9232
1 ファイル変更7 行追加1 行削除
  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
 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
 [quickstart page](/docs/quickstart/local).
 
@@ -33,6 +33,12 @@ cargo add anchor-spl
 ```
 
 ```toml title="Cargo.toml"
+[features]
+idl-build = [
+    "anchor-lang/idl-build",
+    "anchor-spl/idl-build",
+]
+
 [dependencies]
 anchor-lang = "0.30.1"
 anchor-spl = "0.30.1"