mirror of
https://github.com/girlbossceo/conduwuit.git
synced 2024-11-30 22:43:10 +00:00
f40a3ea4a6
Signed-off-by: strawberry <strawberry@puppygock.gay>
23 lines
839 B
Markdown
23 lines
839 B
Markdown
# Development
|
|
|
|
Information about developing the project. If you are only interested in using
|
|
it, you can safely ignore this section. If you plan on contributing, see the
|
|
[contributor's guide](contributing.md).
|
|
|
|
## Debugging with `tokio-console`
|
|
|
|
[`tokio-console`][1] can be a useful tool for debugging and profiling. To make
|
|
a `tokio-console`-enabled build of conduwuit, enable the `tokio_console` feature,
|
|
disable the default `release_max_log_level` feature, and set the
|
|
`--cfg tokio_unstable` flag to enable experimental tokio APIs. A build might
|
|
look like this:
|
|
|
|
```bash
|
|
RUSTFLAGS="--cfg tokio_unstable" cargo build \
|
|
--release \
|
|
--no-default-features \
|
|
--features=rocksdb,systemd,element_hacks,gzip_compression,brotli_compression,zstd_compression,tokio_console
|
|
```
|
|
|
|
[1]: https://docs.rs/tokio-console/latest/tokio_console/
|