Registry / other / inline-c

inline-c

JSON →
library0.1.8rscratesunverified

Write and execute C code inside Rust.

# Cargo.toml [dependencies] inline-c = "0.1.8"
INSTALL
IMPORT
SIG · INLINE-C
I
inline-c
otherrustv0.1.8
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.

assert_c
use inline_c::assert_c;

Compiles and runs a C program inline, asserting success.

use inline_c::assert_c; fn main() { assert_c!(r#" int main() { return 0; } "#); }
Debug
Known issues
gotchaRequires a C compiler (e.g., gcc, clang) installed on the system.
fix
Install a C compiler via system package manager.
affects: >=0.1.0
Upgrade
Version history
0.1.8latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
inline-c — cargo add inline-c · libregistry