This avoids to duplicate the boilerplate between crates, especially when exposing the struct via uniffi.
16 lines
280 B
Rust
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);
|