Registry / other / llvm-sys

llvm-sys

JSON →
library221.0.1rscratesunverified

Low-level bindings to LLVM's C API for Rust.

# Cargo.toml [dependencies] llvm-sys = "221.0.1"
INSTALL
IMPORT
SIG · LLVM-SYS
L
llvm-sys
otherrustv221.0.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.

LLVMContextCreate
use llvm_sys::LLVMContextCreate;

Minimal example creating an LLVM context using llvm-sys.

use llvm_sys::LLVMContextCreate; fn main() { unsafe { let context = LLVMContextCreate(); println!("LLVM context created"); // Remember to dispose: LLVMContextDispose(context); } }
Debug
Known issues
gotchaRequires LLVM development libraries installed on the system.
fix
Install LLVM via your package manager (e.g., apt install llvm-dev) or set LLVM_SYS_<version>_PREFIX.
affects: *
gotchaUnsafe API; improper use can cause undefined behavior.
fix
Ensure all LLVM objects are properly disposed and lifetimes are managed.
affects: *
Upgrade
Version history
221.0.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
llvm-sys — cargo add llvm-sys · libregistry