Skip to content

Commit 1347315

Browse files
authored
Add anchor as optional feature in Rust client (#89)
1 parent afc1c6d commit 1347315

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/hungry-fans-promise.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-solana-program": patch
3+
---
4+
5+
Add anchor as optional feature in Rust client

template/clients/rust/clients/rust/Cargo.toml.njk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ readme = "README.md"
88
license-file = "../../LICENSE"
99

1010
[features]
11+
anchor = ["dep:anchor-lang"]
1112
test-sbf = []
1213
serde = ["dep:serde", "dep:serde_with"]
1314

1415
[dependencies]
16+
anchor-lang = { version = "0.30.0", optional = true }
1517
borsh = "^0.10"
1618
num-derive = "^0.3"
1719
num-traits = "^0.2"

0 commit comments

Comments
 (0)