ci: Add the __ci feature

This commit is contained in:
Kévin Commaille
2022-02-11 22:17:49 +01:00
parent 4845594c05
commit acba6fbbc4
5 changed files with 18 additions and 9 deletions

View File

@@ -19,7 +19,7 @@ compat = []
unstable-exhaustive-types = []
# Private, only used in test / benchmarking code
__unstable-pre-spec = ["ruma-events/unstable-pre-spec"]
__ci = ["ruma-events/unstable-pre-spec"]
[dependencies]
itertools = "0.10.0"

View File

@@ -394,7 +394,7 @@ where
content,
redacts: None,
unsigned: btreemap! {},
#[cfg(not(feature = "__unstable-pre-spec"))]
#[cfg(not(feature = "__ci"))]
origin: "foo".into(),
auth_events,
prev_events,

View File

@@ -401,7 +401,7 @@ pub fn to_init_pdu_event(
content,
redacts: None,
unsigned: BTreeMap::new(),
#[cfg(not(feature = "__unstable-pre-spec"))]
#[cfg(not(feature = "__ci"))]
origin: "foo".into(),
auth_events: vec![],
prev_events: vec![],
@@ -441,7 +441,7 @@ where
content,
redacts: None,
unsigned: BTreeMap::new(),
#[cfg(not(feature = "__unstable-pre-spec"))]
#[cfg(not(feature = "__ci"))]
origin: "foo".into(),
auth_events,
prev_events,