Crates.io | craneliftc |
lib.rs | craneliftc |
version | 0.5.1 |
source | src |
created_at | 2023-06-03 03:45:48.854653 |
updated_at | 2023-07-03 21:16:25.798156 |
description | light c compatible ffi wrapper around cranelift |
homepage | |
repository | |
max_upload_size | |
id | 881331 |
size | 69,901 |
I do not maintain cranelift, or any part of wasmtime. This is merely a redistribution of the abi in a c compatible way.
Here is the Source's license. wasmtime license
From what I can tell in the license, this is not necessarily a Derivative work, but I am treating it as a Derivative work, and being careful to shove this license in your face everywhere.
Note to users seeing this on crates.io, you will need to follow the To Use documentation to install. This is a greate place to see the abi's on a different screen.
Alternately, you can create a wrapper project, and pub use
both craneliftc, and cranelift, and run cargo build for that project. It will then get installed to your local target directory, and then use the cbindgen command found in the makefile
. These are significant extra steps. Installing with the repsitory locally is easier.
cargo install cbindgen
Note if you want to cross compile craneliftc
, ensure you have cross installed. cargo install cross
You can run any of these in this repositories root directory.
make release
,make debug
,make triple=${your_target} target-release
make triple=${your_target} target-debug
This installs craneliftc
into the ./target
directory for either your build or release version. If you provided a cross-target that will be installed with an additional directory for the triple first.
This library uses opaque pointers, so an additional header file is needed. craneliftc-extras.h
As a convenience, the header files can be taken from here. header files
to generate the cbindgen headers run, make cbindgen