-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
69 lines (63 loc) · 2.02 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
[package]
name = "endless-ssh-rs"
# don't change this, it's updated before an actual build by update-version.sh
version = "0.0.0-development"
edition = "2021"
rust-version = "1.83.0"
authors = ["Kristof Mattei"]
description = "endless-ssh-rs"
license-file = "LICENSE"
categories = ["ssh", "utility"]
keywords = ["ssh", "tarpit", "script-kiddies"]
repository = "https://github.com/kristof-mattei/endless-ssh-rs"
[lints.clippy]
# don't stop from compiling / running
all = "warn"
pedantic = "warn"
cargo = "warn"
# this one causes confusion when combining variables (`foo`) and
# dereferenced variables (`foo.bar`). The latter cannot be inlined
# so we don't inline anything
uninlined-format-args = { level = "allow", priority = 127 }
[lints.rust]
let_underscore_drop = { level = "deny", priority = 127 }
non_ascii_idents = { level = "deny", priority = 127 }
[profile.dev.package.backtrace]
opt-level = 3
[features]
coverage = []
[dependencies]
clap = { version = "4.5.23", features = ["cargo"] }
color-eyre = { git = "https://github.com/eyre-rs/eyre", rev = "2dc0688d33a487009e8bc3222cbab135261383b0", features = [
"track-caller",
] }
dotenvy = "0.15.7"
libc = "0.2.169"
mockall = "0.13.1"
mockall_double = "0.3.1"
once_cell = "1.20.2"
rand = "0.8.5"
time = { version = "0.3.37", features = ["formatting"] }
tokio = { version = "1.42.0", features = [
"rt-multi-thread",
"macros",
"time",
"signal",
"net",
"sync",
"io-util",
] }
tracing = "0.1.41"
tracing-subscriber = { version = "0.3.19", features = [
"env-filter",
"time",
"tracing-log",
] }
tracing-error = "0.2.1"
tokio-util = "0.7.13"
# We compile the Docker container with musl to get a static library. Smaller, faster.
# BUT that means that we need to include openssl
# Documentation on the syntax:
# https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#platform-specific-dependencies
[target.'cfg(all(target_arch = "x86_64", target_os="linux", target_env="musl"))'.dependencies]
# openssl = { version = "0.10.36", features = ["vendored"] }