2024-05-09 22:59:08 +00:00
|
|
|
#cargo-features = ["profile-rustflags"]
|
|
|
|
|
|
|
|
[workspace]
|
|
|
|
resolver = "2"
|
|
|
|
members = ["src/*"]
|
|
|
|
default-members = ["src/*"]
|
|
|
|
|
|
|
|
[workspace.package]
|
2024-04-26 04:15:41 +00:00
|
|
|
description = "a very cool fork of Conduit, a Matrix homeserver written in Rust"
|
2020-08-24 09:32:15 +00:00
|
|
|
license = "Apache-2.0"
|
2024-03-23 01:50:51 +00:00
|
|
|
authors = [
|
|
|
|
"strawberry <strawberry@puppygock.gay>",
|
|
|
|
"timokoesters <timo@koesters.xyz>",
|
|
|
|
]
|
2024-05-27 18:47:34 +00:00
|
|
|
version = "0.4.1"
|
2022-01-20 11:29:52 +00:00
|
|
|
edition = "2021"
|
2024-01-26 04:39:59 +00:00
|
|
|
# See also `rust-toolchain.toml`
|
2024-05-03 14:59:36 +00:00
|
|
|
rust-version = "1.77.0"
|
2024-05-09 22:59:08 +00:00
|
|
|
homepage = "https://conduwuit.puppyirl.gay/"
|
|
|
|
repository = "https://github.com/girlbossceo/conduwuit"
|
|
|
|
readme = "README.md"
|
2022-12-23 08:20:05 +00:00
|
|
|
|
2024-05-19 02:32:02 +00:00
|
|
|
[workspace.metadata.crane]
|
|
|
|
name = "conduit"
|
|
|
|
|
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.infer]
|
|
|
|
version = "0.15"
|
|
|
|
default-features = false
|
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]
|
|
|
|
version = "1.6.0"
|
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-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-04-20 00:41:54 +00:00
|
|
|
features = ["typed-header"]
|
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-03-09 20:49:51 +00:00
|
|
|
features = ["tls-rustls"]
|
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.tower]
|
2024-03-09 20:49:51 +00:00
|
|
|
version = "0.4.13"
|
|
|
|
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-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-05-10 23:32:33 +00:00
|
|
|
version = "1.0.201"
|
2024-03-09 20:49:51 +00:00
|
|
|
features = ["rc"]
|
2024-05-09 22:59:08 +00:00
|
|
|
|
|
|
|
[workspace.dependencies.serde_json]
|
2024-05-10 23:32:33 +00:00
|
|
|
version = "1.0.117"
|
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-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]
|
|
|
|
version = "4.5.4"
|
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]
|
|
|
|
version = "1.37.0"
|
|
|
|
features = [
|
|
|
|
"fs",
|
|
|
|
"net",
|
|
|
|
"macros",
|
|
|
|
"sync",
|
|
|
|
"signal",
|
|
|
|
"time",
|
|
|
|
"rt-multi-thread",
|
|
|
|
"io-util",
|
|
|
|
]
|
|
|
|
|
|
|
|
[workspace.dependencies.libloading]
|
|
|
|
version = "0.8.3"
|
|
|
|
|
|
|
|
# Validating urls in config, was already a transitive dependency
|
|
|
|
[workspace.dependencies.url]
|
|
|
|
version = "2.5.0"
|
|
|
|
features = ["serde"]
|
|
|
|
|
|
|
|
# standard date and time tools
|
|
|
|
[workspace.dependencies.chrono]
|
|
|
|
version = "0.4.38"
|
|
|
|
features = ["alloc"]
|
2024-03-09 20:49:51 +00:00
|
|
|
default-features = false
|
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.hyper]
|
|
|
|
version = "1.3.1"
|
|
|
|
features = [
|
|
|
|
"server",
|
|
|
|
"http1",
|
|
|
|
"http2",
|
|
|
|
]
|
|
|
|
|
|
|
|
[workspace.dependencies.hyper-util]
|
2024-05-24 19:39:52 +00:00
|
|
|
version = "0.1.4"
|
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-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"
|
|
|
|
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-05-22 02:05:27 +00:00
|
|
|
version = "1.0.61"
|
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]
|
|
|
|
version = "0.3.0"
|
|
|
|
|
|
|
|
[workspace.dependencies.async-trait]
|
|
|
|
version = "0.1.80"
|
|
|
|
|
|
|
|
[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-03-27 17:36:15 +00:00
|
|
|
branch = "conduwuit-changes"
|
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",
|
|
|
|
"push-gateway-api-c",
|
|
|
|
"state-res",
|
|
|
|
"unstable-exhaustive-types",
|
|
|
|
"ring-compat",
|
|
|
|
"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-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.ruma-identifiers-validation]
|
|
|
|
git = "https://github.com/girlbossceo/ruwuma"
|
2024-04-18 07:52:29 +00:00
|
|
|
branch = "conduwuit-changes"
|
|
|
|
|
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",
|
|
|
|
"snappy",
|
|
|
|
"lz4",
|
|
|
|
"zstd",
|
|
|
|
"zlib",
|
|
|
|
"bzip2",
|
|
|
|
]
|
|
|
|
|
|
|
|
[workspace.dependencies.zstd]
|
|
|
|
version = "0.13.1"
|
|
|
|
|
|
|
|
# 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]
|
|
|
|
version = "0.32.3"
|
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]
|
|
|
|
version = "0.32.3"
|
|
|
|
[workspace.dependencies.sentry-tower]
|
|
|
|
version = "0.32.3"
|
2024-03-09 20:49:51 +00:00
|
|
|
|
2024-05-22 01:06:53 +00:00
|
|
|
# jemalloc usage
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.tikv-jemalloc-sys]
|
|
|
|
version = "0.5.4"
|
|
|
|
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]
|
|
|
|
version = "0.5.4"
|
|
|
|
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]
|
|
|
|
version = "0.5.4"
|
|
|
|
default-features = false
|
|
|
|
features = ["use_std"]
|
|
|
|
|
|
|
|
[workspace.dependencies.rusqlite]
|
2024-03-09 20:49:51 +00:00
|
|
|
git = "https://github.com/rusqlite/rusqlite"
|
2024-03-27 01:47:59 +00:00
|
|
|
#branch = "master"
|
|
|
|
rev = "e00b626e2b1c67347d789fb7f600281705c89381"
|
2024-03-09 20:49:51 +00:00
|
|
|
features = ["bundled"]
|
|
|
|
|
|
|
|
# used only by rusqlite
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.parking_lot]
|
2024-04-26 00:21:48 +00:00
|
|
|
version = "0.12.2"
|
2024-03-09 20:49:51 +00:00
|
|
|
|
|
|
|
# used only by rusqlite
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.thread_local]
|
2024-03-09 20:49:51 +00:00
|
|
|
version = "1.1.8"
|
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.tokio-metrics]
|
|
|
|
version = "0.3.1"
|
|
|
|
default-features = false
|
2024-03-09 20:49:51 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.console-subscriber]
|
|
|
|
version = "0.2"
|
2024-03-09 20:49:51 +00:00
|
|
|
|
2024-05-09 22:59:08 +00:00
|
|
|
[workspace.dependencies.nix]
|
|
|
|
version = "0.28.0"
|
|
|
|
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-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.
|
|
|
|
[patch.crates-io.tracing-subscriber]
|
2024-04-26 18:56:02 +00:00
|
|
|
git = "https://github.com/girlbossceo/tracing"
|
2024-04-25 16:07:59 +00:00
|
|
|
branch = "tracing-subscriber/env-filter-clone-0.1.x-backport"
|
|
|
|
[patch.crates-io.tracing]
|
2024-04-26 18:56:02 +00:00
|
|
|
git = "https://github.com/girlbossceo/tracing"
|
2024-04-25 16:07:59 +00:00
|
|
|
branch = "tracing-subscriber/env-filter-clone-0.1.x-backport"
|
|
|
|
[patch.crates-io.tracing-core]
|
2024-04-26 18:56:02 +00:00
|
|
|
git = "https://github.com/girlbossceo/tracing"
|
2024-04-25 16:07:59 +00:00
|
|
|
branch = "tracing-subscriber/env-filter-clone-0.1.x-backport"
|
|
|
|
|
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-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',
|
|
|
|
#]
|
|
|
|
|
|
|
|
[profile.test]
|
|
|
|
incremental = false
|
2024-01-13 19:29:18 +00:00
|
|
|
|
|
|
|
[workspace.lints.rust]
|
2024-01-15 03:39:08 +00:00
|
|
|
missing_abi = "warn"
|
|
|
|
noop_method_call = "warn"
|
|
|
|
pointer_structural_match = "warn"
|
2024-01-27 00:15:21 +00:00
|
|
|
explicit_outlives_requirements = "warn"
|
2024-01-15 03:39:08 +00:00
|
|
|
unused_extern_crates = "warn"
|
|
|
|
unused_import_braces = "warn"
|
2024-02-28 17:40:41 +00:00
|
|
|
unused_lifetimes = "warn"
|
2024-01-13 19:29:18 +00:00
|
|
|
unused_qualifications = "warn"
|
2024-03-02 22:17:27 +00:00
|
|
|
unused_macro_rules = "warn"
|
2024-01-17 01:26:42 +00:00
|
|
|
dead_code = "warn"
|
2024-03-02 22:17:27 +00:00
|
|
|
elided_lifetimes_in_paths = "warn"
|
|
|
|
macro_use_extern_crate = "warn"
|
|
|
|
single_use_lifetimes = "warn"
|
|
|
|
unsafe_op_in_unsafe_fn = "warn"
|
2024-04-23 03:48:57 +00:00
|
|
|
unreachable_pub = "warn"
|
2024-01-13 19:29:18 +00:00
|
|
|
|
2024-03-06 04:51:45 +00:00
|
|
|
# this seems to suggest broken code and is not working correctly
|
|
|
|
unused_braces = "allow"
|
|
|
|
|
2024-05-19 13:02:55 +00:00
|
|
|
# cfgs cannot be limited to features or cargo build --all-features panics for unsuspecting users.
|
|
|
|
# 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-03-23 18:38:15 +00:00
|
|
|
# some sadness
|
|
|
|
missing_docs = "allow"
|
|
|
|
|
2024-01-13 19:29:18 +00:00
|
|
|
[workspace.lints.clippy]
|
2024-03-23 02:44:31 +00:00
|
|
|
# pedantic = "warn"
|
2024-03-02 22:17:27 +00:00
|
|
|
|
2024-01-13 20:18:12 +00:00
|
|
|
suspicious = "warn" # assume deny in practice
|
2024-03-23 01:50:51 +00:00
|
|
|
perf = "warn" # assume deny in practice
|
2024-03-02 22:17:27 +00:00
|
|
|
|
2024-01-15 03:39:08 +00:00
|
|
|
redundant_clone = "warn"
|
|
|
|
cloned_instead_of_copied = "warn"
|
2024-01-13 19:29:18 +00:00
|
|
|
expl_impl_clone_on_copy = "warn"
|
2024-01-15 03:39:08 +00:00
|
|
|
unnecessary_cast = "warn"
|
|
|
|
cast_lossless = "warn"
|
|
|
|
ptr_as_ptr = "warn"
|
2024-01-17 01:26:42 +00:00
|
|
|
mut_mut = "warn"
|
2024-01-15 03:39:08 +00:00
|
|
|
char_lit_as_u8 = "warn"
|
2024-01-13 19:29:18 +00:00
|
|
|
dbg_macro = "warn"
|
2024-01-15 03:39:08 +00:00
|
|
|
empty_structs_with_brackets = "warn"
|
2024-01-15 06:48:40 +00:00
|
|
|
get_unwrap = "warn"
|
2024-01-15 03:39:08 +00:00
|
|
|
negative_feature_names = "warn"
|
|
|
|
pub_without_shorthand = "warn"
|
2024-01-13 19:29:18 +00:00
|
|
|
rc_buffer = "warn"
|
|
|
|
rc_mutex = "warn"
|
2024-01-15 03:39:08 +00:00
|
|
|
redundant_feature_names = "warn"
|
|
|
|
redundant_type_annotations = "warn"
|
|
|
|
rest_pat_in_fully_bound_structs = "warn"
|
|
|
|
str_to_string = "warn"
|
2024-01-15 06:48:40 +00:00
|
|
|
string_to_string = "warn"
|
2024-01-13 19:29:18 +00:00
|
|
|
tests_outside_test_module = "warn"
|
|
|
|
undocumented_unsafe_blocks = "warn"
|
2024-01-15 03:39:08 +00:00
|
|
|
unneeded_field_pattern = "warn"
|
|
|
|
unseparated_literal_suffix = "warn"
|
2024-01-15 06:48:40 +00:00
|
|
|
wildcard_dependencies = "warn"
|
2024-03-02 22:09:10 +00:00
|
|
|
or_fun_call = "warn"
|
2024-01-15 07:01:56 +00:00
|
|
|
unnecessary_lazy_evaluations = "warn"
|
2024-03-19 00:26:32 +00:00
|
|
|
assertions_on_result_states = "warn"
|
2024-03-02 22:17:27 +00:00
|
|
|
default_union_representation = "warn"
|
|
|
|
deref_by_slicing = "warn"
|
|
|
|
empty_drop = "warn"
|
|
|
|
exit = "warn"
|
|
|
|
filetype_is_file = "warn"
|
|
|
|
float_cmp_const = "warn"
|
2024-03-02 22:33:46 +00:00
|
|
|
format_push_string = "warn"
|
2024-03-02 22:17:27 +00:00
|
|
|
impl_trait_in_params = "warn"
|
|
|
|
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-03-03 01:55:02 +00:00
|
|
|
semicolon_outside_block = "warn"
|
|
|
|
fn_to_numeric_cast = "warn"
|
|
|
|
fn_to_numeric_cast_with_truncation = "warn"
|
2024-03-02 22:17:27 +00:00
|
|
|
string_lit_chars_any = "warn"
|
|
|
|
suspicious_xor_used_as_pow = "warn"
|
|
|
|
try_err = "warn"
|
|
|
|
unnecessary_safety_comment = "warn"
|
|
|
|
unnecessary_safety_doc = "warn"
|
|
|
|
unnecessary_self_imports = "warn"
|
|
|
|
verbose_file_reads = "warn"
|
2024-03-03 01:55:02 +00:00
|
|
|
cast_possible_wrap = "warn"
|
|
|
|
redundant_closure_for_method_calls = "warn"
|
2024-03-08 16:48:52 +00:00
|
|
|
large_futures = "warn"
|
2024-03-23 01:50:51 +00:00
|
|
|
semicolon_if_nothing_returned = "warn"
|
2024-03-23 01:55:05 +00:00
|
|
|
match_bool = "warn"
|
2024-03-23 02:44:31 +00:00
|
|
|
struct_excessive_bools = "warn"
|
|
|
|
must_use_candidate = "warn"
|
|
|
|
collapsible_else_if = "warn"
|
|
|
|
inconsistent_struct_constructor = "warn"
|
|
|
|
manual_string_new = "warn"
|
|
|
|
zero_sized_map_values = "warn"
|
|
|
|
unnecessary_box_returns = "warn"
|
|
|
|
map_unwrap_or = "warn"
|
|
|
|
implicit_clone = "warn"
|
|
|
|
match_wildcard_for_single_variants = "warn"
|
|
|
|
match_same_arms = "warn"
|
|
|
|
ignored_unit_patterns = "warn"
|
|
|
|
redundant_else = "warn"
|
2024-03-23 18:38:15 +00:00
|
|
|
explicit_into_iter_loop = "warn"
|
|
|
|
used_underscore_binding = "warn"
|
|
|
|
needless_pass_by_value = "warn"
|
|
|
|
too_many_lines = "warn"
|
|
|
|
let_underscore_untyped = "warn"
|
2024-03-28 00:06:56 +00:00
|
|
|
single_match = "warn"
|
|
|
|
single_match_else = "warn"
|
2024-03-29 20:24:46 +00:00
|
|
|
explicit_deref_methods = "warn"
|
|
|
|
explicit_iter_loop = "warn"
|
2024-04-02 03:30:57 +00:00
|
|
|
manual_let_else = "warn"
|
2024-04-03 18:09:44 +00:00
|
|
|
trivially_copy_pass_by_ref = "warn"
|
2024-04-05 03:21:04 +00:00
|
|
|
wildcard_imports = "warn"
|
|
|
|
checked_conversions = "warn"
|
2024-05-23 05:27:04 +00:00
|
|
|
let_underscore_must_use = "warn"
|
2024-05-04 01:42:47 +00:00
|
|
|
#integer_arithmetic = "warn"
|
2024-05-04 13:45:37 +00:00
|
|
|
#as_conversions = "warn"
|
2024-03-23 18:38:15 +00:00
|
|
|
|
|
|
|
# some sadness
|
|
|
|
missing_errors_doc = "allow"
|
|
|
|
missing_panics_doc = "allow"
|
|
|
|
module_name_repetitions = "allow"
|
|
|
|
if_not_else = "allow"
|
|
|
|
doc_markdown = "allow"
|
|
|
|
cast_possible_truncation = "allow"
|
|
|
|
cast_precision_loss = "allow"
|
|
|
|
cast_sign_loss = "allow"
|
|
|
|
same_name_method = "allow"
|
|
|
|
mod_module_files = "allow"
|
|
|
|
unwrap_used = "allow"
|
|
|
|
expect_used = "allow"
|
|
|
|
if_then_some_else_none = "allow"
|
2024-05-09 22:59:08 +00:00
|
|
|
let_underscore_future = "allow"
|
2024-03-23 18:38:15 +00:00
|
|
|
map_err_ignore = "allow"
|
|
|
|
missing_docs_in_private_items = "allow"
|
|
|
|
multiple_inherent_impl = "allow"
|
|
|
|
error_impl_error = "allow"
|
|
|
|
string_add = "allow"
|
|
|
|
string_slice = "allow"
|
|
|
|
ref_patterns = "allow"
|
2024-05-09 22:59:08 +00:00
|
|
|
unnecessary_wraps = "allow"
|