mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Bindgenup.
MozReview-Commit-ID: 7s0GsWaEjwe Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This commit is contained in:
parent
b5e108598b
commit
14692bd26e
5 changed files with 142 additions and 46 deletions
|
@ -14,7 +14,7 @@ doctest = false
|
|||
|
||||
[features]
|
||||
gecko = ["nsstring_vendor", "num_cpus", "rayon/unstable"]
|
||||
bindgen = ["libbindgen", "regex"]
|
||||
use_bindgen = ["bindgen", "regex"]
|
||||
servo = ["serde/unstable", "serde", "serde_derive", "heapsize_derive",
|
||||
"style_traits/servo", "app_units/plugins", "servo_atoms", "html5ever-atoms",
|
||||
"cssparser/heap_size", "cssparser/serde-serialization",
|
||||
|
@ -66,7 +66,7 @@ kernel32-sys = "0.2"
|
|||
|
||||
[build-dependencies]
|
||||
lazy_static = "0.2"
|
||||
libbindgen = {version = "0.1.5", optional = true}
|
||||
bindgen = { version = "0.20.1", optional = true }
|
||||
phf_codegen = "0.7.20"
|
||||
regex = {version = "0.2", optional = true}
|
||||
walkdir = "0.1"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#[macro_use]
|
||||
extern crate lazy_static;
|
||||
#[cfg(feature = "bindgen")]
|
||||
extern crate libbindgen;
|
||||
extern crate bindgen;
|
||||
#[cfg(feature = "bindgen")]
|
||||
extern crate regex;
|
||||
extern crate walkdir;
|
||||
|
|
|
@ -39,7 +39,7 @@ mod common {
|
|||
|
||||
#[cfg(feature = "bindgen")]
|
||||
mod bindings {
|
||||
use libbindgen::{Builder, CodegenConfig};
|
||||
use bindgen::{Builder, CodegenConfig};
|
||||
use regex::Regex;
|
||||
use std::cmp;
|
||||
use std::collections::HashSet;
|
||||
|
@ -267,9 +267,6 @@ mod bindings {
|
|||
"mozilla::HalfCorner",
|
||||
"mozilla::PropertyStyleAnimationValuePair",
|
||||
"mozilla::TraversalRootBehavior",
|
||||
"mozilla::DisplayItemClip", // Needed because bindgen generates
|
||||
// specialization tests for this even
|
||||
// though it shouldn't.
|
||||
"mozilla::StyleShapeRadius",
|
||||
".*ThreadSafe.*Holder",
|
||||
"AnonymousContent",
|
||||
|
@ -299,13 +296,6 @@ mod bindings {
|
|||
"nsCSSKeyword",
|
||||
"nsCSSPropertyID",
|
||||
"nsCSSProps",
|
||||
|
||||
// FIXME(emilio): These three can go away once
|
||||
// https://github.com/servo/rust-bindgen/pull/397 has landed.
|
||||
"nsStyleStructID",
|
||||
"nsStyleAnimType",
|
||||
"UseCounter",
|
||||
|
||||
"nsCSSRect",
|
||||
"nsCSSRect_heap",
|
||||
"nsCSSShadowArray",
|
||||
|
@ -371,14 +361,11 @@ mod bindings {
|
|||
"nsStyleXUL",
|
||||
"nsTArray",
|
||||
"nsTArrayHeader",
|
||||
"pair",
|
||||
"Position",
|
||||
"Runnable",
|
||||
"ServoAttrSnapshot",
|
||||
"ServoElementSnapshot",
|
||||
"SheetParsingMode",
|
||||
"Side", // must be a rust-bindgen bug that requires both of these
|
||||
"mozilla::Side",
|
||||
"StaticRefPtr",
|
||||
"StyleAnimation",
|
||||
"StyleBasicShape",
|
||||
|
@ -388,15 +375,18 @@ mod bindings {
|
|||
"StyleTransition",
|
||||
"mozilla::UniquePtr",
|
||||
"mozilla::DefaultDelete",
|
||||
|
||||
// bindgen can't find these
|
||||
"mozilla::binding_danger::TErrorResult",
|
||||
"mozilla::Side",
|
||||
"mozilla::binding_danger::AssertAndSuppressCleanupPolicy",
|
||||
];
|
||||
let opaque_types = [
|
||||
"std::pair__PCCP",
|
||||
"std::namespace::atomic___base", "std::atomic__My_base",
|
||||
"std::atomic___base",
|
||||
"mozilla::gfx::.*",
|
||||
"FallibleTArray",
|
||||
"mozilla::dom::Sequence",
|
||||
"mozilla::dom::Optional",
|
||||
"mozilla::dom::Nullable",
|
||||
"nsAString_internal_char_traits",
|
||||
"nsAString_internal_incompatible_char_type",
|
||||
"nsACString_internal_char_traits",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue