Skip to main content

max / makenotwork

2.5 KB · 61 lines History Blame Raw
1 [package]
2 name = "s3-storage"
3 version = "0.1.1"
4 edition = "2024"
5 license = "MIT"
6 # Internal shared crate, consumed by path inside this repo and never published.
7 # `publish = false` is what makes that a cargo-enforced fact rather than a
8 # convention: without it an accidental `cargo publish` is one command away.
9 publish = false
10
11 [dependencies]
12 # No `default-https-client` on either: in aws-smithy-runtime that feature is a
13 # hard alias for `rustls-aws-lc`, so it pins a C crypto backend with no way to
14 # ask for another. The HTTP client is built explicitly in `http_client()` below
15 # with the ring provider instead. aws-config is here only for `BehaviorVersion`;
16 # credentials are always passed in, so its provider-chain defaults are unused.
17 aws-sdk-s3 = { version = "1.131", default-features = false, features = ["sigv4a", "http-1x", "rt-tokio"] }
18 aws-config = { version = "1.8", default-features = false, features = ["behavior-version-latest"] }
19 aws-smithy-http-client = { version = "1.1", features = ["rustls-ring"] }
20 bytes = "1"
21 # `time` is what the retry loops sleep on. It compiled without it because an
22 # aws crate happens to enable the feature, and a feature you get by unification
23 # is one you lose when a dependency changes its mind.
24 tokio = { version = "1", features = ["fs", "io-util", "time"] }
25 tracing = "0.1"
26
27 [dev-dependencies]
28 tokio = { version = "1", features = ["macros", "rt", "time"] }
29
30 [lints.rust]
31 unused = "warn"
32 unreachable_pub = "warn"
33
34 [lints.clippy]
35 pedantic = { level = "warn", priority = -1 }
36 # Allow-list tuned from a measured breakdown across server/multithreaded/pter
37 # (2026-07-22). These are the high-churn / low-signal pedantic lints; everything
38 # else in `pedantic` stays a warning. Keep this block identical across repos.
39 module_name_repetitions = "allow"
40 # Doc lints. No docs-completeness push is underway.
41 missing_errors_doc = "allow"
42 missing_panics_doc = "allow"
43 doc_markdown = "allow"
44 # Numeric casts. Endemic and mostly intentional in size and byte math.
45 cast_possible_truncation = "allow"
46 cast_sign_loss = "allow"
47 cast_precision_loss = "allow"
48 cast_possible_wrap = "allow"
49 cast_lossless = "allow"
50 # Subjective structure and style nags. High churn, low signal.
51 must_use_candidate = "allow"
52 too_many_lines = "allow"
53 struct_excessive_bools = "allow"
54 similar_names = "allow"
55 items_after_statements = "allow"
56 single_match_else = "allow"
57 # Frequent false-positives in TUI and router-heavy code.
58 match_same_arms = "allow"
59 unnecessary_wraps = "allow"
60 type_complexity = "allow"
61