identifiers: Move room versions 8, 9 out of unstable-spec
… since v1.2 is out!
This commit is contained in:
parent
40a96b93b1
commit
e9994b89c8
@ -22,7 +22,7 @@ markdown = ["pulldown-cmark"]
|
||||
unstable-exhaustive-types = []
|
||||
unstable-pdu = []
|
||||
unstable-pre-spec = ["unstable-spec"]
|
||||
unstable-spec = ["ruma-identifiers/unstable-spec"]
|
||||
unstable-spec = []
|
||||
|
||||
[dependencies]
|
||||
criterion = { version = "0.3.3", optional = true }
|
||||
|
@ -23,7 +23,6 @@ default = ["serde"]
|
||||
compat = ["ruma-identifiers-validation/compat"]
|
||||
rand = ["rand_crate", "uuid"]
|
||||
serde = ["ruma-serde", "serde1"]
|
||||
unstable-spec = []
|
||||
|
||||
[dependencies]
|
||||
either = { version = "1.6.1", optional = true }
|
||||
|
@ -46,11 +46,9 @@ pub enum RoomVersionId {
|
||||
V7,
|
||||
|
||||
/// A version 8 room.
|
||||
#[cfg(feature = "unstable-spec")]
|
||||
V8,
|
||||
|
||||
/// A version 9 room.
|
||||
#[cfg(feature = "unstable-spec")]
|
||||
V9,
|
||||
|
||||
#[doc(hidden)]
|
||||
@ -70,9 +68,7 @@ impl RoomVersionId {
|
||||
Self::V5 => "5",
|
||||
Self::V6 => "6",
|
||||
Self::V7 => "7",
|
||||
#[cfg(feature = "unstable-spec")]
|
||||
Self::V8 => "8",
|
||||
#[cfg(feature = "unstable-spec")]
|
||||
Self::V9 => "9",
|
||||
Self::_Custom(version) => version.as_str(),
|
||||
}
|
||||
@ -94,9 +90,7 @@ impl From<RoomVersionId> for String {
|
||||
RoomVersionId::V5 => "5".to_owned(),
|
||||
RoomVersionId::V6 => "6".to_owned(),
|
||||
RoomVersionId::V7 => "7".to_owned(),
|
||||
#[cfg(feature = "unstable-spec")]
|
||||
RoomVersionId::V8 => "8".to_owned(),
|
||||
#[cfg(feature = "unstable-spec")]
|
||||
RoomVersionId::V9 => "9".to_owned(),
|
||||
RoomVersionId::_Custom(version) => version.into(),
|
||||
}
|
||||
@ -164,9 +158,7 @@ where
|
||||
"5" => RoomVersionId::V5,
|
||||
"6" => RoomVersionId::V6,
|
||||
"7" => RoomVersionId::V7,
|
||||
#[cfg(feature = "unstable-spec")]
|
||||
"8" => RoomVersionId::V8,
|
||||
#[cfg(feature = "unstable-spec")]
|
||||
"9" => RoomVersionId::V9,
|
||||
custom => {
|
||||
ruma_identifiers_validation::room_version_id::validate(custom)?;
|
||||
|
@ -17,7 +17,7 @@ all-features = true
|
||||
[features]
|
||||
compat = ["tracing"]
|
||||
unstable-exhaustive-types = []
|
||||
unstable-pre-spec = ["ruma-identifiers/unstable-spec"]
|
||||
unstable-pre-spec = []
|
||||
|
||||
[dependencies]
|
||||
base64 = "0.13.0"
|
||||
|
@ -17,7 +17,7 @@ all-features = true
|
||||
[features]
|
||||
compat = []
|
||||
unstable-exhaustive-types = []
|
||||
unstable-spec = ["ruma-events/unstable-spec", "ruma-identifiers/unstable-spec"]
|
||||
unstable-spec = ["ruma-events/unstable-spec"]
|
||||
|
||||
# Private, only used in test / benchmarking code
|
||||
__unstable-pre-spec = ["ruma-events/unstable-pre-spec", "unstable-spec"]
|
||||
|
@ -122,7 +122,6 @@ unstable-pre-spec = [
|
||||
unstable-spec = [
|
||||
"ruma-client-api/unstable-spec",
|
||||
"ruma-events/unstable-spec",
|
||||
"ruma-identifiers/unstable-spec",
|
||||
]
|
||||
|
||||
[dependencies]
|
||||
|
Loading…
x
Reference in New Issue
Block a user