Registry / other / clang-sys

clang-sys

JSON →
library1.8.1rscratesunverified

Rust bindings for libclang, providing low-level access to Clang's C API.

# Cargo.toml [dependencies] clang-sys = "1.8.1"
INSTALL
IMPORT
SIG · CLANG-SYS
C
clang-sys
otherrustv1.8.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.

load
use clang_sys::load;

Loads the libclang shared library at runtime.

use clang_sys::load; fn main() { unsafe { load().expect("Failed to load libclang") }; println!("libclang loaded"); }
Debug
Known issues
gotchaRequires libclang to be installed on the system; may fail if not found.
fix
Install Clang/LLVM or set the LIBCLANG_PATH environment variable.
affects: >=1.0.0
Upgrade
Version history
1.8.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Meta
1
Resources
clang-sys — cargo add clang-sys · libregistry