-
Notifications
You must be signed in to change notification settings - Fork 249
/
Cargo.toml
101 lines (90 loc) · 2.96 KB
/
Cargo.toml
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
[package]
name = "near-sdk"
version.workspace = true
authors = ["Near Inc <[email protected]>"]
edition = "2021"
license = "MIT OR Apache-2.0"
readme = "README.md"
categories = ["wasm"]
repository = "https://github.com/near/near-sdk-rs"
homepage = "https://near-sdk.io"
description = """
Rust library for writing NEAR smart contracts.
"""
[[test]]
name = "compilation_tests"
path = "compilation_tests/all.rs"
required-features = ["abi", "unstable"]
[dependencies]
# Provide near_bidgen macros.
serde = { version = "1", features = ["derive"] }
serde_json = "1"
near-sdk-macros = { path = "../near-sdk-macros", version = "~5.2.1" }
near-sys = { path = "../near-sys", version = "0.2.2" }
base64 = "0.21"
borsh = { version = "1.0.0", features = ["derive"] }
bs58 = "0.5"
# Used for caching, might be worth porting only functionality needed.
once_cell = { version = "1.17", default-features = false }
near-account-id = { version = "1.0.0", features = ["serde", "borsh"] }
near-gas = { version = "0.2.3", features = ["serde", "borsh"] }
near-token = { version = "0.2.0", features = ["serde", "borsh"] }
[target.'cfg(target_arch = "wasm32")'.dependencies]
wee_alloc = { version = "0.4.5", default-features = false, optional = true }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
schemars = { version = "0.8.8", optional = true }
near-abi = { version = "0.4.0", features = [
"__chunked-entries",
], optional = true }
near-vm-runner = { version = "0.23", optional = true }
near-primitives-core = { version = "0.23", optional = true }
near-primitives = { version = "0.23", optional = true }
near-crypto = { version = "0.23", default-features = false, optional = true }
near-parameters = { version = "0.23", optional = true }
[dev-dependencies]
near-sdk = { path = ".", features = ["legacy", "unit-testing"] }
rand = "0.8.4"
trybuild = "1.0"
rustversion = "1.0"
rand_xorshift = "0.3"
quickcheck = "1.0"
arbitrary = { version = "1.2.3", features = ["derive"] }
derive_arbitrary = "1.2.3"
hex = { version = "0.4.3", features = ["serde"] }
getrandom = { version = "0.2", features = ["js"] }
rand_chacha = "0.3.1"
near-rng = "0.1.1"
near-abi = { version = "0.4.0", features = ["__chunked-entries"] }
symbolic-debuginfo = "12"
near-workspaces = { version = "0.10.1", features = ["unstable"] }
anyhow = "1.0"
tokio = { version = "1", features = ["full"] }
strum = "0.25.0"
strum_macros = "0.25.3"
insta = "1.39.0"
[features]
default = ["wee_alloc"]
expensive-debug = []
unstable = []
legacy = []
abi = [
"borsh/unstable__schema",
"near-abi",
"schemars",
"near-sdk-macros/abi",
"near-account-id/abi",
"near-gas/abi",
"near-token/abi",
]
unit-testing = [
"near-vm-runner",
"near-primitives-core",
"near-primitives",
"near-crypto",
"near-parameters",
]
__abi-embed = ["near-sdk-macros/__abi-embed"]
__abi-generate = ["abi", "near-sdk-macros/__abi-generate"]
__macro-docs = []
[package.metadata.docs.rs]
features = ["unstable", "legacy", "unit-testing", "__macro-docs"]