[package] # TODO: when can we rename to conduwuit? name = "conduit" default-run = "conduit" description.workspace = true license.workspace = true authors.workspace = true homepage.workspace = true repository.workspace = true readme.workspace = true version.workspace = true edition.workspace = true rust-version.workspace = true metadata.crane.workspace = true [package.metadata.deb] name = "conduwuit" maintainer = "strawberry " copyright = "2024, strawberry " license-file = ["../../LICENSE", "3"] depends = "$auto, ca-certificates" extended-description = """\ a cool hard fork of Conduit, a Matrix homeserver written in Rust""" section = "net" priority = "optional" conf-files = ["/etc/conduwuit/conduwuit.toml"] maintainer-scripts = "../../debian/" systemd-units = { unit-name = "conduwuit", start = false } assets = [ ["../../debian/README.md", "usr/share/doc/conduwuit/README.Debian", "644"], ["../../README.md", "usr/share/doc/conduwuit/", "644"], ["../../target/release/conduwuit", "usr/sbin/conduwuit", "755"], ["../../conduwuit-example.toml", "etc/conduwuit/conduwuit.toml", "640"], ] [features] default = [ "sentry_telemetry", "release_max_log_level", ] # increases performance, reduces build times, and reduces binary size by not compiling or # genreating code for log level filters that users will generally not use (debug and trace) release_max_log_level = [ "tracing/max_level_trace", "tracing/release_max_level_info", "log/max_level_trace", "log/release_max_level_info", ] sentry_telemetry = [ "dep:sentry", "dep:sentry-tracing", "dep:sentry-tower", ] # enable the tokio_console server ncompatible with release_max_log_level tokio_console = [ "dep:console-subscriber", "tokio/tracing", ] perf_measurements = [ "dep:opentelemetry", "dep:tracing-flame", "dep:tracing-opentelemetry", "dep:opentelemetry_sdk", "dep:opentelemetry-jaeger", ] jemalloc = [ "dep:tikv-jemallocator", ] panic_trap = [] mods = [] [dependencies] conduit-router.workspace = true conduit-admin.workspace = true conduit-api.workspace = true conduit-service.workspace = true conduit-database.workspace = true conduit-core.workspace = true tokio.workspace = true log.workspace = true tracing.workspace = true tracing-subscriber.workspace = true clap.workspace = true num_cpus.workspace = true opentelemetry.workspace = true opentelemetry.optional = true tracing-flame.workspace = true tracing-flame.optional = true tracing-opentelemetry.workspace = true tracing-opentelemetry.optional = true opentelemetry_sdk.workspace = true opentelemetry_sdk.optional = true opentelemetry-jaeger.workspace = true opentelemetry-jaeger.optional = true sentry.workspace = true sentry.optional = true sentry-tracing.workspace = true sentry-tracing.optional = true sentry-tower.workspace = true sentry-tower.optional = true tikv-jemallocator.workspace = true tikv-jemallocator.optional = true tokio-metrics.workspace = true tokio-metrics.optional = true console-subscriber.workspace = true console-subscriber.optional = true [target.'cfg(all(not(target_env = "msvc"), target_os = "linux"))'.dependencies] hardened_malloc-rs.workspace = true hardened_malloc-rs.optional = true [lints] workspace = true [[bin]] name = "conduit" path = "main.rs"