ostree_ext/
objgv.rs

1/// Type representing an ostree commit object.
2macro_rules! gv_commit {
3    () => {
4        gvariant::gv!("(a{sv}aya(say)sstayay)")
5    };
6}
7pub(crate) use gv_commit;
8
9/// Type representing an ostree DIRTREE object.
10macro_rules! gv_dirtree {
11    () => {
12        gvariant::gv!("(a(say)a(sayay))")
13    };
14}
15pub(crate) use gv_dirtree;
16
17#[cfg(test)]
18mod tests {
19    use gvariant::Marker;
20    use gvariant::aligned_bytes::TryAsAligned;
21
22    #[test]
23    fn test_dirtree() {
24        // Just a compilation test
25        let data = b"".try_as_aligned().ok();
26        if let Some(data) = data {
27            let _t = gv_dirtree!().cast(data);
28        }
29    }
30}