{"id":65802,"library":"inline-c","title":"inline-c","description":"Write and execute C code inside Rust.","status":"active","version":"0.1.8","language":"rust","source_language":null,"source_url":"https://github.com/Hywan/inline-c-rs","tags":["c","ffi","inline","code-generation"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ninline-c = \"0.1.8\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add inline-c","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"assert_c","correct":"use inline_c::assert_c;"}],"quickstart":{"code":"use inline_c::assert_c;\n\nfn main() {\n    assert_c!(r#\"\n        int main() {\n            return 0;\n        }\n    \"#);\n}","lang":"rust","description":"Compiles and runs a C program inline, asserting success."},"warnings":[{"fix":"Install a C compiler via system package manager.","message":"Requires a C compiler (e.g., gcc, clang) installed on the system.","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"search_vec":"'c':3,7,11 'code':8,15 'code-gener':14 'execut':6 'ffi':12 'generat':16 'inlin':2,13 'inline-c':1 'insid':9 'rust':10 'write':4","created_at":"2026-06-17T17:15:24.568295+00:00","updated_at":"2026-06-17T17:15:24.568295+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/Hywan/inline-c-rs","github":"https://github.com/Hywan/inline-c-rs","docs":"https://docs.rs/inline-c/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}