forked from solana-foundation/anchor
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
83 lines (77 loc) · 3.04 KB
/
Cargo.toml
File metadata and controls
83 lines (77 loc) · 3.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[package]
name = "anchor-lang"
version = "0.31.1"
authors = ["Anchor Maintainers <accounts@200ms.io>"]
repository = "https://github.com/coral-xyz/anchor"
edition = "2021"
license = "Apache-2.0"
description = "Solana Sealevel eDSL"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[features]
allow-missing-optionals = ["anchor-derive-accounts/allow-missing-optionals"]
anchor-debug = [
"anchor-attribute-access-control/anchor-debug",
"anchor-attribute-account/anchor-debug",
"anchor-attribute-constant/anchor-debug",
"anchor-attribute-error/anchor-debug",
"anchor-attribute-event/anchor-debug",
"anchor-attribute-program/anchor-debug",
"anchor-derive-accounts/anchor-debug",
]
derive = []
event-cpi = ["anchor-attribute-event/event-cpi"]
idl-build = [
"anchor-attribute-account/idl-build",
"anchor-attribute-constant/idl-build",
"anchor-attribute-event/idl-build",
"anchor-attribute-error/idl-build",
"anchor-attribute-program/idl-build",
"anchor-derive-accounts/idl-build",
"anchor-derive-serde/idl-build",
"anchor-lang-idl/build",
]
init-if-needed = ["anchor-derive-accounts/init-if-needed"]
interface-instructions = ["anchor-attribute-program/interface-instructions"]
lazy-account = ["anchor-attribute-account/lazy-account", "anchor-derive-serde/lazy-account"]
[dependencies]
anchor-attribute-access-control = { path = "./attribute/access-control", version = "0.31.1" }
anchor-attribute-account = { path = "./attribute/account", version = "0.31.1" }
anchor-attribute-constant = { path = "./attribute/constant", version = "0.31.1" }
anchor-attribute-error = { path = "./attribute/error", version = "0.31.1" }
anchor-attribute-event = { path = "./attribute/event", version = "0.31.1" }
anchor-attribute-program = { path = "./attribute/program", version = "0.31.1" }
anchor-derive-accounts = { path = "./derive/accounts", version = "0.31.1" }
anchor-derive-serde = { path = "./derive/serde", version = "0.31.1" }
anchor-derive-space = { path = "./derive/space", version = "0.31.1" }
# `anchor-lang-idl` should only be included with `idl-build` feature
anchor-lang-idl = { path = "../idl", version = "0.1.2", optional = true }
base64 = "0.21"
bincode = "1"
borsh = "0.10.3"
bytemuck = { version = "1", features = ["derive"] }
solana-account-info = "2"
solana-clock = "2"
solana-cpi = "2"
solana-define-syscall = "2"
solana-feature-gate-interface = "2"
solana-instruction = "2"
solana-instructions-sysvar = "2"
solana-invoke = "0.4.0"
solana-loader-v3-interface = { version = "3", features = ["bincode"] }
solana-msg = "2"
solana-program-entrypoint = "2"
solana-program-error = { version = "2", features = ["borsh"] }
solana-program-memory = "2"
solana-program-option = "2"
solana-program-pack = "2"
solana-pubkey = { version = "2", features = ["borsh", "bytemuck", "serde"] }
solana-sdk-ids = "2"
solana-system-interface = "1"
solana-sysvar = { version = "2", features = ["bincode"] }
solana-sysvar-id = "2"
thiserror = "1"
[lints.rust.unexpected_cfgs]
level = "warn"
check-cfg = ['cfg(target_os, values("solana"))']