Registry / serialization / serde-pickle

serde-pickle

JSON →
library1.2.0rscratesunverified

A serde-based serialization library for Python's pickle format.

# Cargo.toml [dependencies] serde-pickle = "1.2.0"
INSTALL
IMPORT
SIG · SERDE-PICKLE
S
serde-pickle
serializationrustv1.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

to_vec
use serde_pickle::to_vec;

Serializes a Rust value to Python pickle format.

use serde_pickle::to_vec; use serde::Serialize; let data = vec![1, 2, 3]; let bytes = to_vec(&data, Default::default()).unwrap();
Debug
Known issues
gotchaPickle format is Python-specific and may have security implications when deserializing untrusted data.
fix
Only deserialize pickle data from trusted sources.
affects: >=1.0.0
Upgrade
Version history
1.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
18
Resources
serde-pickle — cargo add serde-pickle · libregistry