Skip to main content

llmcc_rust/
lib.rs

1#[macro_use]
2extern crate llmcc_core;
3
4mod bind;
5mod collect;
6mod infer;
7mod pattern;
8pub mod token;
9
10pub const RUST_PRIMITIVES: &[&str] = &[
11    // Numeric types
12    "i32", "i64", "i16", "i8", "i128", "isize", "u32", "u64", "u16", "u8", "u128", "usize", "f32",
13    "f64", // Basic types
14    "bool", "char", "str", "String",
15];
16
17pub use crate::bind::BinderVisitor;
18pub use crate::collect::CollectorVisitor;
19
20pub use llmcc_core::{
21    CompileCtxt, ProjectGraph, build_llmcc_graph, build_llmcc_ir, print_llmcc_ir,
22};
23pub use token::LangRust;