Feature flags
Some features are disabled by default and may be enabled using --features
argument followed by comma-separated list of feature flag names. For example,
if you want to use voice and Telegram bridge (flags voice and bridge-tg)
build server using the following command:
clear ; cargo build --release --features voice,bridge-tg
| Flag | Default | Full | Explanation |
|---|---|---|---|
| default | yes | N/A | Alias: all default features |
| full | N/A | Alias: all stable features | |
| build-info | yes | yes | Store build info (see ./dcas -v) |
| cdn | yes | yes | Avatars and attachments upload and serving |
| client-assets | dev (1) | yes | Client assets fetching and serving |
| client-bundled | yes | Bundle client, downloading it if needed | |
| embeds | yes | yes | URL previews generator |
| gui-failsafe | yes | Shows warning if app is launched from GUI | |
| longpoll | yes | Long-poll server for mobile notifications | |
| main | yes | yes | http & gateway API |
| metrics | yes | Server metrics in Prometheus format | |
| mgmt-app | yes | Bot that provides server mgmt slash-cmds | |
| openssl-bundled | Bundle OpenSSL into main binary | ||
| voice | yes | Voice server | |
| botfather | yes | Bot that allow create & manage apps & bots | |
| bridge-tg | yes | Telegram <> DC bidirectional bridge | |
| typegen | TS type generation | ||
| tokio-console | Tokio-console support |
(1): This feature is automatically enabled in dev builds.