Skip to content

0.5.8

Choose a tag to compare

@dtolnay dtolnay released this 11 Nov 03:20
· 3141 commits to master since this release
0.5.8
5c830f0
  • Support #[namespace = "..."] attribute on extern blocks (#444)

    An item will inherit the namespace specified on its surrounding extern block if any, otherwise the namespace specified with the top level cxx::bridge attribute.

    #[cxx::bridge(namespace = "third_priority")]
    mod ffi {
        #[namespace = "second_priority"]
        extern "Rust" {
            fn f();
    
            #[namespace = "first_priority"]
            fn g();
        }
    
        extern "Rust" {
            fn h();
        }
    }

    The above would result in functions ::second_priority::f, ::first_priority::g, ::third_priority::h.