ruma: Introduce full feature

This commit is contained in:
Jonas Platte 2021-04-11 13:26:44 +02:00
parent 563e891a4a
commit dd8493a0fc
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67
4 changed files with 19 additions and 4 deletions

View File

@ -23,9 +23,7 @@ tasks:
# crate).
pushd ruma
cargo build \
--features ruma-events,ruma-api,ruma-appservice-api,ruma-client-api,ruma-federation-api,ruma-identity-service-api,ruma-push-gateway-api \
--quiet
cargo build --features full --quiet
ruma_build_exit=$?
# ruma-client isn't re-exported by ruma right now, so it needs to be built

View File

@ -66,6 +66,21 @@ either = ["ruma-identifiers/either"]
rand = ["ruma-identifiers/rand"]
markdown = ["ruma-events/markdown"]
# Everything except compat and unstable features
full = [
"api",
"events",
"signatures",
"appservice-api",
"client-api",
"federation-api",
"identity-service-api",
"push-gateway-api",
"either",
"rand",
"markdown",
]
# Increase compatibility with other parts of the Matrix ecosystem, at the
# expense of weird behaviour where things deviate from the specification.
#

View File

@ -42,7 +42,7 @@ impl CiTask {
fn build_msrv(&self) -> Result<()> {
cmd_in!(
self.project_root.join("ruma"),
"rustup run {MSRV} cargo build --features ruma-events,ruma-api,ruma-appservice-api,ruma-client-api,ruma-federation-api,ruma-identity-service-api,ruma-push-gateway-api --quiet",
"rustup run {MSRV} cargo build --features full --quiet",
);
cmd_in!(self.project_root.join("ruma-client"), "rustup run {MSRV} cargo build --quiet");
cmd_in!(

View File

@ -1,3 +1,5 @@
#![allow(dead_code)] // silence never-used warning for from_vec in generated code
xflags::xflags! {
src "./src/flags.rs"