DCAS handbook

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
FlagDefaultFullExplanation
defaultyesN/AAlias: all default features
fullN/AAlias: all stable features
build-infoyesyesStore build info (see ./dcas -v)
cdnyesyesAvatars and attachments upload and serving
client-assetsdev (1)yesClient assets fetching and serving
client-bundledyesBundle client, downloading it if needed
embedsyesyesURL previews generator
gui-failsafeyesShows warning if app is launched from GUI
longpollyesLong-poll server for mobile notifications
mainyesyeshttp & gateway API
metricsyesServer metrics in Prometheus format
mgmt-appyesBot that provides server mgmt slash-cmds
openssl-bundledBundle OpenSSL into main binary
voiceyesVoice server
botfatheryesBot that allow create & manage apps & bots
bridge-tgyesTelegram <> DC bidirectional bridge
typegenTS type generation
tokio-consoleTokio-console support

(1): This feature is automatically enabled in dev builds.