mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
Make #[dom_struct] a proc_macro attribute
This commit is contained in:
@@ -138,6 +138,8 @@ Let's look at [Servo's implementation][document-rs] of the DOM's
|
||||
[document-mdn]: https://developer.mozilla.org/en-US/docs/Web/API/document
|
||||
|
||||
```rust
|
||||
use dom_struct::dom_struct;
|
||||
|
||||
#[dom_struct]
|
||||
pub struct Document {
|
||||
node: Node,
|
||||
|
||||
Reference in New Issue
Block a user