Registry / serialization / fvm-ipld-encoding

fvm-ipld-encoding

JSON →
library0.5.4rscratesunverified

Sharded IPLD encoding for the Filecoin Virtual Machine.

# Cargo.toml [dependencies] fvm_ipld_encoding = "0.5.4"
INSTALL
IMPORT
SIG · FVM-IPLD-ENCODING
F
fvm-ipld-encoding
serializationrustv0.5.4
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.

CBOR
use fvm_ipld_encoding::CBOR;

Encodes a struct using CBOR IPLD encoding.

use fvm_ipld_encoding::CBOR; use serde::Serialize; #[derive(Serialize)] struct Data { value: u32, } fn main() { let data = Data { value: 42 }; let encoded = CBOR::marshal(&data, "test").unwrap(); println!("Encoded: {:?}", encoded); }
Debug
Known issues
gotchaThis crate is specific to the Filecoin Virtual Machine ecosystem.
fix
Use only if building FVM-related projects.
affects: >=0.5.0
Upgrade
Version history
0.5.4latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
fvm-ipld-encoding — cargo add fvm-ipld-encoding · libregistry