Alternative ATProto PDS implementation
1[package]
2name = "bluepds"
3version = "0.0.0"
4edition = "2024"
5publish = false
6authors = ["Justin Moore", "Timothy Quilling <teqed@shatteredsky.net>"]
7description = "Alternative ATProto PDS implementation"
8license = "MIT OR Apache-2.0"
9readme = "README.md"
10repository = "https://github.com/DrChat/bluepds"
11keywords = ["atproto", "pds"]
12categories = []
13
14[profile.dev.package."*"]
15opt-level = 3
16
17[profile.dev]
18opt-level = 1
19
20[profile.release]
21opt-level = "s" # Slightly slows compile times, great improvements to file size and runtime performance.
22lto = "thin" # Do a second optimization pass over the entire program, including dependencies.
23codegen-units = 1 # Compile the entire crate as one unit.
24strip = "debuginfo" # Strip all debugging information from the binary to slightly reduce file size.
25
26[lints.rust]
27## Groups
28warnings = { level = "warn", priority = -1 } # All lints that are set to issue warnings
29deprecated-safe = { level = "warn", priority = -1 } # Lints for functions which were erroneously marked as safe in the past
30future-incompatible = { level = "warn", priority = -1 } # Lints that detect code that has future-compatibility problems
31keyword-idents = { level = "warn", priority = -1 } # Lints that detect identifiers which will be come keywords in later editions
32let-underscore = { level = "warn", priority = -1 } # Lints that detect wildcard let bindings that are likely to be invalid
33nonstandard-style = { level = "warn", priority = -1 } # Violation of standard naming conventions
34refining-impl-trait = { level = "warn", priority = -1 } # Detects refinement of impl Trait return types by trait implementations
35rust-2018-compatibility = { level = "warn", priority = -1 } # Lints used to transition code from the 2015 edition to 2018
36rust-2021-compatibility = { level = "warn", priority = -1 } # Lints used to transition code from the 2018 edition to 2021
37rust-2018-idioms = { level = "warn", priority = -1 } # Lints to nudge you toward idiomatic features of Rust 2018
38rust-2024-compatibility = { level = "warn", priority = -1 } # Lints used to transition code from the 2021 edition to 2024
39unused = { level = "warn", priority = -1 } # Lints that detect things being declared but not used, or excess syntax
40## Individual
41ambiguous_negative_literals = "warn" # checks for cases that are confusing between a negative literal and a negation that's not part of the literal.
42closure_returning_async_block = "warn" # detects cases where users write a closure that returns an async block. # nightly
43ffi_unwind_calls = "warn"
44# fuzzy_provenance_casts = "warn" # unstable
45# lossy_provenance_casts = "warn" # unstable
46macro_use_extern_crate = "warn"
47meta_variable_misuse = "warn"
48missing_abi = "warn"
49missing_copy_implementations = "allow" # detects potentially-forgotten implementations of Copy for public types.
50missing_debug_implementations = "allow" # detects missing implementations of fmt::Debug for public types.
51missing_docs = "warn"
52# multiple_supertrait_upcastable = "warn" # unstable
53# must_not_suspend = "warn" # unstable
54non_ascii_idents = "warn"
55# non_exhaustive_omitted_patterns = "warn" # unstable
56redundant_imports = "warn"
57redundant_lifetimes = "warn"
58rust_2024_incompatible_pat = "warn" # nightly
59single_use_lifetimes = "warn"
60trivial_casts = "warn"
61trivial_numeric_casts = "warn"
62unit_bindings = "warn"
63unnameable_types = "warn"
64# unqualified_local_imports = "warn" # unstable
65unreachable_pub = "warn"
66unsafe_code = "warn"
67unstable_features = "warn"
68# unused_crate_dependencies = "warn"
69unused_import_braces = "warn"
70unused_lifetimes = "warn"
71unused_qualifications = "warn"
72unused_results = "warn"
73variant_size_differences = "warn"
74elided_lifetimes_in_paths = "allow"
75# unstable-features = "allow"
76
77[lints.clippy]
78# Groups
79nursery = { level = "warn", priority = -1 }
80correctness = { level = "warn", priority = -1 }
81suspicious = { level = "warn", priority = -1 }
82complexity = { level = "warn", priority = -1 }
83perf = { level = "warn", priority = -1 }
84style = { level = "warn", priority = -1 }
85pedantic = { level = "warn", priority = -1 }
86restriction = { level = "warn", priority = -1 }
87cargo = { level = "warn", priority = -1 }
88# Temporary Allows
89multiple_crate_versions = "allow" # triggered by lib
90expect_used = "allow"
91missing_docs_in_private_items = "allow"
92# # Temporary Allows - Restriction
93min_ident_chars = "allow" # 50 instances
94# arbitrary_source_item_ordering = "allow"
95renamed_function_params = "allow" # possibly triggered by lib
96# pattern_type_mismatch = "allow"
97# Style Allows
98implicit_return = "allow"
99self_named_module_files = "allow" # Choose one of self_named_module_files or mod_module_files
100mod_module_files = "allow"
101else_if_without_else = "allow"
102std_instead_of_alloc = "allow"
103std_instead_of_core = "allow"
104blanket_clippy_restriction_lints = "allow"
105float_arithmetic = "allow"
106redundant_pub_crate = "allow"
107pub_with_shorthand = "allow"
108absolute_paths = "allow"
109module_name_repetitions = "allow"
110missing_trait_methods = "allow"
111separated_literal_suffix = "allow"
112exhaustive_structs = "allow"
113field_scoped_visibility_modifiers = "allow"
114allow_attributes_without_reason = "allow"
115tests_outside_test_module = "allow"
116ref_patterns = "allow"
117question_mark_used = "allow"
118shadow_reuse = "allow"
119single_call_fn = "allow"
120# Warns
121use_self = "warn"
122str_to_string = "warn"
123print_stdout = "warn"
124unseparated_literal_suffix = "warn"
125unwrap_used = "warn"
126# Denys
127enum_glob_use = "deny"
128# expect_used = "deny"
129
130[dependencies]
131multihash = "0.19.3"
132diesel = { version = "2.1.5", features = ["chrono", "sqlite", "r2d2"] }
133diesel_migrations = { version = "2.1.0" }
134r2d2 = "0.8.10"
135
136atrium-repo = "0.1"
137atrium-api = "0.25"
138# atrium-common = { version = "0.1.2", path = "atrium-common" }
139atrium-crypto = "0.1"
140# atrium-identity = { version = "0.1.4", path = "atrium-identity" }
141atrium-xrpc = "0.12"
142atrium-xrpc-client = "0.5"
143# bsky-sdk = { version = "0.1.19", path = "bsky-sdk" }
144rsky-syntax = { git = "https://github.com/blacksky-algorithms/rsky.git" }
145rsky-repo = { git = "https://github.com/blacksky-algorithms/rsky.git" }
146rsky-pds = { git = "https://github.com/blacksky-algorithms/rsky.git" }
147rsky-common = { git = "https://github.com/blacksky-algorithms/rsky.git" }
148
149# async in streams
150# async-stream = "0.3"
151
152# DAG-CBOR codec
153ipld-core = "0.4.2"
154serde_ipld_dagcbor = { version = "0.6.2", default-features = false, features = [
155 "std",
156] }
157serde_ipld_dagjson = "0.2.0"
158cidv10 = { version = "0.10.1", package = "cid" }
159
160# Parsing and validation
161base64 = "0.22.1"
162chrono = "0.4.39"
163hex = "0.4.3"
164# langtag = "0.3"
165# multibase = "0.9.1"
166regex = "1.11.1"
167serde = { version = "1.0.218", features = ["derive"] }
168serde_bytes = "0.11.17"
169# serde_html_form = "0.2.6"
170serde_json = "1.0.139"
171# unsigned-varint = "0.8"
172
173# Cryptography
174# ecdsa = "0.16.9"
175# elliptic-curve = "0.13.6"
176# jose-jwa = "0.1.2"
177# jose-jwk = { version = "0.1.2", default-features = false }
178k256 = "0.13.4"
179# p256 = { version = "0.13.2", default-features = false }
180rand = "0.8.5"
181sha2 = "0.10.8"
182
183# Networking
184# dashmap = "6.1.0"
185futures = "0.3.31"
186# hickory-proto = { version = "0.24.3", default-features = false }
187# hickory-resolver = "0.24.1"
188# http = "1.1.0"
189# lru = "0.12.4"
190# moka = "0.12.8"
191tokio = { version = "1.43.0", features = ["macros", "rt-multi-thread"] }
192tokio-util = { version = "0.7.13", features = ["io"] }
193
194# HTTP client integrations
195# isahc = "1.7.2"
196reqwest = { version = "0.12.12", features = ["json"] }
197
198# Errors
199anyhow = "1.0.96"
200thiserror = "2.0.11"
201
202# CLI
203clap = { version = "4.5.30", features = ["derive"] }
204# dirs = "5.0.1"
205
206# Testing
207# gloo-timers = { version = "0.3.0", features = ["futures"] }
208# mockito = "=1.6.1"
209
210# WebAssembly
211# wasm-bindgen-test = "0.3.41"
212# web-time = "1.1.0"
213# bumpalo = "~3.14.0"
214
215# Code generation
216# trait-variant = "0.1.2"
217
218# Others
219# base64ct = "=1.6.0"
220# litemap = "=0.7.4"
221# native-tls = "=0.2.13"
222# zerofrom = "=0.1.5"
223argon2 = { version = "0.5.3", features = ["std"] }
224axum = { version = "0.8.1", features = [
225 "tower-log",
226 "form",
227 "macros",
228 "ws",
229 "json",
230] }
231azure_core = "0.22.0"
232azure_identity = "0.22.0"
233base32 = "0.5.1"
234clap-verbosity-flag = "3.0.2"
235constcat = "0.6.0"
236figment = { version = "0.10.19", features = ["toml", "env"] }
237http-cache-reqwest = { version = "0.15.1", default-features = false, features = [
238 "manager-moka",
239] }
240memmap2 = "0.9.5"
241metrics = "0.24.1"
242metrics-exporter-prometheus = "0.16.2"
243reqwest-middleware = { version = "0.4.0", features = ["json"] }
244tower-http = { version = "0.6.2", features = ["cors", "fs", "trace"] }
245tracing = "0.1.41"
246tracing-subscriber = "0.3.19"
247url = "2.5.4"
248uuid = { version = "1.14.0", features = ["v4"] }
249urlencoding = "2.1.3"
250async-trait = "0.1.88"
251lazy_static = "1.5.0"