encode package:cereal

Encode a value using binary serialization to a strict ByteString.
Encode a value using binary serialization to a lazy ByteString.