ruma: Show all features on docs.rs
This commit is contained in:
parent
675cd7c6a4
commit
daf2d463ba
@ -14,6 +14,10 @@ repository = "https://github.com/ruma/ruma"
|
|||||||
version = "0.17.0-alpha.2"
|
version = "0.17.0-alpha.2"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
|
[package.metadata.docs.rs]
|
||||||
|
all-features = true
|
||||||
|
rustdoc-args = ["--cfg", "docsrs"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
http = "0.2.2"
|
http = "0.2.2"
|
||||||
percent-encoding = "2.1.0"
|
percent-encoding = "2.1.0"
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
//! * `appservice-api` for the application service API
|
//! * `appservice-api` for the application service API
|
||||||
|
|
||||||
#![deny(missing_docs)]
|
#![deny(missing_docs)]
|
||||||
|
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||||
|
|
||||||
#[doc(no_inline)]
|
#[doc(no_inline)]
|
||||||
pub use assign::assign;
|
pub use assign::assign;
|
||||||
@ -35,30 +36,38 @@ pub use ruma_identifiers::{
|
|||||||
};
|
};
|
||||||
|
|
||||||
#[cfg(feature = "events")]
|
#[cfg(feature = "events")]
|
||||||
|
#[cfg_attr(docsrs, doc(cfg(feature = "events")))]
|
||||||
#[doc(inline)]
|
#[doc(inline)]
|
||||||
pub use ruma_events as events;
|
pub use ruma_events as events;
|
||||||
#[cfg(feature = "signatures")]
|
#[cfg(feature = "signatures")]
|
||||||
|
#[cfg_attr(docsrs, doc(cfg(feature = "signatures")))]
|
||||||
#[doc(inline)]
|
#[doc(inline)]
|
||||||
pub use ruma_signatures as signatures;
|
pub use ruma_signatures as signatures;
|
||||||
|
|
||||||
/// Rust types for various Matrix APIs requests and responses and abstractions for them.
|
/// Rust types for various Matrix APIs requests and responses and abstractions for them.
|
||||||
#[cfg(feature = "api")]
|
#[cfg(feature = "api")]
|
||||||
|
#[cfg_attr(docsrs, doc(cfg(feature = "api")))]
|
||||||
pub mod api {
|
pub mod api {
|
||||||
pub use ruma_api::*;
|
pub use ruma_api::*;
|
||||||
|
|
||||||
#[cfg(feature = "appservice-api")]
|
#[cfg(feature = "appservice-api")]
|
||||||
|
#[cfg_attr(docsrs, doc(cfg(feature = "appservice-api")))]
|
||||||
#[doc(inline)]
|
#[doc(inline)]
|
||||||
pub use ruma_appservice_api as appservice;
|
pub use ruma_appservice_api as appservice;
|
||||||
#[cfg(feature = "client-api")]
|
#[cfg(feature = "client-api")]
|
||||||
|
#[cfg_attr(docsrs, doc(cfg(feature = "client-api")))]
|
||||||
#[doc(inline)]
|
#[doc(inline)]
|
||||||
pub use ruma_client_api as client;
|
pub use ruma_client_api as client;
|
||||||
#[cfg(feature = "federation-api")]
|
#[cfg(feature = "federation-api")]
|
||||||
|
#[cfg_attr(docsrs, doc(cfg(feature = "federation-api")))]
|
||||||
#[doc(inline)]
|
#[doc(inline)]
|
||||||
pub use ruma_federation_api as federation;
|
pub use ruma_federation_api as federation;
|
||||||
#[cfg(feature = "identity-service-api")]
|
#[cfg(feature = "identity-service-api")]
|
||||||
|
#[cfg_attr(docsrs, doc(cfg(feature = "identity-service-api")))]
|
||||||
#[doc(inline)]
|
#[doc(inline)]
|
||||||
pub use ruma_identity_service_api as identity_service;
|
pub use ruma_identity_service_api as identity_service;
|
||||||
#[cfg(feature = "push-gateway-api")]
|
#[cfg(feature = "push-gateway-api")]
|
||||||
|
#[cfg_attr(docsrs, doc(cfg(feature = "push-gateway-api")))]
|
||||||
#[doc(inline)]
|
#[doc(inline)]
|
||||||
pub use ruma_push_gateway_api as push_gateway;
|
pub use ruma_push_gateway_api as push_gateway;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user