forked from mirrors/gecko-dev
- Added `--enable-uniffi-fixtures` flag. When set, we will compile in the UniFFI test fixtures into our shared Rust crate and eventually into `libxul`. - Vendoring in the Rust crates needed for `uniffi-bindgen-gecko-js` Differential Revision: https://phabricator.services.mozilla.com/D144467
15 lines
172 B
Rust
15 lines
172 B
Rust
mod a {
|
|
use extend::ext;
|
|
|
|
#[ext(pub)]
|
|
impl i32 {
|
|
fn foo() -> Foo { Foo }
|
|
}
|
|
|
|
pub struct Foo;
|
|
}
|
|
|
|
fn main() {
|
|
use a::i32Ext;
|
|
i32::foo();
|
|
}
|