1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4 
5 //! Gecko's C++ bindings, along with some rust helpers to ease its use.
6 
7 // FIXME: We allow `improper_ctypes` (for now), because the lint doesn't allow
8 // foreign structs to have `PhantomData`. We should remove this once the lint
9 // ignores this case.
10 
11 #[allow(
12     dead_code,
13     improper_ctypes,
14     non_camel_case_types,
15     non_snake_case,
16     non_upper_case_globals,
17     missing_docs
18 )]
19 pub mod structs {
20     include!(concat!(env!("OUT_DIR"), "/gecko/structs.rs"));
21 }
22 
23 pub use self::structs as bindings;
24 
25 pub mod sugar;
26