Vendor m-c's nsstring in-tree

It is called nsstring_vendor since libgkrust already depends on nsstring, and
we can't have two crates with the same name in-tree. We can't directly depend
on the in-tree one since this will stop independent `./mach build-geckolib` builds from working.

MozReview-Commit-ID: CR4tHgzXWFZ
This commit is contained in:
Manish Goregaokar 2016-10-11 12:32:55 +05:30
parent 494a89c27f
commit 398a6343b3
9 changed files with 872 additions and 51 deletions

View file

@ -1,6 +1,7 @@
/* automatically generated by rust-bindgen */
pub enum OpaqueStyleData {}
pub use nsstring::nsStringRepr as nsString;
pub type ServoUnsafeCell<T> = ::std::cell::UnsafeCell<T>;
pub type ServoCell<T> = ::std::cell::Cell<T>;
pub type ServoNodeData = OpaqueStyleData;
@ -1780,31 +1781,6 @@ impl Clone for nsSubstringTuple {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug)]
pub struct nsString {
pub _base: nsAString_internal,
}
pub type nsString_self_type = nsString;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct nsString_Segment {
pub mBegin: u32,
pub mLength: u32,
}
#[test]
fn bindgen_test_layout_nsString_Segment() {
assert_eq!(::std::mem::size_of::<nsString_Segment>() , 8usize);
assert_eq!(::std::mem::align_of::<nsString_Segment>() , 4usize);
}
impl Clone for nsString_Segment {
fn clone(&self) -> Self { *self }
}
#[test]
fn bindgen_test_layout_nsString() {
assert_eq!(::std::mem::size_of::<nsString>() , 16usize);
assert_eq!(::std::mem::align_of::<nsString>() , 8usize);
}
#[repr(C)]
pub struct bindgen_vtable__bindgen_id_65148 {
}
#[repr(C)]