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]
131atrium-api = "0.25"
132atrium-crypto = "0.1"
133atrium-repo = "0.1"
134atrium-xrpc = "0.12"
135atrium-xrpc-client = "0.5"
136
137anyhow = "1.0.96"
138argon2 = { version = "0.5.3", features = ["std"] }
139axum = { version = "0.8.1", features = [
140 "tower-log",
141 "form",
142 "macros",
143 "ws",
144 "json",
145] }
146azure_core = "0.22.0"
147azure_identity = "0.22.0"
148base32 = "0.5.1"
149base64 = "0.22.1"
150chrono = "0.4.39"
151clap = { version = "4.5.30", features = ["derive"] }
152clap-verbosity-flag = "3.0.2"
153constcat = "0.6.0"
154figment = { version = "0.10.19", features = ["toml", "env"] }
155futures = "0.3.31"
156http-cache-reqwest = { version = "0.15.1", default-features = false, features = [
157 "manager-moka",
158] }
159memmap2 = "0.9.5"
160metrics = "0.24.1"
161metrics-exporter-prometheus = "0.16.2"
162rand = "0.8.5"
163reqwest = { version = "0.12.12", features = ["json"] }
164reqwest-middleware = { version = "0.4.0", features = ["json"] }
165serde = { version = "1.0.218", features = ["derive"] }
166serde_ipld_dagcbor = { version = "0.6.2", default-features = false, features = ["std"] }
167serde_json = "1.0.139"
168sha2 = "0.10.8"
169sqlx = { version = "0.8.3", features = ["json", "runtime-tokio", "sqlite"] }
170thiserror = "2.0.11"
171tokio = { version = "1.43.0", features = ["macros", "rt-multi-thread"] }
172tokio-util = { version = "0.7.13", features = ["io"] }
173tower-http = { version = "0.6.2", features = ["cors", "fs", "trace"] }
174tracing = "0.1.41"
175tracing-subscriber = "0.3.19"
176url = "2.5.4"
177uuid = { version = "1.14.0", features = ["v4"] }
178urlencoding = "2.1.3"
179async-trait = "0.1.88"
180k256 = "0.13.4"
181hex = "0.4.3"
182ipld-core = "0.4.2"
183lazy_static = "1.5.0"
184regex = "1.11.1"
185rsky-syntax = { git = "https://github.com/blacksky-algorithms/rsky.git" }
186rsky-repo = { git = "https://github.com/blacksky-algorithms/rsky.git" }
187serde_bytes = "0.11.17"
188multihash = "0.19.3"
189serde_ipld_dagjson = "0.2.0"