mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Make #[dom_struct] a proc_macro attribute
This commit is contained in:
parent
64885c4213
commit
31e9d81c0f
251 changed files with 298 additions and 35 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue