2024-04-21 22:28:35 +00:00
|
|
|
# Development
|
|
|
|
|
|
|
|
Information about developing the project. If you are only interested in using
|
2024-05-04 17:24:25 +00:00
|
|
|
it, you can safely ignore this section. If you plan on contributing, see the
|
|
|
|
[contributor's guide](contributing.md).
|
2024-04-25 16:07:59 +00:00
|
|
|
|
|
|
|
## Debugging with `tokio-console`
|
|
|
|
|
|
|
|
[`tokio-console`][1] can be a useful tool for debugging and profiling. To make
|
2024-06-17 01:30:51 +00:00
|
|
|
a `tokio-console`-enabled build of conduwuit, enable the `tokio_console` feature,
|
2024-04-25 16:07:59 +00:00
|
|
|
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 \
|
2024-06-17 01:30:51 +00:00
|
|
|
--features=rocksdb,systemd,element_hacks,gzip_compression,brotli_compression,zstd_compression,tokio_console
|
2024-04-25 16:07:59 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
[1]: https://docs.rs/tokio-console/latest/tokio_console/
|