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 = [
133 "chrono",
134 "sqlite",
135 "r2d2",
136 "returning_clauses_for_sqlite_3_35",
137] }
138diesel_migrations = { version = "2.1.0" }
139r2d2 = "0.8.10"
140
141atrium-repo = "0.1"
142atrium-api = "0.25"
143# atrium-common = { version = "0.1.2", path = "atrium-common" }
144atrium-crypto = "0.1"
145# atrium-identity = { version = "0.1.4", path = "atrium-identity" }
146atrium-xrpc = "0.12"
147atrium-xrpc-client = "0.5"
148# bsky-sdk = { version = "0.1.19", path = "bsky-sdk" }
149rsky-syntax = { git = "https://github.com/blacksky-algorithms/rsky.git" }
150rsky-repo = { git = "https://github.com/blacksky-algorithms/rsky.git" }
151rsky-pds = { git = "https://github.com/blacksky-algorithms/rsky.git" }
152rsky-common = { git = "https://github.com/blacksky-algorithms/rsky.git" }
153rsky-lexicon = { git = "https://github.com/blacksky-algorithms/rsky.git" }
154
155# async in streams
156# async-stream = "0.3"
157
158# DAG-CBOR codec
159ipld-core = "0.4.2"
160serde_ipld_dagcbor = { version = "0.6.2", default-features = false, features = [
161 "std",
162] }
163serde_ipld_dagjson = "0.2.0"
164cidv10 = { version = "0.10.1", package = "cid" }
165
166# Parsing and validation
167base64 = "0.22.1"
168chrono = "0.4.39"
169hex = "0.4.3"
170# langtag = "0.3"
171# multibase = "0.9.1"
172regex = "1.11.1"
173serde = { version = "1.0.218", features = ["derive"] }
174serde_bytes = "0.11.17"
175# serde_html_form = "0.2.6"
176serde_json = "1.0.139"
177# unsigned-varint = "0.8"
178
179# Cryptography
180# ecdsa = "0.16.9"
181# elliptic-curve = "0.13.6"
182# jose-jwa = "0.1.2"
183# jose-jwk = { version = "0.1.2", default-features = false }
184k256 = "0.13.4"
185# p256 = { version = "0.13.2", default-features = false }
186rand = "0.8.5"
187sha2 = "0.10.8"
188
189# Networking
190# dashmap = "6.1.0"
191futures = "0.3.31"
192# hickory-proto = { version = "0.24.3", default-features = false }
193# hickory-resolver = "0.24.1"
194# http = "1.1.0"
195# lru = "0.12.4"
196# moka = "0.12.8"
197tokio = { version = "1.43.0", features = ["macros", "rt-multi-thread"] }
198tokio-util = { version = "0.7.13", features = ["io"] }
199
200# HTTP client integrations
201# isahc = "1.7.2"
202reqwest = { version = "0.12.12", features = ["json"] }
203
204# Errors
205anyhow = "1.0.96"
206thiserror = "2.0.11"
207
208# CLI
209clap = { version = "4.5.30", features = ["derive"] }
210# dirs = "5.0.1"
211
212# Testing
213# gloo-timers = { version = "0.3.0", features = ["futures"] }
214# mockito = "=1.6.1"
215
216# WebAssembly
217# wasm-bindgen-test = "0.3.41"
218# web-time = "1.1.0"
219# bumpalo = "~3.14.0"
220
221# Code generation
222# trait-variant = "0.1.2"
223
224# Others
225# base64ct = "=1.6.0"
226# litemap = "=0.7.4"
227# native-tls = "=0.2.13"
228# zerofrom = "=0.1.5"
229argon2 = { version = "0.5.3", features = ["std"] }
230axum = { version = "0.8.1", features = [
231 "tower-log",
232 "form",
233 "macros",
234 "ws",
235 "json",
236] }
237azure_core = "0.22.0"
238azure_identity = "0.22.0"
239base32 = "0.5.1"
240clap-verbosity-flag = "3.0.2"
241constcat = "0.6.0"
242figment = { version = "0.10.19", features = ["toml", "env"] }
243http-cache-reqwest = { version = "0.15.1", default-features = false, features = [
244 "manager-moka",
245] }
246memmap2 = "0.9.5"
247metrics = "0.24.1"
248metrics-exporter-prometheus = "0.16.2"
249reqwest-middleware = { version = "0.4.0", features = ["json"] }
250tower-http = { version = "0.6.2", features = ["cors", "fs", "trace"] }
251tracing = "0.1.41"
252tracing-subscriber = "0.3.19"
253url = "2.5.4"
254uuid = { version = "1.14.0", features = ["v4"] }
255urlencoding = "2.1.3"
256async-trait = "0.1.88"
257lazy_static = "1.5.0"
258secp256k1 = "0.28.2"
259dotenvy = "0.15.7"
260deadpool-diesel = { version = "0.6.1", features = [
261 "serde",
262 "sqlite",
263 "tracing",
264] }