mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Make #[derive(JSTraceable)] a procedural macro
This commit is contained in:
parent
b0cac458b6
commit
391296278d
9 changed files with 98 additions and 68 deletions
|
@ -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"
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue