mirror of
https://gitee.com/openharmony/third_party_rust_syn
synced 2024-11-23 07:50:04 +00:00
Re-export heapsize_derive from heapsize
This commit is contained in:
parent
c467aa7ccf
commit
0bf1ba0f24
@ -7,4 +7,3 @@ publish = false
|
||||
|
||||
[dependencies]
|
||||
heapsize = { path = "../heapsize" }
|
||||
heapsize_derive = { path = "../heapsize_derive" }
|
||||
|
@ -1,5 +1,4 @@
|
||||
use heapsize::HeapSize;
|
||||
use heapsize_derive::HeapSize;
|
||||
|
||||
#[derive(HeapSize)]
|
||||
struct Demo<'a, T: ?Sized> {
|
||||
|
@ -4,3 +4,6 @@ version = "0.0.0"
|
||||
authors = ["David Tolnay <dtolnay@gmail.com>"]
|
||||
edition = "2018"
|
||||
publish = false
|
||||
|
||||
[dependencies]
|
||||
heapsize_derive = { path = "../heapsize_derive" }
|
||||
|
@ -1,5 +1,7 @@
|
||||
use std::mem;
|
||||
|
||||
pub use heapsize_derive::*;
|
||||
|
||||
pub trait HeapSize {
|
||||
/// Total number of bytes of heap memory owned by `self`.
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user