mitsuhiko / deser

Experimental rust serialization library
https://docs.rs/deser
Apache License 2.0
287 stars 8 forks source link

Deriving requires traits in scope #28

Closed mitsuhiko closed 2 years ago

mitsuhiko commented 2 years ago

Currently if one does not have the right traits in scope deriving fails:

error[E0599]: no method named `finish` found for struct `Attributes` in the current scope
   --> src/main.rs:1:10
    |
1   | #[derive(deser::Serialize, deser::Deserialize)]
    |          ^^^^^^^^^^^^^^^^ method not found in `Attributes`