Skip to main content

tuwunel_core/
matrix.rs

1//! Matrix protocol limits used by core configuration.
2//!
3//! Defining them in core lets configuration read them without depending on
4//! the Matrix crate.
5
6/// The [maximum length allowed] for the `prev_events` array of a PDU.
7///
8/// [maximum length allowed]: <https://spec.matrix.org/latest/rooms/v1/#event-format>
9pub const MAX_PREV_EVENTS: usize = 20;