Skip to content

Commit

Permalink
Re-export heapsize_derive from heapsize
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Oct 29, 2018
1 parent c467aa7 commit 0bf1ba0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion examples/heapsize/example/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ publish = false

[dependencies]
heapsize = { path = "../heapsize" }
heapsize_derive = { path = "../heapsize_derive" }
1 change: 0 additions & 1 deletion examples/heapsize/example/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use heapsize::HeapSize;
use heapsize_derive::HeapSize;

#[derive(HeapSize)]
struct Demo<'a, T: ?Sized> {
Expand Down
3 changes: 3 additions & 0 deletions examples/heapsize/heapsize/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ version = "0.0.0"
authors = ["David Tolnay <[email protected]>"]
edition = "2018"
publish = false

[dependencies]
heapsize_derive = { path = "../heapsize_derive" }
2 changes: 2 additions & 0 deletions examples/heapsize/heapsize/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
use std::mem;

pub use heapsize_derive::*;

pub trait HeapSize {
/// Total number of bytes of heap memory owned by `self`.
///
Expand Down

0 comments on commit 0bf1ba0

Please sign in to comment.