2024-05-09 22:59:08 +00:00
|
|
|
#cargo-features = ["profile-rustflags"]
|
|
|
|
|
|
|
|
[workspace]
|
|
|
|
resolver = "2"
|
|
|
|
members = ["src/*"]
|
|
|
|
default-members = ["src/*"]
|
|
|
|
|
|
|
|
[workspace.package]
|
2024-03-23 01:50:51 +00:00
|
|
|
authors = [
|
|
|
|
"strawberry <strawberry@puppygock.gay>",
|
|
|
|
"timokoesters <timo@koesters.xyz>",
|
|
|
|
]
|
2024-06-01 10:19:26 +00:00
|
|
|
categories = ["network-programming"]
|
|
|
|
description = "a very cool fork of Conduit, a Matrix homeserver written in Rust"
|
2022-01-20 11:29:52 +00:00
|
|
|
edition = "2021"
|
2024-05-09 22:59:08 +00:00
|
|
|
homepage = "https://conduwuit.puppyirl.gay/"
|
2024-07-23 03:07:41 +00:00
|
|
|
keywords = ["chat", "matrix", "server", "uwu"]
|
2024-06-01 10:19:26 +00:00
|
|
|
license = "Apache-2.0"
|
|
|
|
# See also `rust-toolchain.toml`
|
2024-05-09 22:59:08 +00:00
|
|
|
readme = "README.md"
|
2024-06-01 10:19:26 +00:00
|
|
|
repository = "https://github.com/girlbossceo/conduwuit"
|
2024-07-25 22:08:15 +00:00
|
|
|
rust-version = "1.80.0"
|
2024-07-18 02:09:36 +00:00
|
|
|
version = "0.4.6"
|
2022-12-23 08:20:05 +00:00
|
|
|
|
2024-05-19 02:32:02 +00:00
|
|
|
[workspace.metadata.crane]
|
|
|
|
name = "conduit"
|
|
|
|
|
2024-07-13 21:02:43 +00:00
|
|
|
[workspace.dependencies.const-str]
|
|
|
|
version = "0.5.7"
|
|
|
|
|
2024-07-24 23:01:00 +00:00
|
|
|
[workspace.dependencies.ctor]
|
|
|
|
version = "0.2.8"
|
|
|
|
|
2024-07-24 09:10:01 +00:00
|
|
|
[workspace.dependencies.cargo_toml]
|
|
|
|
version = "0.20"
|
2024-07-28 19:15:39 +00:00
|
|
|
default-features = false
|
2024-07-24 09:10:01 +00:00
|
|
|
features = ["features"]
|
|
|
|
|
2024-07-25 02:59:54 +00:00
|
|
|
[workspace.dependencies.toml]
|
|
|
|
version = "0.8.14"
|
|
|
|
default-features = false
|
|
|
|
features = ["parse"]
|
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.sanitize-filename]
|
|
|
|
version = "0.5.0"
|
2024-03-09 20:49:51 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.jsonwebtoken]
|
|
|
|
version = "9.3.0"
|
2024-03-09 20:49:51 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.base64]
|
|
|
|
version = "0.22.1"
|
2022-01-19 06:09:25 +00:00
|
|
|
|
2021-10-01 22:37:39 +00:00
|
|
|
# used for TURN server authentication
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.hmac]
|
|
|
|
version = "0.12.1"
|
2020-07-26 03:08:00 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.sha-1]
|
|
|
|
version = "0.10.1"
|
2024-01-22 03:59:06 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
# used for checking if an IP is in specific subnets / CIDR ranges easier
|
|
|
|
[workspace.dependencies.ipaddress]
|
|
|
|
version = "0.1.3"
|
2024-02-24 22:25:43 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.rand]
|
|
|
|
version = "0.8.5"
|
2024-02-11 16:49:31 +00:00
|
|
|
|
2024-03-09 20:49:51 +00:00
|
|
|
# Used for the http request / response body type for Ruma endpoints used with reqwest
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.bytes]
|
2024-07-13 20:14:28 +00:00
|
|
|
version = "1.6.1"
|
2024-03-09 20:49:51 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.http-body-util]
|
|
|
|
version = "0.1.1"
|
2024-04-12 00:17:30 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.http]
|
|
|
|
version = "1.1.0"
|
2024-04-20 00:41:54 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.regex]
|
|
|
|
version = "1.10.4"
|
2024-04-20 00:41:54 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.axum]
|
2024-04-20 00:41:54 +00:00
|
|
|
version = "0.7.5"
|
|
|
|
default-features = false
|
2024-05-09 22:59:08 +00:00
|
|
|
features = [
|
|
|
|
"form",
|
|
|
|
"http1",
|
|
|
|
"http2",
|
|
|
|
"json",
|
|
|
|
"matched-path",
|
|
|
|
"tokio",
|
2024-05-28 06:28:45 +00:00
|
|
|
"tracing",
|
2024-05-09 22:59:08 +00:00
|
|
|
]
|
2024-04-20 00:41:54 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.axum-extra]
|
2024-04-20 00:41:54 +00:00
|
|
|
version = "0.9.3"
|
2024-03-09 20:49:51 +00:00
|
|
|
default-features = false
|
2024-06-10 20:43:04 +00:00
|
|
|
features = ["typed-header", "tracing"]
|
2024-03-09 20:49:51 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.axum-server]
|
2024-04-20 00:41:54 +00:00
|
|
|
version = "0.6.0"
|
2024-07-28 19:15:39 +00:00
|
|
|
default-features = false
|
2024-03-09 20:49:51 +00:00
|
|
|
features = ["tls-rustls"]
|
|
|
|
|
2024-06-07 01:01:30 +00:00
|
|
|
[workspace.dependencies.axum-client-ip]
|
|
|
|
version = "0.6.0"
|
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.tower]
|
2024-03-09 20:49:51 +00:00
|
|
|
version = "0.4.13"
|
2024-07-28 19:15:39 +00:00
|
|
|
default-features = false
|
2024-03-09 20:49:51 +00:00
|
|
|
features = ["util"]
|
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.tower-http]
|
2024-04-20 00:41:54 +00:00
|
|
|
version = "0.5.2"
|
2024-07-28 19:15:39 +00:00
|
|
|
default-features = false
|
2024-04-22 00:05:19 +00:00
|
|
|
features = [
|
|
|
|
"add-extension",
|
|
|
|
"cors",
|
|
|
|
"sensitive-headers",
|
2024-05-07 16:53:30 +00:00
|
|
|
"set-header",
|
2024-04-22 00:05:19 +00:00
|
|
|
"trace",
|
|
|
|
"util",
|
|
|
|
"catch-panic",
|
|
|
|
]
|
2024-03-09 20:49:51 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.reqwest]
|
2024-04-20 00:41:54 +00:00
|
|
|
version = "0.12.4"
|
2024-03-09 20:49:51 +00:00
|
|
|
default-features = false
|
2024-05-09 22:59:08 +00:00
|
|
|
features = [
|
|
|
|
"rustls-tls-native-roots",
|
|
|
|
"socks",
|
|
|
|
"hickory-dns",
|
2024-05-27 08:43:05 +00:00
|
|
|
"http2",
|
2024-05-09 22:59:08 +00:00
|
|
|
]
|
2024-03-09 20:49:51 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.serde]
|
2024-07-07 01:20:51 +00:00
|
|
|
version = "1.0.204"
|
2024-07-28 19:15:39 +00:00
|
|
|
default-features = false
|
2024-03-09 20:49:51 +00:00
|
|
|
features = ["rc"]
|
2024-05-09 22:59:08 +00:00
|
|
|
|
|
|
|
[workspace.dependencies.serde_json]
|
2024-07-29 23:18:56 +00:00
|
|
|
version = "1.0.121"
|
2024-07-28 19:15:39 +00:00
|
|
|
default-features = false
|
2024-03-09 20:49:51 +00:00
|
|
|
features = ["raw_value"]
|
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
# Used for appservice registration files
|
|
|
|
[workspace.dependencies.serde_yaml]
|
|
|
|
version = "0.9.34"
|
|
|
|
|
|
|
|
# Used to load forbidden room/user regex from config
|
|
|
|
[workspace.dependencies.serde_regex]
|
|
|
|
version = "1.1.0"
|
|
|
|
|
|
|
|
# Used for ruma wrapper
|
|
|
|
[workspace.dependencies.serde_html_form]
|
|
|
|
version = "0.2.6"
|
2024-03-09 20:49:51 +00:00
|
|
|
|
|
|
|
# Used for password hashing
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.argon2]
|
2024-03-09 20:49:51 +00:00
|
|
|
version = "0.5.3"
|
2024-03-23 01:50:51 +00:00
|
|
|
features = ["alloc", "rand"]
|
2024-03-09 20:49:51 +00:00
|
|
|
default-features = false
|
|
|
|
|
|
|
|
# Used to generate thumbnails for images
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.image]
|
2024-03-31 03:19:31 +00:00
|
|
|
version = "0.25.1"
|
2024-03-09 20:49:51 +00:00
|
|
|
default-features = false
|
2024-05-09 22:59:08 +00:00
|
|
|
features = [
|
|
|
|
"jpeg",
|
|
|
|
"png",
|
|
|
|
"gif",
|
|
|
|
"webp",
|
|
|
|
]
|
2024-03-09 20:49:51 +00:00
|
|
|
|
|
|
|
# logging
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.log]
|
2024-03-29 06:08:35 +00:00
|
|
|
version = "0.4.21"
|
|
|
|
default-features = false
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.tracing]
|
2024-03-09 20:49:51 +00:00
|
|
|
version = "0.1.40"
|
|
|
|
default-features = false
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.tracing-subscriber]
|
2024-03-09 20:49:51 +00:00
|
|
|
version = "0.3.18"
|
|
|
|
features = ["env-filter"]
|
2024-06-11 01:26:31 +00:00
|
|
|
[workspace.dependencies.tracing-core]
|
|
|
|
version = "0.1.32"
|
2024-03-09 20:49:51 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
# for URL previews
|
|
|
|
[workspace.dependencies.webpage]
|
|
|
|
version = "2.0.1"
|
|
|
|
default-features = false
|
2024-03-09 20:49:51 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
# used for conduit's CLI and admin room command parsing
|
|
|
|
[workspace.dependencies.clap]
|
2024-07-07 01:20:51 +00:00
|
|
|
version = "4.5.9"
|
2024-03-29 23:08:16 +00:00
|
|
|
default-features = false
|
2024-04-05 21:54:38 +00:00
|
|
|
features = [
|
2024-05-09 22:59:08 +00:00
|
|
|
"std",
|
|
|
|
"derive",
|
|
|
|
"help",
|
|
|
|
"usage",
|
|
|
|
"error-context",
|
|
|
|
"string",
|
2024-04-05 21:54:38 +00:00
|
|
|
]
|
2024-03-29 22:21:17 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.futures-util]
|
|
|
|
version = "0.3.30"
|
2024-03-10 05:15:14 +00:00
|
|
|
default-features = false
|
2024-03-09 20:49:51 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.tokio]
|
2024-07-28 19:15:39 +00:00
|
|
|
version = "1.39.2"
|
|
|
|
default-features = false
|
2024-05-09 22:59:08 +00:00
|
|
|
features = [
|
|
|
|
"fs",
|
|
|
|
"net",
|
|
|
|
"macros",
|
|
|
|
"sync",
|
|
|
|
"signal",
|
|
|
|
"time",
|
|
|
|
"rt-multi-thread",
|
|
|
|
"io-util",
|
|
|
|
]
|
|
|
|
|
2024-06-25 05:05:02 +00:00
|
|
|
[workspace.dependencies.tokio-metrics]
|
|
|
|
version = "0.3.1"
|
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.libloading]
|
2024-07-23 03:07:41 +00:00
|
|
|
version = "0.8.5"
|
2024-05-09 22:59:08 +00:00
|
|
|
|
|
|
|
# Validating urls in config, was already a transitive dependency
|
|
|
|
[workspace.dependencies.url]
|
|
|
|
version = "2.5.0"
|
2024-07-28 19:15:39 +00:00
|
|
|
default-features = false
|
2024-05-09 22:59:08 +00:00
|
|
|
features = ["serde"]
|
|
|
|
|
|
|
|
# standard date and time tools
|
|
|
|
[workspace.dependencies.chrono]
|
|
|
|
version = "0.4.38"
|
2024-07-04 12:58:53 +00:00
|
|
|
features = ["alloc", "std"]
|
2024-03-09 20:49:51 +00:00
|
|
|
default-features = false
|
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.hyper]
|
2024-07-23 03:07:41 +00:00
|
|
|
version = "1.4.1"
|
2024-07-28 19:15:39 +00:00
|
|
|
default-features = false
|
2024-05-09 22:59:08 +00:00
|
|
|
features = [
|
|
|
|
"server",
|
|
|
|
"http1",
|
|
|
|
"http2",
|
|
|
|
]
|
|
|
|
|
|
|
|
[workspace.dependencies.hyper-util]
|
2024-07-02 19:40:45 +00:00
|
|
|
version = "0.1.6"
|
2024-07-28 19:15:39 +00:00
|
|
|
default-features = false
|
2024-05-29 17:21:59 +00:00
|
|
|
features = [
|
|
|
|
"client",
|
|
|
|
"server-auto",
|
|
|
|
"server-graceful",
|
|
|
|
"service",
|
|
|
|
"tokio",
|
|
|
|
]
|
2024-05-09 22:59:08 +00:00
|
|
|
|
2024-03-09 20:49:51 +00:00
|
|
|
# to support multiple variations of setting a config option
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.either]
|
2024-04-15 03:01:08 +00:00
|
|
|
version = "1.11.0"
|
2024-07-28 19:15:39 +00:00
|
|
|
default-features = false
|
2024-03-09 20:49:51 +00:00
|
|
|
features = ["serde"]
|
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
# Used for reading the configuration from conduwuit.toml & environment variables
|
|
|
|
[workspace.dependencies.figment]
|
|
|
|
version = "0.10.18"
|
2024-07-28 19:15:39 +00:00
|
|
|
default-features = false
|
2024-05-09 22:59:08 +00:00
|
|
|
features = ["env", "toml"]
|
2024-03-09 20:49:51 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.hickory-resolver]
|
|
|
|
version = "0.24.1"
|
2024-03-09 20:49:51 +00:00
|
|
|
default-features = false
|
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
# Used for conduit::Error type
|
|
|
|
[workspace.dependencies.thiserror]
|
2024-07-23 03:07:41 +00:00
|
|
|
version = "1.0.63"
|
2024-03-09 20:49:51 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
# Used when hashing the state
|
|
|
|
[workspace.dependencies.ring]
|
|
|
|
version = "0.17.8"
|
|
|
|
|
|
|
|
# Used to make working with iterators easier, was already a transitive depdendency
|
|
|
|
[workspace.dependencies.itertools]
|
2024-05-22 02:05:27 +00:00
|
|
|
version = "0.13.0"
|
2024-05-09 22:59:08 +00:00
|
|
|
|
|
|
|
# to parse user-friendly time durations in admin commands
|
|
|
|
#TODO: overlaps chrono?
|
|
|
|
[workspace.dependencies.cyborgtime]
|
|
|
|
version = "2.1.1"
|
|
|
|
|
|
|
|
# used to replace the channels of the tokio runtime
|
|
|
|
[workspace.dependencies.loole]
|
2024-06-03 04:07:38 +00:00
|
|
|
version = "0.3.1"
|
2024-05-09 22:59:08 +00:00
|
|
|
|
|
|
|
[workspace.dependencies.async-trait]
|
2024-07-07 01:20:51 +00:00
|
|
|
version = "0.1.81"
|
2024-05-09 22:59:08 +00:00
|
|
|
|
|
|
|
[workspace.dependencies.lru-cache]
|
|
|
|
version = "0.1.2"
|
|
|
|
|
2024-03-09 20:49:51 +00:00
|
|
|
# Used for matrix spec type definitions and helpers
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.ruma]
|
|
|
|
git = "https://github.com/girlbossceo/ruwuma"
|
2024-06-16 01:31:33 +00:00
|
|
|
#branch = "conduwuit-changes"
|
2024-07-24 02:11:51 +00:00
|
|
|
rev = "c76e2873c1593a3308d4ba3e0e4a1db65acf8536"
|
2024-03-09 20:49:51 +00:00
|
|
|
features = [
|
2024-03-23 01:50:51 +00:00
|
|
|
"compat",
|
|
|
|
"rand",
|
|
|
|
"appservice-api-c",
|
|
|
|
"client-api",
|
|
|
|
"federation-api",
|
2024-06-12 18:52:24 +00:00
|
|
|
"markdown",
|
2024-03-23 01:50:51 +00:00
|
|
|
"push-gateway-api-c",
|
|
|
|
"state-res",
|
2024-07-03 07:53:50 +00:00
|
|
|
"server-util",
|
2024-03-23 01:50:51 +00:00
|
|
|
"unstable-exhaustive-types",
|
|
|
|
"ring-compat",
|
2024-07-24 02:11:51 +00:00
|
|
|
"identifiers-validation",
|
2024-03-23 01:50:51 +00:00
|
|
|
"unstable-unspecified",
|
2024-04-07 19:45:48 +00:00
|
|
|
"unstable-msc2448",
|
|
|
|
"unstable-msc2666",
|
2024-04-05 21:54:38 +00:00
|
|
|
"unstable-msc2867",
|
2024-03-23 01:50:51 +00:00
|
|
|
"unstable-msc2870",
|
2024-04-05 21:54:38 +00:00
|
|
|
"unstable-msc3026",
|
2024-03-23 01:50:51 +00:00
|
|
|
"unstable-msc3061",
|
2024-07-03 16:40:08 +00:00
|
|
|
"unstable-msc3266",
|
2024-04-07 19:45:48 +00:00
|
|
|
"unstable-msc3575",
|
2024-04-06 22:42:00 +00:00
|
|
|
"unstable-msc4121",
|
2024-04-11 22:29:27 +00:00
|
|
|
"unstable-msc4125",
|
2024-03-23 01:50:51 +00:00
|
|
|
"unstable-extensible-events",
|
2024-03-09 20:49:51 +00:00
|
|
|
]
|
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.rust-rocksdb]
|
|
|
|
path = "deps/rust-rocksdb"
|
|
|
|
package = "rust-rocksdb-uwu"
|
|
|
|
features = [
|
|
|
|
"multi-threaded-cf",
|
|
|
|
"mt_static",
|
|
|
|
"lz4",
|
|
|
|
"zstd",
|
|
|
|
"zlib",
|
|
|
|
"bzip2",
|
|
|
|
]
|
|
|
|
|
|
|
|
# to listen on both HTTP and HTTPS if listening on TLS dierctly from conduwuit for complement or sytest
|
|
|
|
[workspace.dependencies.axum-server-dual-protocol]
|
|
|
|
version = "0.6"
|
|
|
|
|
|
|
|
# optional SHA256 media keys feature
|
|
|
|
[workspace.dependencies.sha2]
|
|
|
|
version = "0.10.8"
|
|
|
|
|
|
|
|
# optional opentelemetry, performance measurements, flamegraphs, etc for performance measurements and monitoring
|
|
|
|
[workspace.dependencies.opentelemetry]
|
|
|
|
version = "0.21.0"
|
|
|
|
|
|
|
|
[workspace.dependencies.tracing-flame]
|
|
|
|
version = "0.2.0"
|
|
|
|
|
|
|
|
[workspace.dependencies.tracing-opentelemetry]
|
|
|
|
version = "0.22.0"
|
|
|
|
|
|
|
|
[workspace.dependencies.opentelemetry_sdk]
|
|
|
|
version = "0.21.2"
|
|
|
|
features = ["rt-tokio"]
|
|
|
|
|
|
|
|
[workspace.dependencies.opentelemetry-jaeger]
|
|
|
|
version = "0.20.0"
|
|
|
|
features = ["rt-tokio"]
|
|
|
|
|
|
|
|
# optional sentry metrics for crash/panic reporting
|
|
|
|
[workspace.dependencies.sentry]
|
2024-06-07 04:41:50 +00:00
|
|
|
version = "0.34.0"
|
2024-04-20 00:41:54 +00:00
|
|
|
default-features = false
|
2024-05-09 22:59:08 +00:00
|
|
|
features = [
|
|
|
|
"backtrace",
|
|
|
|
"contexts",
|
|
|
|
"debug-images",
|
|
|
|
"panic",
|
|
|
|
"rustls",
|
|
|
|
"tower",
|
|
|
|
"tower-http",
|
|
|
|
"tracing",
|
|
|
|
"reqwest",
|
|
|
|
"log",
|
|
|
|
]
|
2024-04-18 00:05:56 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.sentry-tracing]
|
2024-06-07 04:41:50 +00:00
|
|
|
version = "0.34.0"
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.sentry-tower]
|
2024-06-07 04:41:50 +00:00
|
|
|
version = "0.34.0"
|
2024-03-09 20:49:51 +00:00
|
|
|
|
2024-05-22 01:06:53 +00:00
|
|
|
# jemalloc usage
|
2024-07-23 03:07:41 +00:00
|
|
|
# locked to 0.5.4 due to static binary linking breakage
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.tikv-jemalloc-sys]
|
2024-07-23 03:07:41 +00:00
|
|
|
version = "=0.5.4"
|
2024-05-09 22:59:08 +00:00
|
|
|
default-features = false
|
2024-05-24 06:16:19 +00:00
|
|
|
features = ["stats", "unprefixed_malloc_on_supported_platforms"]
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.tikv-jemallocator]
|
2024-07-23 03:07:41 +00:00
|
|
|
version = "=0.5.4"
|
2024-05-09 22:59:08 +00:00
|
|
|
default-features = false
|
2024-05-24 06:16:19 +00:00
|
|
|
features = ["stats", "unprefixed_malloc_on_supported_platforms"]
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.tikv-jemalloc-ctl]
|
2024-07-23 03:07:41 +00:00
|
|
|
version = "=0.5.4"
|
2024-05-09 22:59:08 +00:00
|
|
|
default-features = false
|
|
|
|
features = ["use_std"]
|
|
|
|
|
|
|
|
[workspace.dependencies.console-subscriber]
|
2024-07-29 23:18:56 +00:00
|
|
|
version = "0.4"
|
2024-03-09 20:49:51 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.nix]
|
2024-06-03 04:07:38 +00:00
|
|
|
version = "0.29.0"
|
2024-07-28 19:15:39 +00:00
|
|
|
default-features = false
|
2024-05-09 22:59:08 +00:00
|
|
|
features = ["resource"]
|
2024-04-20 03:39:28 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.sd-notify]
|
|
|
|
version = "0.4.1"
|
2024-03-09 20:49:51 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.hardened_malloc-rs]
|
|
|
|
version = "0.1.2"
|
|
|
|
default-features = false
|
|
|
|
features = [
|
|
|
|
"static",
|
|
|
|
"gcc",
|
|
|
|
"light",
|
|
|
|
]
|
2024-04-10 05:53:31 +00:00
|
|
|
|
2024-06-16 19:42:16 +00:00
|
|
|
[workspace.dependencies.rustyline-async]
|
2024-07-14 04:14:23 +00:00
|
|
|
version = "0.4.2"
|
|
|
|
default-features = false
|
2024-06-10 06:02:17 +00:00
|
|
|
|
|
|
|
[workspace.dependencies.termimad]
|
2024-06-17 06:07:26 +00:00
|
|
|
version = "0.29.4"
|
|
|
|
default-features = false
|
|
|
|
|
2024-07-07 03:36:50 +00:00
|
|
|
[workspace.dependencies.checked_ops]
|
|
|
|
version = "0.1"
|
|
|
|
|
2024-07-24 00:14:03 +00:00
|
|
|
[workspace.dependencies.syn]
|
2024-07-27 08:28:35 +00:00
|
|
|
version = "2.0.72"
|
2024-07-28 19:15:39 +00:00
|
|
|
default-features = false
|
2024-07-24 00:14:03 +00:00
|
|
|
features = ["full", "extra-traits"]
|
|
|
|
|
|
|
|
[workspace.dependencies.quote]
|
2024-07-27 08:28:35 +00:00
|
|
|
version = "1.0.36"
|
2024-07-24 00:14:03 +00:00
|
|
|
|
|
|
|
[workspace.dependencies.proc-macro2]
|
|
|
|
version = "1.0.86"
|
|
|
|
|
2024-06-10 06:02:17 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
#
|
|
|
|
# Patches
|
|
|
|
#
|
2023-07-26 20:24:44 +00:00
|
|
|
|
2024-04-25 16:07:59 +00:00
|
|
|
# backport of [https://github.com/tokio-rs/tracing/pull/2956] to the 0.1.x branch of tracing.
|
|
|
|
# we can switch back to upstream if #2956 is merged and backported in the upstream repo.
|
2024-06-16 01:31:33 +00:00
|
|
|
# https://github.com/girlbossceo/tracing/commit/b348dca742af641c47bc390261f60711c2af573c
|
2024-04-25 16:07:59 +00:00
|
|
|
[patch.crates-io.tracing-subscriber]
|
2024-04-26 18:56:02 +00:00
|
|
|
git = "https://github.com/girlbossceo/tracing"
|
2024-07-15 00:33:22 +00:00
|
|
|
rev = "4d78a14a5e03f539b8c6b475aefa08bb14e4de91"
|
2024-04-25 16:07:59 +00:00
|
|
|
[patch.crates-io.tracing]
|
2024-04-26 18:56:02 +00:00
|
|
|
git = "https://github.com/girlbossceo/tracing"
|
2024-07-15 00:33:22 +00:00
|
|
|
rev = "4d78a14a5e03f539b8c6b475aefa08bb14e4de91"
|
2024-04-25 16:07:59 +00:00
|
|
|
[patch.crates-io.tracing-core]
|
2024-04-26 18:56:02 +00:00
|
|
|
git = "https://github.com/girlbossceo/tracing"
|
2024-07-15 00:33:22 +00:00
|
|
|
rev = "4d78a14a5e03f539b8c6b475aefa08bb14e4de91"
|
2024-06-16 01:27:12 +00:00
|
|
|
[patch.crates-io.tracing-log]
|
|
|
|
git = "https://github.com/girlbossceo/tracing"
|
2024-07-15 00:33:22 +00:00
|
|
|
rev = "4d78a14a5e03f539b8c6b475aefa08bb14e4de91"
|
2024-04-25 16:07:59 +00:00
|
|
|
|
2024-06-10 20:49:17 +00:00
|
|
|
# fixes hyper graceful shutdowns [https://github.com/programatik29/axum-server/issues/114]
|
2024-06-16 01:31:33 +00:00
|
|
|
# https://github.com/girlbossceo/axum-server/commit/8e3368d899079818934e61cc9c839abcbbcada8a
|
2024-06-10 20:49:17 +00:00
|
|
|
[patch.crates-io.axum-server]
|
2024-06-11 05:18:49 +00:00
|
|
|
git = "https://github.com/girlbossceo/axum-server"
|
2024-06-16 01:31:33 +00:00
|
|
|
rev = "8e3368d899079818934e61cc9c839abcbbcada8a"
|
2024-06-10 20:49:17 +00:00
|
|
|
|
2024-07-14 04:14:23 +00:00
|
|
|
# adds a tab completion callback: https://github.com/girlbossceo/rustyline-async/commit/de26100b0db03e419a3d8e1dd26895d170d1fe50
|
|
|
|
# adds event for CTRL+\: https://github.com/girlbossceo/rustyline-async/commit/67d8c49aeac03a5ef4e818f663eaa94dd7bf339b
|
|
|
|
[patch.crates-io.rustyline-async]
|
|
|
|
git = "https://github.com/girlbossceo/rustyline-async"
|
|
|
|
rev = "de26100b0db03e419a3d8e1dd26895d170d1fe50"
|
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
#
|
|
|
|
# Our crates
|
|
|
|
#
|
2024-03-09 20:49:51 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.conduit-router]
|
|
|
|
package = "conduit_router"
|
|
|
|
path = "src/router"
|
|
|
|
default-features = false
|
2024-04-25 16:07:59 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.conduit-admin]
|
|
|
|
package = "conduit_admin"
|
|
|
|
path = "src/admin"
|
|
|
|
default-features = false
|
2024-04-23 02:36:11 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.conduit-api]
|
|
|
|
package = "conduit_api"
|
|
|
|
path = "src/api"
|
|
|
|
default-features = false
|
2024-04-10 05:53:31 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.conduit-service]
|
|
|
|
package = "conduit_service"
|
|
|
|
path = "src/service"
|
|
|
|
default-features = false
|
|
|
|
|
|
|
|
[workspace.dependencies.conduit-database]
|
|
|
|
package = "conduit_database"
|
|
|
|
path = "src/database"
|
|
|
|
default-features = false
|
2024-04-24 05:15:49 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.conduit-core]
|
|
|
|
package = "conduit_core"
|
|
|
|
path = "src/core"
|
|
|
|
default-features = false
|
2024-04-23 18:15:29 +00:00
|
|
|
|
2024-07-24 00:14:03 +00:00
|
|
|
[workspace.dependencies.conduit-macros]
|
|
|
|
package = "conduit_macros"
|
|
|
|
path = "src/macros"
|
|
|
|
default-features = false
|
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
###############################################################################
|
|
|
|
#
|
|
|
|
# Release profiles
|
2024-03-24 03:13:40 +00:00
|
|
|
#
|
2024-03-09 20:49:51 +00:00
|
|
|
|
2021-08-13 15:20:40 +00:00
|
|
|
[profile.release]
|
2023-08-05 23:30:52 +00:00
|
|
|
strip = "symbols"
|
2024-05-09 22:59:08 +00:00
|
|
|
lto = "thin"
|
2024-01-17 00:49:44 +00:00
|
|
|
|
2024-04-20 03:47:14 +00:00
|
|
|
# release profile with debug symbols
|
|
|
|
[profile.release-debuginfo]
|
|
|
|
inherits = "release"
|
2024-04-20 05:15:51 +00:00
|
|
|
debug = "full"
|
2024-05-09 22:59:08 +00:00
|
|
|
strip = "none"
|
2024-04-20 03:47:14 +00:00
|
|
|
|
2024-01-17 00:49:44 +00:00
|
|
|
[profile.release-high-perf]
|
|
|
|
inherits = "release"
|
2024-05-09 22:59:08 +00:00
|
|
|
lto = "fat"
|
2024-01-17 00:49:44 +00:00
|
|
|
codegen-units = 1
|
2024-04-02 04:01:55 +00:00
|
|
|
panic = "abort"
|
2021-08-13 15:20:40 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
# do not use without profile-rustflags enabled
|
|
|
|
[profile.release-max-perf]
|
|
|
|
inherits = "release"
|
|
|
|
strip = "symbols"
|
|
|
|
lto = "fat"
|
|
|
|
#rustflags = [
|
|
|
|
# '-Ctarget-cpu=native',
|
|
|
|
# '-Ztune-cpu=native',
|
|
|
|
# '-Ctarget-feature=+crt-static',
|
|
|
|
# '-Crelocation-model=static',
|
|
|
|
# '-Ztls-model=local-exec',
|
|
|
|
# '-Zinline-in-all-cgus=true',
|
|
|
|
# '-Zinline-mir=true',
|
|
|
|
# '-Zmir-opt-level=3',
|
2024-05-24 02:03:36 +00:00
|
|
|
# '-Clink-arg=-fuse-ld=gold',
|
2024-05-09 22:59:08 +00:00
|
|
|
# '-Clink-arg=-Wl,--threads',
|
|
|
|
# '-Clink-arg=-Wl,--gc-sections',
|
2024-05-24 02:03:36 +00:00
|
|
|
# '-Clink-arg=-luring',
|
|
|
|
# '-Clink-arg=-lstdc++',
|
|
|
|
# '-Clink-arg=-lc',
|
2024-05-09 22:59:08 +00:00
|
|
|
# '-Ztime-passes',
|
|
|
|
# '-Ztime-llvm-passes',
|
|
|
|
#]
|
|
|
|
|
|
|
|
[profile.release-max-perf.build-override]
|
|
|
|
inherits = "release-max-perf"
|
|
|
|
opt-level = 0
|
|
|
|
#rustflags = [
|
|
|
|
# '-Ctarget-feature=-crt-static',
|
|
|
|
#]
|
|
|
|
|
|
|
|
[profile.bench]
|
|
|
|
inherits = "release"
|
|
|
|
#rustflags = [
|
|
|
|
# "-Cremark=all",
|
|
|
|
# '-Ztime-passes',
|
|
|
|
# '-Ztime-llvm-passes',
|
|
|
|
#]
|
2024-01-17 00:49:44 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
###############################################################################
|
|
|
|
#
|
|
|
|
# Developer profile
|
|
|
|
#
|
2024-01-13 19:29:18 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
# To enable hot-reloading:
|
|
|
|
# 1. Uncomment all of the rustflags here.
|
|
|
|
# 2. Uncomment crate-type=dylib in src/*/Cargo.toml and deps/rust-rocksdb/Cargo.toml
|
|
|
|
#
|
|
|
|
# opt-level, mir-opt-level, validate-mir are not known to interfere with reloading
|
|
|
|
# and can be raised if build times are tolerable.
|
2024-03-09 20:49:51 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[profile.dev]
|
|
|
|
debug = 1
|
|
|
|
opt-level = 0
|
|
|
|
panic = "unwind"
|
|
|
|
debug-assertions = true
|
|
|
|
incremental = true
|
|
|
|
codegen-units = 64
|
|
|
|
#rustflags = [
|
2024-05-19 13:02:55 +00:00
|
|
|
# '--cfg', 'conduit_mods',
|
2024-05-09 22:59:08 +00:00
|
|
|
# '-Ztime-passes',
|
|
|
|
# '-Zmir-opt-level=0',
|
|
|
|
# '-Zvalidate-mir=false',
|
|
|
|
# '-Ztls-model=global-dynamic',
|
|
|
|
# '-Cprefer-dynamic=true',
|
|
|
|
# '-Zstaticlib-prefer-dynamic=true',
|
|
|
|
# '-Zstaticlib-allow-rdylib-deps=true',
|
|
|
|
# '-Zpacked-bundled-libs=false',
|
|
|
|
# '-Zplt=true',
|
|
|
|
# '-Crpath=true',
|
|
|
|
# '-Clink-arg=-Wl,--as-needed',
|
|
|
|
# '-Clink-arg=-Wl,--allow-shlib-undefined',
|
|
|
|
# '-Clink-arg=-Wl,-z,keep-text-section-prefix',
|
|
|
|
# '-Clink-arg=-Wl,-z,lazy',
|
|
|
|
#]
|
|
|
|
|
|
|
|
[profile.dev.package.conduit_core]
|
|
|
|
inherits = "dev"
|
|
|
|
incremental = false
|
|
|
|
#rustflags = [
|
2024-05-19 13:02:55 +00:00
|
|
|
# '--cfg', 'conduit_mods',
|
2024-05-09 22:59:08 +00:00
|
|
|
# '-Ztime-passes',
|
|
|
|
# '-Zmir-opt-level=0',
|
|
|
|
# '-Ztls-model=initial-exec',
|
|
|
|
# '-Cprefer-dynamic=true',
|
|
|
|
# '-Zstaticlib-prefer-dynamic=true',
|
|
|
|
# '-Zstaticlib-allow-rdylib-deps=true',
|
|
|
|
# '-Zpacked-bundled-libs=false',
|
|
|
|
# '-Zplt=true',
|
|
|
|
# '-Clink-arg=-Wl,--as-needed',
|
|
|
|
# '-Clink-arg=-Wl,--allow-shlib-undefined',
|
|
|
|
# '-Clink-arg=-Wl,-z,lazy',
|
|
|
|
# '-Clink-arg=-Wl,-z,unique',
|
|
|
|
# '-Clink-arg=-Wl,-z,nodlopen',
|
|
|
|
# '-Clink-arg=-Wl,-z,nodelete',
|
|
|
|
#]
|
|
|
|
|
|
|
|
[profile.dev.package.conduit]
|
|
|
|
inherits = "dev"
|
|
|
|
incremental = false
|
|
|
|
#rustflags = [
|
2024-05-19 13:02:55 +00:00
|
|
|
# '--cfg', 'conduit_mods',
|
2024-05-09 22:59:08 +00:00
|
|
|
# '-Ztime-passes',
|
|
|
|
# '-Zmir-opt-level=0',
|
|
|
|
# '-Zvalidate-mir=false',
|
|
|
|
# '-Ztls-model=global-dynamic',
|
|
|
|
# '-Cprefer-dynamic=true',
|
|
|
|
# '-Zexport-executable-symbols=true',
|
|
|
|
# '-Zplt=true',
|
|
|
|
# '-Crpath=true',
|
|
|
|
# '-Clink-arg=-Wl,--as-needed',
|
|
|
|
# '-Clink-arg=-Wl,--allow-shlib-undefined',
|
|
|
|
# '-Clink-arg=-Wl,--export-dynamic',
|
|
|
|
# '-Clink-arg=-Wl,-z,lazy',
|
|
|
|
#]
|
|
|
|
|
|
|
|
[profile.dev.package.rust-rocksdb-uwu]
|
|
|
|
inherits = "dev"
|
|
|
|
debug = 'limited'
|
|
|
|
incremental = false
|
|
|
|
codegen-units = 1
|
|
|
|
opt-level = 'z'
|
|
|
|
#rustflags = [
|
2024-05-19 13:02:55 +00:00
|
|
|
# '--cfg', 'conduit_mods',
|
2024-05-09 22:59:08 +00:00
|
|
|
# '-Ztls-model=initial-exec',
|
|
|
|
# '-Cprefer-dynamic=true',
|
|
|
|
# '-Zstaticlib-prefer-dynamic=true',
|
|
|
|
# '-Zstaticlib-allow-rdylib-deps=true',
|
|
|
|
# '-Zpacked-bundled-libs=true',
|
|
|
|
# '-Zplt=true',
|
|
|
|
# '-Clink-arg=-Wl,--no-as-needed',
|
|
|
|
# '-Clink-arg=-Wl,--allow-shlib-undefined',
|
|
|
|
# '-Clink-arg=-Wl,-z,lazy',
|
|
|
|
# '-Clink-arg=-Wl,-z,nodlopen',
|
|
|
|
# '-Clink-arg=-Wl,-z,nodelete',
|
|
|
|
#]
|
|
|
|
|
|
|
|
[profile.dev.package.'*']
|
|
|
|
inherits = "dev"
|
|
|
|
debug = 'limited'
|
|
|
|
incremental = false
|
|
|
|
codegen-units = 1
|
|
|
|
opt-level = 'z'
|
|
|
|
#rustflags = [
|
2024-05-19 13:02:55 +00:00
|
|
|
# '--cfg', 'conduit_mods',
|
2024-05-09 22:59:08 +00:00
|
|
|
# '-Ztls-model=global-dynamic',
|
|
|
|
# '-Cprefer-dynamic=true',
|
|
|
|
# '-Zstaticlib-prefer-dynamic=true',
|
|
|
|
# '-Zstaticlib-allow-rdylib-deps=true',
|
|
|
|
# '-Zpacked-bundled-libs=true',
|
|
|
|
# '-Zplt=true',
|
|
|
|
# '-Clink-arg=-Wl,--as-needed',
|
|
|
|
# '-Clink-arg=-Wl,-z,lazy',
|
|
|
|
# '-Clink-arg=-Wl,-z,nodelete',
|
|
|
|
#]
|
|
|
|
|
2024-07-25 22:06:45 +00:00
|
|
|
# primarily used for CI
|
2024-05-09 22:59:08 +00:00
|
|
|
[profile.test]
|
2024-07-25 22:06:45 +00:00
|
|
|
inherits = "dev"
|
|
|
|
codegen-units = 16
|
|
|
|
incremental = false
|
|
|
|
|
|
|
|
[profile.test.package.'*']
|
|
|
|
inherits = "dev"
|
|
|
|
debug = 0
|
|
|
|
codegen-units = 16
|
2024-05-09 22:59:08 +00:00
|
|
|
incremental = false
|
2024-01-13 19:29:18 +00:00
|
|
|
|
2024-06-01 09:20:37 +00:00
|
|
|
###############################################################################
|
|
|
|
#
|
|
|
|
# Linting
|
|
|
|
#
|
2024-03-06 04:51:45 +00:00
|
|
|
|
2024-06-01 09:20:37 +00:00
|
|
|
[workspace.lints.rust]
|
|
|
|
absolute-paths-not-starting-with-crate = "warn"
|
2024-06-03 06:54:58 +00:00
|
|
|
#box-pointers = "warn"
|
2024-06-01 09:20:37 +00:00
|
|
|
deprecated-in-future = "warn"
|
|
|
|
elided-lifetimes-in-paths = "warn"
|
|
|
|
explicit-outlives-requirements = "warn"
|
|
|
|
ffi-unwind-calls = "warn"
|
|
|
|
keyword-idents = "warn"
|
|
|
|
macro-use-extern-crate = "warn"
|
|
|
|
meta-variable-misuse = "warn"
|
|
|
|
missing-abi = "warn"
|
|
|
|
#missing-copy-implementations = "warn" # TODO
|
|
|
|
#missing-debug-implementations = "warn" # TODO
|
|
|
|
non-ascii-idents = "warn"
|
|
|
|
rust-2021-incompatible-closure-captures = "warn"
|
|
|
|
rust-2021-incompatible-or-patterns = "warn"
|
|
|
|
rust-2021-prefixes-incompatible-syntax = "warn"
|
|
|
|
rust-2021-prelude-collisions = "warn"
|
|
|
|
single-use-lifetimes = "warn"
|
2024-06-03 10:44:46 +00:00
|
|
|
trivial-casts = "warn"
|
2024-06-01 09:20:37 +00:00
|
|
|
trivial-numeric-casts = "warn"
|
|
|
|
unit-bindings = "warn"
|
|
|
|
#unnameable-types = "warn" # TODO
|
|
|
|
unreachable-pub = "warn"
|
|
|
|
unsafe-op-in-unsafe-fn = "warn"
|
|
|
|
unstable-features = "warn"
|
|
|
|
unused-extern-crates = "warn"
|
|
|
|
unused-import-braces = "warn"
|
|
|
|
unused-lifetimes = "warn"
|
|
|
|
unused-macro-rules = "warn"
|
|
|
|
unused-qualifications = "warn"
|
|
|
|
#unused-results = "warn" # TODO
|
|
|
|
|
|
|
|
## some sadness
|
|
|
|
let_underscore_drop = "allow"
|
|
|
|
missing_docs = "allow"
|
2024-05-19 13:02:55 +00:00
|
|
|
# cfgs cannot be limited to expected cfgs or their de facto non-transitive/opt-in use-case e.g.
|
|
|
|
# tokio_unstable will warn.
|
|
|
|
unexpected_cfgs = "allow"
|
2024-06-01 09:20:37 +00:00
|
|
|
# this seems to suggest broken code and is not working correctly
|
|
|
|
unused_braces = "allow"
|
|
|
|
# buggy, but worth checking on occasionally
|
|
|
|
unused_crate_dependencies = "allow"
|
|
|
|
unsafe_code = "allow"
|
|
|
|
variant_size_differences = "allow"
|
2024-05-19 13:02:55 +00:00
|
|
|
|
2024-06-01 09:20:37 +00:00
|
|
|
#######################################
|
|
|
|
#
|
|
|
|
# Clippy lints
|
|
|
|
#
|
2024-03-23 18:38:15 +00:00
|
|
|
|
2024-01-13 19:29:18 +00:00
|
|
|
[workspace.lints.clippy]
|
2024-06-01 09:20:37 +00:00
|
|
|
|
|
|
|
###################
|
2024-07-25 23:43:48 +00:00
|
|
|
cargo = { level = "warn", priority = -1 }
|
2024-06-01 09:20:37 +00:00
|
|
|
|
|
|
|
## some sadness
|
|
|
|
multiple_crate_versions = { level = "allow", priority = 1 }
|
|
|
|
|
|
|
|
###################
|
2024-07-25 23:43:48 +00:00
|
|
|
complexity = { level = "warn", priority = -1 }
|
2024-06-01 09:20:37 +00:00
|
|
|
|
|
|
|
###################
|
2024-07-25 23:43:48 +00:00
|
|
|
correctness = { level = "warn", priority = -1 }
|
2024-06-01 09:20:37 +00:00
|
|
|
|
|
|
|
###################
|
2024-07-25 23:43:48 +00:00
|
|
|
nursery = { level = "warn", priority = -1 }
|
2024-06-01 09:20:37 +00:00
|
|
|
|
2024-06-03 06:54:58 +00:00
|
|
|
## some sadness
|
2024-06-01 09:20:37 +00:00
|
|
|
missing_const_for_fn = { level = "allow", priority = 1 } # TODO
|
|
|
|
option_if_let_else = { level = "allow", priority = 1 } # TODO
|
|
|
|
redundant_pub_crate = { level = "allow", priority = 1 } # TODO
|
|
|
|
significant_drop_in_scrutinee = { level = "allow", priority = 1 } # TODO
|
|
|
|
significant_drop_tightening = { level = "allow", priority = 1 } # TODO
|
|
|
|
|
|
|
|
###################
|
2024-07-25 23:43:48 +00:00
|
|
|
pedantic = { level = "warn", priority = -1 }
|
2024-06-01 09:20:37 +00:00
|
|
|
|
|
|
|
## some sadness
|
2024-06-16 00:25:49 +00:00
|
|
|
doc_markdown = { level = "allow", priority = 1 }
|
2024-07-06 06:50:29 +00:00
|
|
|
enum_glob_use = { level = "allow", priority = 1 }
|
2024-06-16 00:25:49 +00:00
|
|
|
if_not_else = { level = "allow", priority = 1 }
|
|
|
|
if_then_some_else_none = { level = "allow", priority = 1 }
|
|
|
|
inline_always = { level = "allow", priority = 1 }
|
|
|
|
missing_docs_in_private_items = { level = "allow", priority = 1 }
|
|
|
|
missing_errors_doc = { level = "allow", priority = 1 }
|
|
|
|
missing_panics_doc = { level = "allow", priority = 1 }
|
|
|
|
module_name_repetitions = { level = "allow", priority = 1 }
|
|
|
|
no_effect_underscore_binding = { level = "allow", priority = 1 }
|
2024-06-01 09:20:37 +00:00
|
|
|
similar_names = { level = "allow", priority = 1 }
|
|
|
|
struct_field_names = { level = "allow", priority = 1 }
|
|
|
|
unnecessary_wraps = { level = "allow", priority = 1 }
|
|
|
|
unused_async = { level = "allow", priority = 1 }
|
|
|
|
|
|
|
|
###################
|
2024-07-25 23:43:48 +00:00
|
|
|
perf = { level = "warn", priority = -1 }
|
2024-06-01 09:20:37 +00:00
|
|
|
|
|
|
|
###################
|
|
|
|
#restriction = "warn"
|
|
|
|
|
2024-07-28 01:03:08 +00:00
|
|
|
#allow_attributes = "warn" # UNSTABLE
|
2024-07-07 04:46:16 +00:00
|
|
|
arithmetic_side_effects = "warn"
|
2024-07-07 06:17:58 +00:00
|
|
|
as_conversions = "warn"
|
2024-07-07 11:20:03 +00:00
|
|
|
as_underscore = "warn"
|
2024-03-19 00:26:32 +00:00
|
|
|
assertions_on_result_states = "warn"
|
2024-06-01 09:20:37 +00:00
|
|
|
dbg_macro = "warn"
|
2024-03-02 22:17:27 +00:00
|
|
|
default_union_representation = "warn"
|
|
|
|
deref_by_slicing = "warn"
|
|
|
|
empty_drop = "warn"
|
2024-06-01 09:20:37 +00:00
|
|
|
empty_structs_with_brackets = "warn"
|
2024-03-02 22:17:27 +00:00
|
|
|
exit = "warn"
|
|
|
|
filetype_is_file = "warn"
|
|
|
|
float_cmp_const = "warn"
|
2024-06-01 09:20:37 +00:00
|
|
|
fn_to_numeric_cast_any = "warn"
|
2024-03-02 22:33:46 +00:00
|
|
|
format_push_string = "warn"
|
2024-06-01 09:20:37 +00:00
|
|
|
get_unwrap = "warn"
|
2024-03-02 22:17:27 +00:00
|
|
|
impl_trait_in_params = "warn"
|
2024-06-01 09:20:37 +00:00
|
|
|
let_underscore_untyped = "warn"
|
2024-03-02 22:17:27 +00:00
|
|
|
lossy_float_literal = "warn"
|
|
|
|
mem_forget = "warn"
|
2024-03-02 23:14:45 +00:00
|
|
|
missing_assert_message = "warn"
|
2024-03-02 22:17:27 +00:00
|
|
|
mutex_atomic = "warn"
|
2024-06-01 09:20:37 +00:00
|
|
|
pub_without_shorthand = "warn"
|
|
|
|
rc_buffer = "warn"
|
|
|
|
rc_mutex = "warn"
|
|
|
|
redundant_type_annotations = "warn"
|
|
|
|
rest_pat_in_fully_bound_structs = "warn"
|
2024-03-03 01:55:02 +00:00
|
|
|
semicolon_outside_block = "warn"
|
2024-06-01 09:20:37 +00:00
|
|
|
str_to_string = "warn"
|
2024-03-02 22:17:27 +00:00
|
|
|
string_lit_chars_any = "warn"
|
2024-07-08 16:30:59 +00:00
|
|
|
string_slice = "warn"
|
2024-06-01 09:20:37 +00:00
|
|
|
string_to_string = "warn"
|
2024-03-02 22:17:27 +00:00
|
|
|
suspicious_xor_used_as_pow = "warn"
|
2024-06-01 09:20:37 +00:00
|
|
|
tests_outside_test_module = "warn"
|
2024-03-02 22:17:27 +00:00
|
|
|
try_err = "warn"
|
2024-06-01 09:20:37 +00:00
|
|
|
undocumented_unsafe_blocks = "warn"
|
2024-03-02 22:17:27 +00:00
|
|
|
unnecessary_safety_comment = "warn"
|
|
|
|
unnecessary_safety_doc = "warn"
|
|
|
|
unnecessary_self_imports = "warn"
|
2024-06-01 09:20:37 +00:00
|
|
|
unneeded_field_pattern = "warn"
|
|
|
|
unseparated_literal_suffix = "warn"
|
2024-07-07 11:20:03 +00:00
|
|
|
#unwrap_used = "warn" # TODO
|
2024-03-02 22:17:27 +00:00
|
|
|
verbose_file_reads = "warn"
|
2024-03-23 18:38:15 +00:00
|
|
|
|
2024-06-01 09:20:37 +00:00
|
|
|
###################
|
2024-07-25 23:43:48 +00:00
|
|
|
style = { level = "warn", priority = -1 }
|
2024-06-01 09:20:37 +00:00
|
|
|
|
2024-06-04 23:51:02 +00:00
|
|
|
## some sadness
|
|
|
|
# trivial assertions are quite alright
|
2024-06-16 00:25:49 +00:00
|
|
|
assertions_on_constants = { level = "allow", priority = 1 }
|
2024-07-27 23:25:13 +00:00
|
|
|
module_inception = { level = "allow", priority = 1 }
|
2024-06-04 23:51:02 +00:00
|
|
|
|
2024-06-01 09:20:37 +00:00
|
|
|
###################
|
2024-07-25 23:43:48 +00:00
|
|
|
suspicious = { level = "warn", priority = -1 }
|
2024-06-01 09:20:37 +00:00
|
|
|
|
|
|
|
## some sadness
|
2024-06-16 00:25:49 +00:00
|
|
|
let_underscore_future = { level = "allow", priority = 1 }
|