mirror of
https://github.com/servo/servo
synced 2026-04-28 18:37:39 +02:00
21 lines
814 B
Rust
21 lines
814 B
Rust
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#![allow(unused)]
|
|
|
|
use self::glue::*;
|
|
use style::gecko_bindings::bindings;
|
|
use style::gecko_properties::*;
|
|
|
|
include!(concat!(env!("OUT_DIR"), "/check_bindings.rs"));
|
|
|
|
#[allow(non_snake_case, unused_unsafe, private_no_mangle_fns)]
|
|
mod glue {
|
|
// this module pretends to be glue.rs, with the safe functions swapped for unsafe ones. This is
|
|
// a hack to compensate for the fact that `fn` types cannot coerce to `unsafe fn` types. The
|
|
// imports are populated with the same things so the type assertion should be equivalent
|
|
use geckoservo::*;
|
|
include!(concat!(env!("OUT_DIR"), "/glue.rs"));
|
|
}
|