diff --git a/src/lib.rs b/src/lib.rs index ab8329b8..ccdc968e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -10,8 +10,8 @@ use ruma_identifiers::{EventId, RoomId, UserId}; use serde::{Deserialize, Serialize}; use serde_json::Value as JsonValue; -mod unversioned; -mod v1; +pub mod unversioned; +pub mod v1; /// A 'persistent data unit' (event) for room versions 3 and beyond. #[derive(Deserialize, Serialize)] diff --git a/src/unversioned.rs b/src/unversioned.rs index 13df6416..bc11c34a 100644 --- a/src/unversioned.rs +++ b/src/unversioned.rs @@ -1 +1,3 @@ +//! Endpoints that cannot change with new versions of the Matrix specification. + mod discover_homeserver; diff --git a/src/v1.rs b/src/v1.rs index 3f346b1e..d0381b80 100644 --- a/src/v1.rs +++ b/src/v1.rs @@ -1 +1,3 @@ +//! Endpoints for the r0.1.x versions of the federation API specification. + mod get_server_version;