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

126 lines
4.4 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"
pointer_structural_match = "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"
unused_qualifications = "warn"
# Keep alphabetically sorted
[workspace.lints.clippy]
as_conversions = "warn"
assertions_on_result_states = "warn"
cloned_instead_of_copied = "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"
filetype_is_file = "warn"
float_cmp_const = "warn"
get_unwrap = "warn"
lossy_float_literal = "warn"
mem_forget = "warn"
2024-04-28 05:05:49 +00:00
mod_module_files = "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"
rest_pat_in_fully_bound_structs = "warn"
semicolon_inside_block = "warn"
str_to_string = "warn"
string_lit_chars_any = "warn"
string_to_string = "warn"
suspicious_xor_used_as_pow = "warn"
tests_outside_test_module = "warn"
try_err = "warn"
unnecessary_safety_comment = "warn"
unnecessary_safety_doc = "warn"
unnecessary_self_imports = "warn"
unseparated_literal_suffix = "warn"
verbose_file_reads = "warn"
wildcard_dependencies = "warn"
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.75.0"
[lints]
workspace = true
2024-04-28 04:01:04 +00:00
# Keep sorted
2020-02-15 21:42:21 +00:00
[dependencies]
2024-04-28 04:01:04 +00:00
async-trait = "0.1.68"
2024-04-28 03:22:43 +00:00
axum = { version = "0.6.18", default-features = false, features = ["form", "headers", "http1", "http2", "json", "matched-path"] }
2023-06-25 17:31:40 +00:00
axum-server = { version = "0.5.1", features = ["tls-rustls"] }
2024-04-28 04:01:04 +00:00
base64 = "0.21.2"
2023-05-21 11:42:59 +00:00
bytes = "1.4.0"
2024-04-28 04:01:04 +00:00
clap = { version = "4.3.0", default-features = false, features = ["std", "derive", "help", "usage", "error-context", "string"] }
figment = { version = "0.10.8", features = ["env", "toml"] }
futures-util = { version = "0.3.28", default-features = false }
hmac = "0.12.1"
2023-05-21 11:42:59 +00:00
http = "0.2.9"
hyper = "0.14.26"
2023-05-21 11:42:59 +00:00
image = { version = "0.24.6", default-features = false, features = ["jpeg", "png", "gif"] }
jsonwebtoken = "9.2.0"
2024-04-28 04:01:04 +00:00
lru-cache = "0.1.2"
num_cpus = "1.15.0"
2022-10-09 13:34:36 +00:00
opentelemetry = { version = "0.18.0", features = ["rt-tokio"] }
opentelemetry-jaeger = { version = "0.17.0", features = ["rt-tokio"] }
parking_lot = { version = "0.12.1", optional = true }
2024-04-28 04:01:04 +00:00
rand = "0.8.5"
regex = "1.8.1"
reqwest = { version = "0.11.18", default-features = false, features = ["rustls-tls-native-roots", "socks"] }
ring = "0.17.7"
rocksdb = { package = "rust-rocksdb", version = "0.24.0", features = ["lz4", "multi-threaded-cf", "zstd"], optional = true }
ruma = { git = "https://github.com/ruma/ruma", rev = "5495b85aa311c2805302edb0a7de40399e22b397", features = ["compat", "rand", "appservice-api-c", "client-api", "federation-api", "push-gateway-api-c", "state-res", "unstable-msc2448", "unstable-msc3575", "unstable-exhaustive-types", "ring-compat", "unstable-unspecified" ] }
rusqlite = { version = "0.29.0", optional = true, features = ["bundled"] }
rust-argon2 = "1.0.0"
sd-notify = { version = "0.4.1", optional = true }
serde = { version = "1.0.163", features = ["rc"] }
2023-02-26 15:29:06 +00:00
serde_html_form = "0.2.0"
2024-04-28 04:01:04 +00:00
serde_json = { version = "1.0.96", features = ["raw_value"] }
serde_yaml = "0.9.21"
2023-05-21 11:42:59 +00:00
sha-1 = "0.10.1"
2024-04-28 04:01:04 +00:00
thiserror = "1.0.40"
thread_local = "1.1.7"
2022-10-09 13:34:36 +00:00
tikv-jemallocator = { version = "0.5.0", features = ["unprefixed_malloc_on_supported_platforms"], optional = true }
2024-04-28 04:01:04 +00:00
tokio = { version = "1.28.1", features = ["fs", "macros", "signal", "sync"] }
tower = { version = "0.4.13", features = ["util"] }
tower-http = { version = "0.4.1", features = ["add-extension", "cors", "sensitive-headers", "trace", "util"] }
tracing = { version = "0.1.37", features = [] }
tracing-flame = "0.2.0"
tracing-opentelemetry = "0.18.0"
tracing-subscriber = { version = "0.3.17", features = ["env-filter"] }
trust-dns-resolver = "0.22.0"
2023-07-26 20:24:44 +00:00
[target.'cfg(unix)'.dependencies]
nix = { version = "0.28", 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"]