mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
WorkerId
changed to type UUID.
This commit is contained in:
parent
5c56e661ca
commit
d5475fbc9f
9 changed files with 19 additions and 18 deletions
|
@ -47,3 +47,4 @@ url = { version = "2.0", optional = true }
|
|||
webrender_api = { git = "https://github.com/servo/webrender", optional = true }
|
||||
xml5ever = { version = "0.16", optional = true }
|
||||
void = "1.0.2"
|
||||
uuid = {version = "0.8", features = ["v4", "serde"]}
|
||||
|
|
|
@ -75,6 +75,7 @@ extern crate thin_slice;
|
|||
extern crate time;
|
||||
#[cfg(feature = "url")]
|
||||
extern crate url;
|
||||
extern crate uuid;
|
||||
extern crate void;
|
||||
#[cfg(feature = "webrender_api")]
|
||||
extern crate webrender_api;
|
||||
|
@ -90,6 +91,7 @@ use std::mem::size_of;
|
|||
use std::ops::Range;
|
||||
use std::ops::{Deref, DerefMut};
|
||||
use std::os::raw::c_void;
|
||||
use uuid::Uuid;
|
||||
use void::Void;
|
||||
|
||||
/// A C function that takes a pointer to a heap allocation and returns its size.
|
||||
|
@ -820,7 +822,7 @@ macro_rules! malloc_size_of_is_0(
|
|||
);
|
||||
);
|
||||
|
||||
malloc_size_of_is_0!(bool, char, str);
|
||||
malloc_size_of_is_0!(bool, char, str, Uuid);
|
||||
malloc_size_of_is_0!(u8, u16, u32, u64, u128, usize);
|
||||
malloc_size_of_is_0!(i8, i16, i32, i64, i128, isize);
|
||||
malloc_size_of_is_0!(f32, f64);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue