From 4bdd4e2524e506d9dd23115dff6a9a2249fe6cc4 Mon Sep 17 00:00:00 2001 From: Pyfisch Date: Sat, 14 Nov 2015 10:54:03 +0100 Subject: [PATCH 1/2] Add Ipv4Addr and Ipv6Addr for use in rust-url --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 12f9c46..5931e17 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -17,6 +17,7 @@ use std::collections::hash_state; use std::hash::Hash; use std::marker::PhantomData; use std::mem::{size_of, transmute}; +use std::net::{Ipv4Addr, Ipv6Addr}; use std::sync::Arc; use std::rc::Rc; @@ -258,4 +259,5 @@ macro_rules! known_heap_size( known_heap_size!(0, u8, u16, u32, u64, usize); known_heap_size!(0, i8, i16, i32, i64, isize); known_heap_size!(0, bool, f32, f64); +known_heap_size!(0, Ipv4Addr, Ipv6Addr); known_heap_size!(0, PhantomData); From c7015d6e5e6b98026500e5568b377e8b40d496cf Mon Sep 17 00:00:00 2001 From: Pyfisch Date: Sun, 15 Nov 2015 12:41:07 +0100 Subject: [PATCH 2/2] bump version number --- Cargo.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2bfe591..60208d5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "heapsize" -version = "0.1.1" +version = "0.1.2" authors = [ "The Servo Project Developers" ] description = "Infrastructure for measuring the total runtime size of an object on the heap" license = "MPL-2.0" @@ -11,4 +11,3 @@ unstable = [] [dependencies] libc = "0.1" -