60 breaking releases

0.75.0 Jun 9, 2021
0.73.1 May 21, 2021
0.72.0 Mar 16, 2021
0.68.0 Nov 5, 2020
0.17.0 Jul 24, 2018

#222 in No standard library

Download history 231/week @ 2021-02-26 213/week @ 2021-03-05 277/week @ 2021-03-12 511/week @ 2021-03-19 344/week @ 2021-03-26 469/week @ 2021-04-02 490/week @ 2021-04-09 649/week @ 2021-04-16 426/week @ 2021-04-23 337/week @ 2021-04-30 611/week @ 2021-05-07 421/week @ 2021-05-14 359/week @ 2021-05-21 311/week @ 2021-05-28 401/week @ 2021-06-04 310/week @ 2021-06-11

1,837 downloads per month
Used in 23 crates (17 directly)

Apache-2.0 WITH LLVM-exception

4.5MB
98K SLoC

This crate provides module-level functionality, which allow multiple functions and data to be emitted with Cranelift and then linked together.

This crate is structured as an optional layer on top of cranelift-codegen. It provides additional functionality, such as linking, however users that require greater flexibility don't need to use it.

A module is a collection of functions and data objects that are linked together. The Module trait that defines a common interface for various kinds of modules. Most users will use one of the following Module implementations:

  • JITModule, provided by cranelift-jit, which JITs code to memory for direct execution.
  • ObjectModule, provided by cranelift-object, which emits native object files.

lib.rs:

Top-level lib.rs for cranelift_module.

Dependencies