1
0
Fork 0
ruma/crates/ruma-events/tests/it/ui/08-enum-invalid-path.rs
Kévin Commaille 02d6be8ec5 common: Add hidden macro to generate PrivOwnedStr structs
This avoids to duplicate the boilerplate between crates, especially when
exposing the struct via uniffi.
2026-02-25 15:00:29 +01:00

16 lines
280 B
Rust

#![allow(unexpected_cfgs)]
#[cfg(feature = "unstable-uniffi")]
uniffi::setup_scaffolding!();
use ruma_macros::event_enum;
event_enum! {
enum RoomAccountData {
"m.not.a.path" => ruma_events::not::a::path,
}
}
fn main() {}
ruma_common::priv_owned_str!(uniffi);