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