Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.
/ merde Public archive

Commit f469a03

Browse files
Update README.md
1 parent 16f7214 commit f469a03

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

merde/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,15 @@ println!("deserialized = {:?}", deserialized);
7373
This approach is less flexible, but because there's no proc-macro involved, or
7474
re-parsing of the struct definitions by the proc macro, it builds faster.
7575

76+
### Enabling the `serialize` and/or `deserialize` features.
77+
78+
If you use the `merde::derive!` macro and notice that it's actually _not_ implementing `Serialize` or
79+
`Deserialize` for your types, that's because the `serialize` and `deserialize` features of the `merde`
80+
crate are not enabled by default!
81+
82+
The macro is a no-op by default, which makes it a cheap dependency. For use, enable the `merde/serialize`
83+
and `merde/deserialize` features respectively.
84+
7685
### Copy-on-write types
7786

7887
Picture this: a large JSON documents, with large strings, that don't use escape sequences.

0 commit comments

Comments
 (0)