36 releases (21 breaking)
Uses new Rust 2021
|new 0.88.1||Sep 26, 2022|
|0.87.1||Aug 31, 2022|
|0.86.1||Jul 21, 2022|
|0.82.2||Mar 31, 2022|
|0.66.0||Jul 16, 2020|
#731 in WebAssembly
150 downloads per month
This crate performs serialization of the Cranelift IR.
This crate is structured as an optional ability to serialize and deserialize cranelift IR into JSON format.
Cranelift IR can be serialized into JSON.
Deserialize is a work in progress, as it currently deserializes into the serializable data structure that can be utilized by serde instead of the actual Cranelift IR data structure.
clif-json serialize [-p] <file> clif-json deserialize <file>
Where the -p flag outputs Cranelift IR as pretty JSON.
For example to build and use clif-json:
cd cranelift-serde cargo build clif-json serialize -p test.clif