ci: Test ruma-client feature client-api for MSRV

This commit is contained in:
Jonas Platte 2021-12-21 09:36:03 +01:00
parent 6b78988d39
commit 71e27b7880
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -44,7 +44,8 @@ impl CiTask {
fn build_msrv(&self) -> Result<()> { fn build_msrv(&self) -> Result<()> {
// Check all crates with all features except // Check all crates with all features except
// * ruma (would pull in ruma-signatures) // * ruma (would pull in ruma-signatures)
// * ruma-client (tested only with client-api feature due to optional HTTP client deps) // * ruma-client (tested only with client-api feature due to most / all optional HTTP client
// deps having less strict MSRV)
// * ruma-signatures (MSRV exception) // * ruma-signatures (MSRV exception)
// * xtask (no real reason to enforce an MSRV for it) // * xtask (no real reason to enforce an MSRV for it)
cmd!( cmd!(
@ -57,7 +58,7 @@ impl CiTask {
.run()?; .run()?;
// Check ruma-client crate with default features // Check ruma-client crate with default features
cmd!("rustup run {MSRV} cargo check -p ruma-client").run()?; cmd!("rustup run {MSRV} cargo check -p ruma-client --features client-api").run()?;
// Check ruma crate with default features // Check ruma crate with default features
cmd!("rustup run {MSRV} cargo check -p ruma").run().map_err(Into::into) cmd!("rustup run {MSRV} cargo check -p ruma").run().map_err(Into::into)