Registry / other / cranelift-native

cranelift-native

JSON →
library0.132.1rscratesunverified

Support for targeting the host machine with the Cranelift code generator.

# Cargo.toml [dependencies] cranelift-native = "0.132.1"
INSTALL
IMPORT
SIG · CRANELIFT-NATIVE
C
cranelift-native
otherrustv0.132.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

builder
use cranelift_native::builder;

Creates a Cranelift `TargetIsa` for the host machine.

use cranelift_native::builder; fn main() { let flag_builder = builder(); let isa = flag_builder.finish().expect("Failed to create target ISA"); println!("Target triple: {:?}", isa.triple()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.132.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
6
Meta
1
Amazon
1
Resources
cranelift-native — cargo add cranelift-native · libregistry