cxx 0.5.10

Safe interop between Rust and C++
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[cxx::bridge]
mod ffi {
    enum Good1 {
        A = 0xFFFF_FFFF_FFFF_FFFF,
    }
    enum Good2 {
        B = 0xFFFF_FFFF_FFFF_FFFF,
        C = 2020,
    }
    enum Bad {
        D = 0xFFFF_FFFF_FFFF_FFFE,
        E,
        F,
    }
}

fn main() {}