mirror of
https://github.com/girlbossceo/ruwuma.git
synced 2025-04-29 14:59:52 -04:00
federation-api: Merge ruma-server-util into ruma-federation-api
XMatrix is available in the authentication module of ruma-federation-api.
This commit is contained in:
parent
86db89a3d5
commit
14645a9857
11 changed files with 34 additions and 19 deletions
|
@ -28,7 +28,6 @@ ruma-identifiers-validation = { version = "0.10.1", path = "crates/ruma-identifi
|
||||||
ruma-identity-service-api = { version = "0.11.0", path = "crates/ruma-identity-service-api" }
|
ruma-identity-service-api = { version = "0.11.0", path = "crates/ruma-identity-service-api" }
|
||||||
ruma-macros = { version = "=0.15.1", path = "crates/ruma-macros" }
|
ruma-macros = { version = "=0.15.1", path = "crates/ruma-macros" }
|
||||||
ruma-push-gateway-api = { version = "0.11.0", path = "crates/ruma-push-gateway-api" }
|
ruma-push-gateway-api = { version = "0.11.0", path = "crates/ruma-push-gateway-api" }
|
||||||
ruma-server-util = { version = "0.5.0", path = "crates/ruma-server-util" }
|
|
||||||
ruma-signatures = { version = "0.17.0", path = "crates/ruma-signatures" }
|
ruma-signatures = { version = "0.17.0", path = "crates/ruma-signatures" }
|
||||||
#ruma-state-res = { version = "0.11.0", path = "crates/ruma-state-res" }
|
#ruma-state-res = { version = "0.11.0", path = "crates/ruma-state-res" }
|
||||||
serde = { version = "1.0.164", features = ["derive"] }
|
serde = { version = "1.0.164", features = ["derive"] }
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 47 KiB |
|
@ -2,6 +2,32 @@
|
||||||
|
|
||||||
Breaking changes:
|
Breaking changes:
|
||||||
|
|
||||||
|
- Remove the `origin` field in `create_join_event::{v1/v2}::RoomState` due to a
|
||||||
|
clarification in the spec.
|
||||||
|
|
||||||
|
Improvements:
|
||||||
|
|
||||||
|
- The `unstable-unspecified` cargo feature was removed. The `pdus` field of
|
||||||
|
`send_transaction_message::v1::Request` is always serialized. To allow this
|
||||||
|
field to be missing during deserialization, use the `compat-optional-txn-pdus`
|
||||||
|
cargo feature.
|
||||||
|
- ruma-server-util was merged into this crate. `XMatrix` is available in the
|
||||||
|
`authentication` module.
|
||||||
|
|
||||||
|
# 0.11.0
|
||||||
|
|
||||||
|
Improvements:
|
||||||
|
|
||||||
|
- The `unstable-exhaustive-types` cargo feature was replaced by the
|
||||||
|
`ruma_unstable_exhaustive_types` compile-time `cfg` setting. Like all `cfg`
|
||||||
|
settings, it can be enabled at compile-time with the `RUSTFLAGS` environment
|
||||||
|
variable, or inside `.cargo/config.toml`. It can also be enabled by setting
|
||||||
|
the `RUMA_UNSTABLE_EXHAUSTIVE_TYPES` environment variable.
|
||||||
|
|
||||||
|
# 0.10.0
|
||||||
|
|
||||||
|
Breaking changes:
|
||||||
|
|
||||||
- Remove the unused `KeyObject` struct. It is actually supposed to be the same type
|
- Remove the unused `KeyObject` struct. It is actually supposed to be the same type
|
||||||
as `ruma_common::encryption::SignedKey`.
|
as `ruma_common::encryption::SignedKey`.
|
||||||
- Use `OwnedOneTimeKeyId` and `OneTimeKeyAlgorithm` instead of
|
- Use `OwnedOneTimeKeyId` and `OneTimeKeyAlgorithm` instead of
|
||||||
|
|
|
@ -31,7 +31,9 @@ unstable-unspecified = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bytes = { workspace = true, optional = true }
|
bytes = { workspace = true, optional = true }
|
||||||
|
headers = "0.4.0"
|
||||||
http = { workspace = true }
|
http = { workspace = true }
|
||||||
|
http-auth = { version = "0.1.9", default-features = false }
|
||||||
httparse = { version = "1.9.0", optional = true }
|
httparse = { version = "1.9.0", optional = true }
|
||||||
js_int = { workspace = true, features = ["serde"] }
|
js_int = { workspace = true, features = ["serde"] }
|
||||||
memchr = { version = "2.7.0", optional = true }
|
memchr = { version = "2.7.0", optional = true }
|
||||||
|
@ -41,6 +43,8 @@ ruma-common = { workspace = true, features = ["api"] }
|
||||||
ruma-events = { workspace = true }
|
ruma-events = { workspace = true }
|
||||||
serde = { workspace = true }
|
serde = { workspace = true }
|
||||||
serde_json = { workspace = true }
|
serde_json = { workspace = true }
|
||||||
|
thiserror = { workspace = true }
|
||||||
|
tracing = { workspace = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
assert_matches2 = { workspace = true }
|
assert_matches2 = { workspace = true }
|
||||||
|
|
|
@ -13,6 +13,7 @@ use std::fmt;
|
||||||
mod serde;
|
mod serde;
|
||||||
|
|
||||||
pub mod authenticated_media;
|
pub mod authenticated_media;
|
||||||
|
pub mod authentication;
|
||||||
pub mod authorization;
|
pub mod authorization;
|
||||||
pub mod backfill;
|
pub mod backfill;
|
||||||
pub mod device;
|
pub mod device;
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
# ruma-server-util
|
|
||||||
|
|
||||||
[](https://crates.io/crates/ruma-server-util)
|
|
||||||
[](https://docs.rs/ruma-server-util/)
|
|
||||||

|
|
||||||
|
|
||||||
**ruma-server-util** contains types and trait implementations useful for implementing a Matrix homeserver.
|
|
|
@ -1,6 +0,0 @@
|
||||||
#![doc(html_favicon_url = "https://ruma.dev/favicon.ico")]
|
|
||||||
#![doc(html_logo_url = "https://ruma.dev/images/logo.png")]
|
|
||||||
//! Collection of helpers for implementing Matrix homeservers using Ruma.
|
|
||||||
|
|
||||||
#![warn(missing_docs)]
|
|
||||||
pub mod authorization;
|
|
|
@ -5,6 +5,9 @@
|
||||||
- The `unstable-unspecified` cargo feature was removed.
|
- The `unstable-unspecified` cargo feature was removed.
|
||||||
- ruma-client is not reexported by ruma anymore, it lives as its own separate
|
- ruma-client is not reexported by ruma anymore, it lives as its own separate
|
||||||
crate. All the corresponding features were removed.
|
crate. All the corresponding features were removed.
|
||||||
|
- ruma-server-util was merged into ruma-federation-api. The corresponding
|
||||||
|
feature was removed. `XMatrix` is available in the
|
||||||
|
`api::federation::authentication` module.
|
||||||
- Bump MSRV to 1.81
|
- Bump MSRV to 1.81
|
||||||
|
|
||||||
# 0.12.1
|
# 0.12.1
|
||||||
|
|
|
@ -18,7 +18,6 @@ all-features = true
|
||||||
api = ["ruma-common/api"]
|
api = ["ruma-common/api"]
|
||||||
canonical-json = ["ruma-common/canonical-json", "ruma-events?/canonical-json"]
|
canonical-json = ["ruma-common/canonical-json", "ruma-events?/canonical-json"]
|
||||||
events = ["dep:ruma-events"]
|
events = ["dep:ruma-events"]
|
||||||
server-util = ["dep:ruma-server-util"]
|
|
||||||
signatures = ["dep:ruma-signatures", "canonical-json"]
|
signatures = ["dep:ruma-signatures", "canonical-json"]
|
||||||
#state-res = ["dep:ruma-state-res"]
|
#state-res = ["dep:ruma-state-res"]
|
||||||
|
|
||||||
|
@ -326,7 +325,6 @@ ruma-common = { workspace = true }
|
||||||
|
|
||||||
ruma-events = { workspace = true, optional = true }
|
ruma-events = { workspace = true, optional = true }
|
||||||
ruma-html = { workspace = true, optional = true }
|
ruma-html = { workspace = true, optional = true }
|
||||||
ruma-server-util = { workspace = true, optional = true }
|
|
||||||
ruma-signatures = { workspace = true, optional = true }
|
ruma-signatures = { workspace = true, optional = true }
|
||||||
#ruma-state-res = { workspace = true, optional = true }
|
#ruma-state-res = { workspace = true, optional = true }
|
||||||
|
|
||||||
|
|
|
@ -89,9 +89,6 @@ pub use ruma_html as html;
|
||||||
#[cfg(feature = "identifiers-validation")]
|
#[cfg(feature = "identifiers-validation")]
|
||||||
#[doc(inline)]
|
#[doc(inline)]
|
||||||
pub use ruma_identifiers_validation as identifiers_validation;
|
pub use ruma_identifiers_validation as identifiers_validation;
|
||||||
#[cfg(feature = "server-util")]
|
|
||||||
#[doc(inline)]
|
|
||||||
pub use ruma_server_util as server_util;
|
|
||||||
#[cfg(feature = "signatures")]
|
#[cfg(feature = "signatures")]
|
||||||
#[doc(inline)]
|
#[doc(inline)]
|
||||||
pub use ruma_signatures as signatures;
|
pub use ruma_signatures as signatures;
|
||||||
|
|
Loading…
Add table
Reference in a new issue