tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

mod.rs (929B)


      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(unknown_lints)]
     12 #[allow(
     13    dead_code,
     14    improper_ctypes,
     15    non_camel_case_types,
     16    non_snake_case,
     17    non_upper_case_globals,
     18    missing_docs,
     19    unnecessary_transmutes
     20 )]
     21 // TODO: Remove this when updating bindgen, see
     22 // https://github.com/rust-lang/rust-bindgen/issues/1651
     23 #[cfg_attr(test, allow(deref_nullptr))]
     24 pub mod structs {
     25    include!(concat!(env!("OUT_DIR"), "/gecko/structs.rs"));
     26 }
     27 
     28 pub use self::structs as bindings;
     29 
     30 pub mod sugar;