Make #[derive(JSTraceable)] a procedural macro

This commit is contained in:
Anthony Ramine 2016-11-02 22:43:37 +01:00
parent b0cac458b6
commit 391296278d
9 changed files with 98 additions and 68 deletions

View file

@ -42,6 +42,7 @@ hyper_serde = "0.1.4"
image = "0.10"
ipc-channel = "0.5"
js = {git = "https://github.com/servo/rust-mozjs", features = ["promises"]}
jstraceable_derive = {path = "../jstraceable_derive"}
libc = "0.2"
log = "0.3.5"
mime = "0.2.1"

View file

@ -10,7 +10,7 @@ use dom::element::Element;
use dom::window::Window;
// https://html.spec.whatwg.org/multipage/#validity-states
#[derive_JSTraceable]
#[derive(JSTraceable)]
#[derive(HeapSizeOf)]
pub enum ValidityStatus {
ValueMissing,

View file

@ -54,6 +54,8 @@ extern crate image;
extern crate ipc_channel;
#[macro_use]
extern crate js;
#[macro_use]
extern crate jstraceable_derive;
extern crate libc;
#[macro_use]
extern crate log;