2026-03-29 12:25:42 -04:00
|
|
|
use std::collections::BTreeMap;
|
|
|
|
|
|
2026-11-13 18:13:16 +00:00
|
|
|
use crate::config::{Experiments, experiments::ToggledExperiment};
|
|
|
|
|
|
2026-04-13 17:31:52 -04:00
|
|
|
#[must_use]
|
2026-03-29 12:25:42 -04:00
|
|
|
pub fn versions() -> Vec<String> {
|
2026-04-07 14:40:10 +01:00
|
|
|
vec![
|
|
|
|
|
"r0.0.1".to_owned(),
|
|
|
|
|
"r0.1.0".to_owned(),
|
|
|
|
|
"r0.2.0".to_owned(),
|
|
|
|
|
"r0.3.0".to_owned(),
|
|
|
|
|
"r0.4.0".to_owned(),
|
|
|
|
|
"r0.5.0".to_owned(),
|
|
|
|
|
"r0.6.0".to_owned(),
|
|
|
|
|
"r0.6.1".to_owned(),
|
|
|
|
|
"v1.1".to_owned(),
|
|
|
|
|
"v1.2".to_owned(),
|
|
|
|
|
"v1.3".to_owned(),
|
|
|
|
|
"v1.4".to_owned(),
|
|
|
|
|
"v1.5".to_owned(),
|
|
|
|
|
"v1.8".to_owned(),
|
|
|
|
|
"v1.11".to_owned(),
|
|
|
|
|
"v1.12".to_owned(),
|
|
|
|
|
"v1.13".to_owned(),
|
|
|
|
|
"v1.14".to_owned(),
|
2026-05-21 11:29:09 -04:00
|
|
|
"v1.15".to_owned(),
|
2026-05-20 14:55:47 -04:00
|
|
|
"v1.16".to_owned(),
|
2026-06-29 10:08:30 -04:00
|
|
|
"v1.17".to_owned(),
|
2026-06-24 20:21:27 +01:00
|
|
|
"v1.18".to_owned(),
|
2026-11-13 18:13:16 +00:00
|
|
|
"v1.19".to_owned(),
|
2026-04-07 14:40:10 +01:00
|
|
|
]
|
2026-03-29 12:25:42 -04:00
|
|
|
}
|
|
|
|
|
|
2026-04-13 17:31:52 -04:00
|
|
|
#[must_use]
|
2026-11-13 18:13:16 +00:00
|
|
|
pub fn unstable_features(experiments: &Experiments) -> BTreeMap<String, bool> {
|
2026-04-07 14:40:10 +01:00
|
|
|
BTreeMap::from_iter([
|
2026-08-25 20:30:21 +02:00
|
|
|
// MatrixRTC (https://github.com/matrix-org/matrix-spec-proposals/pull/4143)
|
2026-11-17 09:07:42 +00:00
|
|
|
// Expected for spec v1.20/v2.0
|
2026-08-25 20:30:21 +02:00
|
|
|
("org.matrix.msc4143".to_owned(), true),
|
2026-06-27 18:28:19 +01:00
|
|
|
// Simplified Sliding sync (https://github.com/matrix-org/matrix-spec-proposals/pull/4186)
|
2026-11-17 09:07:42 +00:00
|
|
|
// Expected for spec v1.20/v2.0
|
2026-06-27 18:28:19 +01:00
|
|
|
("org.matrix.simplified_msc3575".to_owned(), true),
|
2026-11-13 18:13:16 +00:00
|
|
|
("org.matrix.msc4155".to_owned(), experiments.msc4155.is_enabled()),
|
2026-06-27 18:28:19 +01:00
|
|
|
// profile change propagation (https://github.com/matrix-org/matrix-spec-proposals/pull/4466)
|
|
|
|
|
("computer.gingershaped.msc4466".to_owned(), true),
|
2026-11-13 18:13:16 +00:00
|
|
|
("org.matrix.msc4174".to_owned(), experiments.msc4174.is_enabled()),
|
|
|
|
|
("uk.timedout.msc4494".to_owned(), experiments.msc4494.is_enabled()),
|
|
|
|
|
("org.continuwuity.msc4484.unstable".to_owned(), experiments.msc4484.is_enabled()),
|
|
|
|
|
("org.continuwuity.msc4560".to_owned(), experiments.msc4560.is_enabled()),
|
|
|
|
|
("fi.mau.msc2815".to_owned(), experiments.msc2815.is_enabled()),
|
2026-11-17 09:07:42 +00:00
|
|
|
// Sticky events (https://github.com/matrix-org/matrix-spec-proposals/pull/4354)
|
|
|
|
|
// Proposal merged, expected for spec v1.20/v2.0
|
|
|
|
|
("org.matrix.msc4354".to_owned(), true),
|
2026-04-07 14:40:10 +01:00
|
|
|
])
|
|
|
|
|
}
|