Skip to content

Commit

Permalink
Add anchor as optional feature in Rust client (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
lorisleiva authored Aug 5, 2024
1 parent afc1c6d commit 1347315
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/hungry-fans-promise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-solana-program": patch
---

Add anchor as optional feature in Rust client
2 changes: 2 additions & 0 deletions template/clients/rust/clients/rust/Cargo.toml.njk
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ readme = "README.md"
license-file = "../../LICENSE"

[features]
anchor = ["dep:anchor-lang"]
test-sbf = []
serde = ["dep:serde", "dep:serde_with"]

[dependencies]
anchor-lang = { version = "0.30.0", optional = true }
borsh = "^0.10"
num-derive = "^0.3"
num-traits = "^0.2"
Expand Down

0 comments on commit 1347315

Please sign in to comment.