readme: add section

This commit is contained in:
Antonis Geralis 2022-09-04 20:26:51 +03:00
parent f22e460fbb
commit 618f6d663d
1 changed files with 12 additions and 1 deletions

View File

@ -132,7 +132,18 @@ proc mutate(value: var ClientId; sizeIncreaseHint: int; enforceChanges: bool; r:
For aiding the creation of mutate functions, mutators for every supported type are
exported by `drchaos/mutator`.
## What's not supported
### User-defined serializers
User overloads must use the following proc signatures:
```nim
proc fromData*(data: openArray[byte]; pos: var int; output: var T)
proc toData*(data: var openArray[byte]; pos: var int; input: T)
```
This is only necessary for destructor-based types.
### What's not supported
- Polymorphic types, missing serialization support.
- References with cycles. A `.noFuzz` custom pragma will be added soon for cursors.