-
Notifications
You must be signed in to change notification settings - Fork 9
/
Cargo.toml
96 lines (73 loc) · 2.94 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
[package]
name = "rs-cli"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
################################################################################
# 自定义 bin script 名称 和 源码文件对应关系
################################################################################
[[bin]]
name = "rs-cli"
path = "bin/main.rs"
#
# cli usage:
# - cargo run --bin rs-eth-scanner -- scan "http://abc.url" "0xxxxx" "deposit" "100"
#
[[bin]]
name = "rs-eth-scanner"
path = "bin/eth.rs"
[[bin]]
name = "discord-bot"
path = "bin/discord_bot.rs"
[[bin]]
name = "rs-binance"
path = "bin/binance.rs"
[[bin]]
name = "rs-binance-async"
path = "bin/binance_async.rs"
[[bin]]
name = "rs-keytool"
path = "bin/keytool.rs"
[[bin]]
name = "rs-tui"
path = "bin/tui.rs"
################################################################################
# release options:
################################################################################
[profile.release]
strip = true
opt-level = "s"
#[profile.dev]
## Must always use panic = "abort" to avoid needing to define the unstable eh_personality lang item.
#panic = "abort"
#
#[profile.release]
#opt-level = "z" # Optimize for size.
#lto = true # Enable Link Time Optimization
#codegen-units = 1 # Reduce number of codegen units to increase optimizations.
#panic = "abort" # Abort on panic
#strip = true # Automatically strip symbols from the binary.
################################################################################
# dependencies:
################################################################################
[dependencies]
clap = { version = "4", features = ["derive"] }
web3 = "0.18"
tokio = "1"
#serenity = "0.11.1" # discord api
serenity = { version = "0.11", default-features = true, features = ["client", "gateway", "rustls_backend", "model"] }
binance = "0" # binance api
#binance-rs-async = "1.1.7" # binance async api
binance-async = { version = "1", package = "binance-rs-async", features = ["all_apis"] } # fix conflict with binance-rs
#binance-async = { package = "binance-rs-async" ,features=["all_apis"], git = 'https://github.com/Igosuki/binance-rs-async', branch = "master"} # fix conflict with binance-rs
#binance-async = { package = "binance-rs-async", features = ["all_apis"], git = 'https://github.com/better-rs/binance-rs-async', branch = "dev/wallet-api" } # fix conflict with binance-rs
#binance-async = { package = "binance-rs-async", features=["all_apis"], path = '../../tmp/binance-rs-async' }
tui = "0.19" # terminal ui
crossterm = "0.25" # terminal ui required
chrono = "0.4" # time format
chrono-tz = "0.8" # time zone
log = "0.4.17" # log
pretty_env_logger = "0" # colorful log
[patch.crates-io]
# fix for wallet api:
binance-async = { package = "binance-rs-async", git = 'https://github.com/Igosuki/binance-rs-async', branch = '1.1.8' }