-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
56 lines (52 loc) · 2.05 KB
/
Copy pathCargo.toml
File metadata and controls
56 lines (52 loc) · 2.05 KB
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
[package]
name = "may-redis"
version = "0.1.0"
edition = "2021"
license = "MIT OR Apache-2.0"
repository = "https://github.com/microscaler/may_redis"
description = "A coroutine-based Redis client for the may runtime"
[dependencies]
bytes = "1.7"
bollard = { version = "0.20", optional = true, features = ["ssl", "chrono"] }
futures = { version = "0.3", optional = true }
itoa = "1.0"
log = "0.4"
# Temporary: microscaler/may `may-sleep` until recv_with_timeout PR merges to master.
may = { git = "https://github.com/microscaler/may.git", branch = "may-sleep", default-features = false, features = ["io_timeout"] }
rustls = { version = "0.23", optional = true, default-features = false, features = ["ring", "std", "tls12"] }
rustls-pemfile = { version = "2", optional = true }
socket2 = "0.5"
tokio = { version = "1", optional = true, features = ["rt-multi-thread", "macros"] }
webpki-roots = { version = "0.25", optional = true }
[features]
default = []
tls = ["dep:rustls", "dep:rustls-pemfile", "dep:webpki-roots"]
cluster = []
test = ["dep:bollard", "dep:futures", "dep:tokio"]
[dev-dependencies]
fastrand = "2.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tokio = { version = "1", features = ["full"] }
[lints.clippy]
all = { level = "deny", priority = -1 }
pedantic = { level = "deny", priority = -1 }
nursery = { level = "deny", priority = -1 }
cast_precision_loss = "allow"
cast_possible_truncation = "allow"
cast_sign_loss = "allow"
module_name_repetitions = "allow"
struct_excessive_bools = "allow"
# Per-function: deny any function exceeding the default 100-line limit
too_many_lines = "deny"
# Per-file: deny any single file exceeding 350 lines (project rule).
# NOTE: Clippy has no built-in lint for file-level line count, so this is
# enforced via CI (`scripts/check-file-lengths.sh` or equivalent).
# See docs/PRD-file-breakdown-audit.md for the current file-length audit.
missing_errors_doc = "deny"
missing_panics_doc = "deny"
missing_safety_doc = "deny"
# JSF-AV Rule 208: No panics in dispatch
unwrap_used = "deny"
expect_used = "deny"
panic = "deny"