Name Date Size #Lines LOC

..15-May-2026-

src/H15-May-2026-8366

Cargo.tomlH A D15-May-2026642 2521

LICENSEH A D15-May-202612 KiB221182

README.mdH A D15-May-2026792 3320

README.md

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