-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
60 lines (47 loc) · 1.32 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
[package]
name = "libmage"
version = "0.2.0"
authors = ["Dimitris Zervas <[email protected]>"]
edition = "2018"
[lib]
name = "mage"
path = "src/lib.rs"
crate-type = ["lib", "cdylib", "staticlib"]
[[bin]]
name = "libmage"
path = "src/bin.rs"
required-features = ["tool"]
[dependencies]
rand = "*"
c2-chacha = { version = "*", default-features = false, features = [ "rustcrypto_api" ] }
# FFI dependencies
lazy_static = { version = "*", optional = true }
# Transport dependencies
# micro_http = { git = "https://github.com/georgepisaltu/licenta", optional = true }
micro_http = { git = "https://github.com/dzervas/licenta", optional = true }
# Binary (=tool feature) dependencies
base64 = { version = "*", optional = true }
structopt = { version = "*", optional = true }
url = { version = "*", optional = true }
[build-dependencies]
base64 = "*"
cbindgen = "*"
heck = "*"
url = "*"
[features]
default = ["ffi", "trans_tcp"]
ffi = ["lazy_static"]
# | Crates | Features |
tool = ["base64", "structopt", "url", "trans_socks"]
# Transports
trans_tcp = []
trans_socks = ["trans_tcp"]
trans_http = ["micro_http"]
[profile.release]
overflow-checks = true
# For these check https://github.com/johnthagen/min-sized-rust
codegen-units = 1
lto = true
opt-level = 'z' # Optimize for size
panic = "abort"
# strip = "symbols"