format cargo.toml

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-03-22 21:50:51 -04:00 committed by June
parent 931e1cad06
commit 6d7ef80aba

View file

@ -2,7 +2,10 @@
name = "conduit" name = "conduit"
description = "a cool fork of Conduit, a Matrix homeserver written in Rust" description = "a cool fork of Conduit, a Matrix homeserver written in Rust"
license = "Apache-2.0" license = "Apache-2.0"
authors = ["strawberry <strawberry@puppygock.gay>", "timokoesters <timo@koesters.xyz>"] authors = [
"strawberry <strawberry@puppygock.gay>",
"timokoesters <timo@koesters.xyz>",
]
homepage = "https://puppygock.gay/conduwuit" homepage = "https://puppygock.gay/conduwuit"
repository = "https://gitlab.com/girlbossceo/conduwuit" repository = "https://gitlab.com/girlbossceo/conduwuit"
readme = "README.md" readme = "README.md"
@ -90,30 +93,16 @@ features = ["util"]
[dependencies.tower-http] [dependencies.tower-http]
version = "0.4.4" version = "0.4.4"
features = [ features = ["add-extension", "cors", "sensitive-headers", "trace", "util"]
"add-extension",
"cors",
"sensitive-headers",
"trace",
"util",
]
[dependencies.hyper] [dependencies.hyper]
version = "0.14" version = "0.14"
features = [ features = ["server", "http1", "http2"]
"server",
"http1",
"http2",
]
[dependencies.reqwest] [dependencies.reqwest]
version = "0.11.27" version = "0.11.27"
default-features = false default-features = false
features = [ features = ["rustls-tls-native-roots", "socks", "trust-dns"]
"rustls-tls-native-roots",
"socks",
"trust-dns",
]
# all the serde stuff # all the serde stuff
# Used for pdu definition # Used for pdu definition
@ -132,22 +121,14 @@ features = ["raw_value"]
# Used for password hashing # Used for password hashing
[dependencies.argon2] [dependencies.argon2]
version = "0.5.3" version = "0.5.3"
features = [ features = ["alloc", "rand"]
"alloc",
"rand",
]
default-features = false default-features = false
# Used to generate thumbnails for images # Used to generate thumbnails for images
[dependencies.image] [dependencies.image]
version = "0.25.0" version = "0.25.0"
default-features = false default-features = false
features = [ features = ["jpeg", "png", "gif", "webp"]
"jpeg",
"png",
"gif",
"webp",
]
# logging # logging
[dependencies.tracing] [dependencies.tracing]
@ -214,14 +195,7 @@ optional = true
[dependencies.clap] [dependencies.clap]
version = "4.5.3" version = "4.5.3"
default-features = false default-features = false
features = [ features = ["std", "derive", "help", "usage", "error-context", "string"]
"std",
"derive",
"help",
"usage",
"error-context",
"string"
]
[dependencies.futures-util] [dependencies.futures-util]
version = "0.3.30" version = "0.3.30"
@ -230,10 +204,7 @@ default-features = false
# Used for reading the configuration from conduit.toml & environment variables # Used for reading the configuration from conduit.toml & environment variables
[dependencies.figment] [dependencies.figment]
version = "0.10.15" version = "0.10.15"
features = [ features = ["env", "toml"]
"env",
"toml",
]
# Used for matrix spec type definitions and helpers # Used for matrix spec type definitions and helpers
#ruma = { version = "0.4.0", features = ["compat", "rand", "appservice-api-c", "client-api", "federation-api", "push-gateway-api-c", "state-res", "unstable-pre-spec", "unstable-exhaustive-types"] } #ruma = { version = "0.4.0", features = ["compat", "rand", "appservice-api-c", "client-api", "federation-api", "push-gateway-api-c", "state-res", "unstable-pre-spec", "unstable-exhaustive-types"] }
@ -243,22 +214,22 @@ features = [
git = "https://github.com/girlbossceo/ruma" git = "https://github.com/girlbossceo/ruma"
branch = "conduwuit-changes" branch = "conduwuit-changes"
features = [ features = [
"compat", "compat",
"rand", "rand",
"appservice-api-c", "appservice-api-c",
"client-api", "client-api",
"federation-api", "federation-api",
"push-gateway-api-c", "push-gateway-api-c",
"state-res", "state-res",
"unstable-msc2448", "unstable-msc2448",
"unstable-msc3575", "unstable-msc3575",
"unstable-exhaustive-types", "unstable-exhaustive-types",
"ring-compat", "ring-compat",
"unstable-unspecified", "unstable-unspecified",
"unstable-msc2870", "unstable-msc2870",
"unstable-msc3061", "unstable-msc3061",
"unstable-msc2867", "unstable-msc2867",
"unstable-extensible-events", "unstable-extensible-events",
] ]
[dependencies.rust-rocksdb] [dependencies.rust-rocksdb]
@ -293,19 +264,15 @@ optional = true
[dependencies.tokio] [dependencies.tokio]
version = "1.36.0" version = "1.36.0"
features = [ features = ["fs", "macros", "sync", "signal"]
"fs",
"macros",
"sync",
"signal",
]
# *nix-specific dependencies # *nix-specific dependencies
[target.'cfg(unix)'.dependencies] [target.'cfg(unix)'.dependencies]
nix = { version = "0.28.0", features = ["resource"] } nix = { version = "0.28.0", features = ["resource"] }
sd-notify = { version = "0.4.1", optional = true } # systemd is only available/relevant on *nix platforms sd-notify = { version = "0.4.1", optional = true } # systemd is only available/relevant on *nix platforms
hyperlocal = { git = "https://github.com/softprops/hyperlocal", rev = "2ee4d149644600d326559af0d2b235c945b05c04", features = ["server"] } # unix socket support hyperlocal = { git = "https://github.com/softprops/hyperlocal", rev = "2ee4d149644600d326559af0d2b235c945b05c04", features = [
"server",
] } # unix socket support
[features] [features]
@ -327,8 +294,13 @@ sha256_media = ["sha2"]
io_uring = ["rust-rocksdb/io-uring"] io_uring = ["rust-rocksdb/io-uring"]
axum_dual_protocol = ["axum-server-dual-protocol"] axum_dual_protocol = ["axum-server-dual-protocol"]
perf_measurements = ["opentelemetry", "tracing-flame", "tracing-opentelemetry", "opentelemetry_sdk", "opentelemetry-jaeger"] perf_measurements = [
"opentelemetry",
"tracing-flame",
"tracing-opentelemetry",
"opentelemetry_sdk",
"opentelemetry-jaeger",
]
[[bin]] [[bin]]
@ -351,19 +323,32 @@ a cool fork of Conduit, a Matrix homeserver written in Rust"""
section = "net" section = "net"
priority = "optional" priority = "optional"
assets = [ assets = [
["debian/README.md", "usr/share/doc/matrix-conduit/README.Debian", "644"], [
["README.md", "usr/share/doc/matrix-conduit/", "644"], "debian/README.md",
["target/release/conduit", "usr/sbin/matrix-conduit", "755"], "usr/share/doc/matrix-conduit/README.Debian",
["conduwuit-example.toml", "etc/matrix-conduit/conduit.toml", "640"], "644",
] ],
conf-files = [ [
"/etc/matrix-conduit/conduit.toml" "README.md",
"usr/share/doc/matrix-conduit/",
"644",
],
[
"target/release/conduit",
"usr/sbin/matrix-conduit",
"755",
],
[
"conduwuit-example.toml",
"etc/matrix-conduit/conduit.toml",
"640",
],
] ]
conf-files = ["/etc/matrix-conduit/conduit.toml"]
maintainer-scripts = "debian/" maintainer-scripts = "debian/"
systemd-units = { unit-name = "matrix-conduit" } systemd-units = { unit-name = "matrix-conduit" }
[profile.dev] [profile.dev]
debug = 0 debug = 0
lto = 'off' lto = 'off'
@ -406,7 +391,6 @@ opt-level = 3
codegen-units = 1 codegen-units = 1
[lints] [lints]
workspace = true workspace = true
@ -435,10 +419,10 @@ unit_bindings = "warn"
unused_braces = "allow" unused_braces = "allow"
[workspace.lints.clippy] [workspace.lints.clippy]
# pedantic = "warn" pedantic = "warn"
suspicious = "warn" # assume deny in practice suspicious = "warn" # assume deny in practice
perf = "warn" # assume deny in practice perf = "warn" # assume deny in practice
redundant_clone = "warn" redundant_clone = "warn"
cloned_instead_of_copied = "warn" cloned_instead_of_copied = "warn"
@ -511,6 +495,7 @@ cast_possible_wrap = "warn"
# cast_possible_truncation = "warn" # cast_possible_truncation = "warn"
redundant_closure_for_method_calls = "warn" redundant_closure_for_method_calls = "warn"
large_futures = "warn" large_futures = "warn"
semicolon_if_nothing_returned = "warn"
# not in rust 1.75.0 (breaks CI) # not in rust 1.75.0 (breaks CI)
# infinite_loop = "warn" # infinite_loop = "warn"