1
0
Fork 0
forked from mirror/grapevine
grapevine-fork/Cargo.toml

156 lines
5.3 KiB
TOML
Raw Normal View History

# Keep alphabetically sorted
[workspace.lints.rust]
elided_lifetimes_in_paths = "warn"
explicit_outlives_requirements = "warn"
macro_use_extern_crate = "warn"
missing_abi = "warn"
noop_method_call = "warn"
2024-05-12 21:49:24 +00:00
single_use_lifetimes = "warn"
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused_extern_crates = "warn"
unused_import_braces = "warn"
2024-05-12 21:54:48 +00:00
unused_lifetimes = "warn"
unused_macro_rules = "warn"
2024-05-22 05:00:54 +00:00
unused_qualifications = "warn"
[workspace.lints.clippy]
# Groups. Keep alphabetically sorted
pedantic = { level = "warn", priority = -1 }
# Lints. Keep alphabetically sorted
as_conversions = "warn"
assertions_on_result_states = "warn"
dbg_macro = "warn"
default_union_representation = "warn"
2024-05-12 23:23:04 +00:00
deref_by_slicing = "warn"
empty_drop = "warn"
empty_structs_with_brackets = "warn"
error_impl_error = "warn"
filetype_is_file = "warn"
float_cmp_const = "warn"
2024-05-12 23:36:51 +00:00
format_push_string = "warn"
get_unwrap = "warn"
2024-05-12 23:41:54 +00:00
if_then_some_else_none = "warn"
impl_trait_in_params = "warn"
2024-05-13 00:02:08 +00:00
let_underscore_must_use = "warn"
lossy_float_literal = "warn"
mem_forget = "warn"
2024-05-13 01:28:41 +00:00
missing_assert_message = "warn"
2024-04-28 05:05:49 +00:00
mod_module_files = "warn"
2024-05-13 01:31:09 +00:00
multiple_inherent_impl = "warn"
mutex_atomic = "warn"
negative_feature_names = "warn"
pub_without_shorthand = "warn"
rc_buffer = "warn"
rc_mutex = "warn"
redundant_feature_names = "warn"
redundant_type_annotations = "warn"
2024-05-13 01:38:12 +00:00
ref_patterns = "warn"
rest_pat_in_fully_bound_structs = "warn"
2024-05-13 01:43:00 +00:00
same_name_method = "warn"
semicolon_inside_block = "warn"
str_to_string = "warn"
2024-05-13 02:01:29 +00:00
string_add = "warn"
string_lit_chars_any = "warn"
string_slice = "warn"
string_to_string = "warn"
suspicious_xor_used_as_pow = "warn"
tests_outside_test_module = "warn"
try_err = "warn"
undocumented_unsafe_blocks = "warn"
unnecessary_safety_comment = "warn"
unnecessary_safety_doc = "warn"
unnecessary_self_imports = "warn"
2024-05-13 02:14:59 +00:00
unneeded_field_pattern = "warn"
unseparated_literal_suffix = "warn"
verbose_file_reads = "warn"
wildcard_dependencies = "warn"
# TODO: Remove these:
missing_errors_doc = "allow"
missing_panics_doc = "allow"
2020-02-15 21:42:21 +00:00
[package]
2024-04-28 03:43:59 +00:00
name = "grapevine"
2020-04-10 05:53:20 +00:00
description = "A Matrix homeserver written in Rust"
2020-08-24 09:32:15 +00:00
license = "Apache-2.0"
2024-04-28 03:43:59 +00:00
version = "0.1.0"
edition = "2021"
2020-02-15 21:42:21 +00:00
# See also `rust-toolchain.toml`
rust-version = "1.81.0"
[lints]
workspace = true
2024-04-28 04:01:04 +00:00
# Keep sorted
2020-02-15 21:42:21 +00:00
[dependencies]
2024-06-03 00:52:43 +00:00
argon2 = "0.5.3"
async-trait = "0.1.80"
axum = { version = "0.7.5", default-features = false, features = ["form", "http1", "http2", "json", "matched-path", "tracing"] }
axum-extra = { version = "0.9.3", features = ["typed-header"] }
axum-server = { version = "0.6.0", features = ["tls-rustls"] }
base64 = "0.22.1"
bytes = "1.6.0"
clap = { version = "4.5.4", default-features = false, features = ["std", "derive", "help", "usage", "error-context", "string", "wrap_help"] }
futures-util = { version = "0.3.30", default-features = false }
2024-04-28 04:01:04 +00:00
hmac = "0.12.1"
html-escape = "0.2.13"
http = "1.1.0"
http-body-util = "0.1.1"
hyper = "1.3.1"
hyper-util = { version = "0.1.4", features = ["client", "client-legacy", "service"] }
image = { version = "0.25.1", default-features = false, features = ["jpeg", "png", "gif"] }
jsonwebtoken = "9.3.0"
2024-04-28 04:01:04 +00:00
lru-cache = "0.1.2"
num_cpus = "1.16.0"
once_cell = "1.19.0"
opentelemetry = "0.23.0"
opentelemetry-jaeger-propagator = "0.2.0"
opentelemetry-otlp = "0.16.0"
opentelemetry-prometheus = "0.16.0"
opentelemetry_sdk = { version = "0.23.0", features = ["rt-tokio"] }
parking_lot = { version = "0.12.3", optional = true }
phf = { version = "0.11.2", features = ["macros"] }
prometheus = "0.13.4"
2024-04-28 04:01:04 +00:00
rand = "0.8.5"
regex = "1.10.4"
reqwest = { version = "0.12.4", default-features = false, features = ["http2", "rustls-tls-native-roots", "socks"] }
ring = "0.17.8"
update flake.lock Nixpkgs and `rust-rocksdb` line up so we can drop our RocksDB input for the time being. Flake lock file updates: • Updated input 'attic': 'github:zhaofengli/attic/6eabc3f02fae3683bffab483e614bebfcd476b21' (2024-02-14) → 'github:zhaofengli/attic/4dbdbee45728d8ce5788db6461aaaa89d98081f0' (2024-03-29) • Updated input 'attic/nixpkgs': 'github:NixOS/nixpkgs/aa9d4729cbc99dabacb50e3994dcefb3ea0f7447' (2023-12-14) → 'github:NixOS/nixpkgs/07262b18b97000d16a4bdb003418bd2fb067a932' (2024-03-25) • Updated input 'attic/nixpkgs-stable': 'github:NixOS/nixpkgs/1e2e384c5b7c50dbf8e9c441a9e58d85f408b01f' (2023-12-17) → 'github:NixOS/nixpkgs/44733514b72e732bd49f5511bd0203dea9b9a434' (2024-03-26) • Updated input 'crane': 'github:ipetkov/crane/55f4939ac59ff8f89c6a4029730a2d49ea09105f' (2024-04-21) → 'github:ipetkov/crane/109987da061a1bf452f435f1653c47511587d919' (2024-05-24) • Updated input 'fenix': 'github:nix-community/fenix/c8943ea9e98d41325ff57d4ec14736d330b321b2' (2024-03-05) → 'github:nix-community/fenix/b6fc5035b28e36a98370d0eac44f4ef3fd323df6' (2024-05-22) • Updated input 'fenix/rust-analyzer-src': 'github:rust-lang/rust-analyzer/9f14343f9ee24f53f17492c5f9b653427e2ad15e' (2024-03-04) → 'github:rust-lang/rust-analyzer/21ec8f523812b88418b2bfc64240c62b3dd967bd' (2024-05-19) • Updated input 'flake-utils': 'github:numtide/flake-utils/d465f4819400de7c8d874d50b982301f28a84605' (2024-02-28) → 'github:numtide/flake-utils/b1d9ab70662946ef0850d488da1c9019f3a9752a' (2024-03-11) • Updated input 'nix-filter': 'github:numtide/nix-filter/3449dc925982ad46246cfc36469baf66e1b64f17' (2024-01-15) → 'github:numtide/nix-filter/3342559a24e85fc164b295c3444e8a139924675b' (2024-03-11) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/b8697e57f10292a6165a20f03d2f42920dfaf973' (2024-03-03) → 'github:NixOS/nixpkgs/5710852ba686cc1fd0d3b8e22b3117d43ba374c2' (2024-05-21) • Removed input 'rocksdb'
2024-05-22 03:27:59 +00:00
rocksdb = { package = "rust-rocksdb", version = "0.26.0", features = ["lz4", "multi-threaded-cf", "zstd"], optional = true }
ruma = { git = "https://github.com/ruma/ruma", branch = "main", features = ["compat", "rand", "appservice-api-c", "client-api", "federation-api", "push-gateway-api-c", "server-util", "state-res", "unstable-msc2448", "unstable-msc3575", "unstable-exhaustive-types", "ring-compat", "unstable-unspecified" ] }
rusqlite = { version = "0.31.0", optional = true, features = ["bundled"] }
2024-04-28 04:01:04 +00:00
sd-notify = { version = "0.4.1", optional = true }
serde = { version = "1.0.202", features = ["rc"] }
serde_html_form = "0.2.6"
serde_json = { version = "1.0.117", features = ["raw_value"] }
serde_yaml = "0.9.34"
2023-05-21 11:42:59 +00:00
sha-1 = "0.10.1"
2024-06-04 19:34:09 +00:00
strum = { version = "0.26.2", features = ["derive"] }
thiserror = "1.0.61"
thread_local = "1.1.8"
tikv-jemallocator = { version = "0.5.4", features = ["unprefixed_malloc_on_supported_platforms"], optional = true }
tokio = { version = "1.37.0", features = ["fs", "macros", "signal", "sync"] }
toml = "0.8.14"
2024-04-28 04:01:04 +00:00
tower = { version = "0.4.13", features = ["util"] }
tower-http = { version = "0.5.2", features = ["add-extension", "cors", "sensitive-headers", "trace", "util"] }
tracing = { version = "0.1.40", features = [] }
2024-04-28 04:01:04 +00:00
tracing-flame = "0.2.0"
tracing-opentelemetry = "0.24.0"
tracing-subscriber = { version = "0.3.18", features = ["env-filter", "json"] }
trust-dns-resolver = "0.23.2"
2024-06-12 03:41:05 +00:00
xdg = "2.5.2"
2023-07-26 20:24:44 +00:00
[target.'cfg(unix)'.dependencies]
nix = { version = "0.29", features = ["resource"] }
2023-07-26 20:24:44 +00:00
[features]
default = ["rocksdb", "sqlite", "systemd"]
2024-04-28 04:01:04 +00:00
# Keep sorted
2024-04-28 04:54:24 +00:00
jemalloc = ["dep:tikv-jemallocator"]
rocksdb = ["dep:rocksdb"]
2024-04-28 04:54:24 +00:00
sqlite = ["dep:rusqlite", "dep:parking_lot", "tokio/signal"]
systemd = ["dep:sd-notify"]