1This crate performs serialization of the [Cranelift](https://crates.io/crates/cranelift) IR. 2 3This crate is structured as an optional ability to serialize and deserialize cranelift IR into JSON 4format. 5 6Status 7------ 8 9Cranelift IR can be serialized into JSON. 10 11Deserialize is a work in progress, as it currently deserializes into the serializable data structure 12that can be utilized by serde instead of the actual Cranelift IR data structure. 13 14 15Building and Using Cranelift Serde 16---------------------------------- 17 18clif-json usage: 19 20 clif-json serialize [-p] <file> 21 clif-json deserialize <file> 22 23Where the -p flag outputs Cranelift IR as pretty JSON. 24 25For example to build and use clif-json: 26 27``` {.sourceCode .sh} 28cd cranelift-serde 29cargo build 30clif-json serialize -p test.clif 31``` 32 33