aboutsummaryrefslogtreecommitdiffstats
path: root/components/malloc_size_of_derive
diff options
context:
space:
mode:
Diffstat (limited to 'components/malloc_size_of_derive')
-rw-r--r--components/malloc_size_of_derive/Cargo.toml6
-rw-r--r--components/malloc_size_of_derive/lib.rs8
2 files changed, 4 insertions, 10 deletions
diff --git a/components/malloc_size_of_derive/Cargo.toml b/components/malloc_size_of_derive/Cargo.toml
index 24690eab78d..02bd4c3fc41 100644
--- a/components/malloc_size_of_derive/Cargo.toml
+++ b/components/malloc_size_of_derive/Cargo.toml
@@ -10,6 +10,6 @@ path = "lib.rs"
proc-macro = true
[dependencies]
-quote = "0.4.2"
-syn = { version = "0.12.12", features = ["full"] }
-synstructure = "0.7"
+quote = "0.5.1"
+syn = { version = "0.13.1", features = ["full"] }
+synstructure = "0.8"
diff --git a/components/malloc_size_of_derive/lib.rs b/components/malloc_size_of_derive/lib.rs
index 68d7201b308..20e9225277e 100644
--- a/components/malloc_size_of_derive/lib.rs
+++ b/components/malloc_size_of_derive/lib.rs
@@ -10,16 +10,10 @@
//! A crate for deriving the MallocSizeOf trait.
-#[macro_use] extern crate quote;
+extern crate quote;
#[macro_use] extern crate syn;
-
-#[cfg(not(test))]
#[macro_use] extern crate synstructure;
-#[cfg(test)]
-extern crate synstructure;
-
-
#[cfg(not(test))]
decl_derive!([MallocSizeOf, attributes(ignore_malloc_size_of)] => malloc_size_of_derive);