Crates.io | cranelift-serde |
lib.rs | cranelift-serde |
version | 0.113.1 |
source | src |
created_at | 2020-07-16 21:56:44.385783 |
updated_at | 2024-11-05 19:22:42.219859 |
description | Serializer/Deserializer for Cranelift IR |
homepage | |
repository | https://github.com/bytecodealliance/wasmtime |
max_upload_size | |
id | 266041 |
size | 28,339 |
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 usage:
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