From f9b4fd2d12a0e3776f754a3313ecda2baf907c19 Mon Sep 17 00:00:00 2001 From: Benjamin Kampmann Date: Fri, 27 May 2022 10:44:16 +0200 Subject: [PATCH] docs: configure docs.rs build to contain more features --- crates/matrix-sdk-indexeddb/Cargo.toml | 4 ++++ crates/matrix-sdk-sled/Cargo.toml | 4 ++++ crates/matrix-sdk-store-encryption/Cargo.toml | 3 +++ 3 files changed, 11 insertions(+) diff --git a/crates/matrix-sdk-indexeddb/Cargo.toml b/crates/matrix-sdk-indexeddb/Cargo.toml index 15e19d61d..6cf2bf7a3 100644 --- a/crates/matrix-sdk-indexeddb/Cargo.toml +++ b/crates/matrix-sdk-indexeddb/Cargo.toml @@ -8,6 +8,10 @@ edition = "2021" rust-version = "1.60" readme = "README.md" +[package.metadata.docs.rs] +all-features = true +rustdoc-args = ["--cfg", "docsrs"] + [features] default = ["e2e-encryption"] e2e-encryption = ["matrix-sdk-base/e2e-encryption", "matrix-sdk-crypto"] diff --git a/crates/matrix-sdk-sled/Cargo.toml b/crates/matrix-sdk-sled/Cargo.toml index fec6b2c3e..787935531 100644 --- a/crates/matrix-sdk-sled/Cargo.toml +++ b/crates/matrix-sdk-sled/Cargo.toml @@ -9,6 +9,10 @@ license = "Apache-2.0" rust-version = "1.60" readme = "README.md" +[package.metadata.docs.rs] +all-features = true +rustdoc-args = ["--cfg", "docsrs"] + [features] default = ["state-store"] diff --git a/crates/matrix-sdk-store-encryption/Cargo.toml b/crates/matrix-sdk-store-encryption/Cargo.toml index 370c88eff..935999454 100644 --- a/crates/matrix-sdk-store-encryption/Cargo.toml +++ b/crates/matrix-sdk-store-encryption/Cargo.toml @@ -7,6 +7,9 @@ repository = "https://github.com/matrix-org/matrix-rust-sdk" license = "Apache-2.0" rust-version = "1.60" +[package.metadata.docs.rs] +rustdoc-args = ["--cfg", "docsrs"] + [features] js = ["getrandom/js"]