docs: configure docs.rs build to contain more features

This commit is contained in:
Benjamin Kampmann
2022-05-27 10:44:16 +02:00
parent e5390e18de
commit f9b4fd2d12
3 changed files with 11 additions and 0 deletions

View File

@@ -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"]

View File

@@ -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"]

View File

@@ -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"]