Re-export heapsize_derive from heapsize

This commit is contained in:
David Tolnay 2018-10-28 18:07:27 -07:00
parent c467aa7ccf
commit 0bf1ba0f24
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
4 changed files with 5 additions and 2 deletions

View File

@ -7,4 +7,3 @@ publish = false
[dependencies]
heapsize = { path = "../heapsize" }
heapsize_derive = { path = "../heapsize_derive" }

View File

@ -1,5 +1,4 @@
use heapsize::HeapSize;
use heapsize_derive::HeapSize;
#[derive(HeapSize)]
struct Demo<'a, T: ?Sized> {

View File

@ -4,3 +4,6 @@ version = "0.0.0"
authors = ["David Tolnay <dtolnay@gmail.com>"]
edition = "2018"
publish = false
[dependencies]
heapsize_derive = { path = "../heapsize_derive" }

View File

@ -1,5 +1,7 @@
use std::mem;
pub use heapsize_derive::*;
pub trait HeapSize {
/// Total number of bytes of heap memory owned by `self`.
///