Skip to content

Commit

Permalink
Add heapsize support.
Browse files Browse the repository at this point in the history
  • Loading branch information
notriddle committed Aug 10, 2015
1 parent 53e7b7d commit eeb917e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ euclid = "0.1"
serde = "*"
serde_macros = "*"

[dependencies.heapsize]
git = "https://github.com/servo/heapsize"

[dependencies.heapsize_plugin]
git = "https://github.com/servo/heapsize"

[dependencies.skia]
git = "https://github.com/servo/skia"

Expand Down
2 changes: 1 addition & 1 deletion src/azure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ pub static AZ_ATT_TRANSFER_DISABLE_B: u32 = 2;
pub static AZ_ATT_TRANSFER_DISABLE_A: u32 = 3;

#[repr(C)]
#[derive(Copy, Clone, Deserialize, Serialize)]
#[derive(Copy, Clone, Deserialize, Serialize, HeapSizeOf)]
pub struct struct__AzColor {
pub r: AzFloat,
pub g: AzFloat,
Expand Down
2 changes: 1 addition & 1 deletion src/azure_hl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ impl GradientStops {
}

#[repr(C)]
#[derive(Clone, Deserialize, Serialize)]
#[derive(Clone, Deserialize, Serialize, HeapSizeOf)]
pub struct GradientStop {
pub offset: AzFloat,
pub color: Color,
Expand Down
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@
#![crate_type = "rlib"]
#![feature(custom_derive, plugin)]
#![plugin(serde_macros)]
#![plugin(heapsize_plugin)]

extern crate libc;
extern crate serde;
extern crate euclid;
extern crate skia;
#[macro_use]
extern crate heapsize;
#[cfg(target_os = "linux")]
extern crate x11;
#[cfg(target_os = "android")]
Expand Down

0 comments on commit eeb917e

Please sign in to comment.