Serde Pickle Serialization Library
This crate is a Rust library for parsing and generating Python pickle streams, forked from serde-pickle. That crate has not been updated in a while, and does not support some parts of the pickle spec (e.g. PERSID), which is required to parse the Meta LlaMA models.
It is built upon Serde, a high performance generic serialization framework.
Installation
This crate works with Cargo and can be found on
crates.io with a Cargo.toml
like:
[]
= "1.0.192"
= "1.0.1"
Requirements
Minimum supported Rust version is 1.73.0.
Usage
As with other serde serialization implementations, this library provides toplevel functions for simple en/decoding of supported objects.
Example:
use BTreeMap;
Serializing and deserializing structs and enums that implement the
serde-provided traits is supported, and works analogous to other crates
(using serde_derive
).