-
Notifications
You must be signed in to change notification settings - Fork 16
/
Cargo.toml
90 lines (79 loc) · 3.03 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
[package]
name = "faktory"
version = "0.13.0"
authors = ["Jon Gjengset <jon@thesquareplanet.com>"]
edition = "2021"
license = "MIT OR Apache-2.0"
description = "API bindings for the language-agnostic Faktory work server"
repository = "https://github.com/jonhoo/faktory-rs.git"
keywords = ["faktory", "api-bindings", "work-server", "job-server"]
categories = ["api-bindings", "asynchronous", "network-programming"]
exclude = [".github", "docker", ".gitignore", "Makefile"]
[features]
default = []
native_tls = ["dep:pin-project", "dep:tokio-native-tls"]
rustls = [
"dep:pin-project",
"dep:tokio-rustls",
"dep:rustls-native-certs",
]
binaries = ["dep:clap", "tokio/macros"]
ent = []
[dependencies]
async-trait = "0.1.77"
clap = { version = "4.4.10", optional = true }
chrono = { version = "0.4", features = [
"serde",
"clock",
], default-features = false }
derive_builder = "0.12.0"
fnv = "1.0.5"
hostname = "0.3"
pin-project = { version = "1.1.4", optional = true }
rand = "0.8"
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
sha2 = "0.10.0"
thiserror = "1.0.30"
tokio = { version = "1.35.1", features = [
"sync", # gives us an asynchronous `Mutex`
"io-util", # enables `AsyncWriteExt`, `AsyncReadExt`, and `AsyncBufReadExt` in `tokio::io` namespace
"macros", # brings in `tokio::select!` we are utilizing in `Worker::run`
"net", # enables `tokio::net` namespace with `TcpStream` we are heavily relying upon
"rt-multi-thread", # allows for `tokio::task::block_in_place()` in Client::drop
"time", # anables `tokio::time` namespace holding the `sleep` utility and `Duraction` struct
] }
tokio-native-tls = { version = "0.3.1", optional = true }
tokio-rustls = { version = "0.25.0", optional = true }
rustls-native-certs = { version = "0.7.1", optional = true }
tracing = "0.1"
url = "2"
semver = { version = "1.0.23", features = ["serde"] }
[dev-dependencies]
rustls-pki-types = "1.0.1"
tokio = { version = "1.35.1", features = ["rt", "macros"] }
tokio-test = "0.4.3"
tokio-util = "0.7.11"
tracing-subscriber = "0.3.18"
x509-parser = "0.15.1"
# to make -Zminimal-versions work
[target.'cfg(any())'.dependencies]
native-tls = { version = "0.2.4", optional = true }
num-bigint = "0.4.2"
oid-registry = "0.6.1"
openssl = { version = "0.10.60", optional = true }
# TryFrom<String> for ServerName<'static> has been implemented:
# https://github.com/rustls/pki-types/compare/rustls:3793627...rustls:1303efa#
rustls-pki-types = { version = "1.0.1", optional = true }
# Lockstep between `serde` and `serde_derive` was introduced with the "pinned" release:
# https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186#diff-2843fc1320fa24a059f5ca967ee45d116110116263a8ba311a3aca3793c562f0R34-R41
# Without this pin our `#[serde(transparent)]` and `#[derive(Serialize, Deserialize)] do not play well together.
serde = "1.0.186"
[[bin]]
name = "loadtest"
path = "src/bin/loadtest.rs"
required-features = ["binaries"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]