Skip to main content

oak_rust/
lib.rs

1#![doc = include_str!("readme.md")]
2#![feature(new_range_api)]
3#![feature(portable_simd)]
4#![warn(missing_docs)]
5#![doc(html_logo_url = "https://raw.githubusercontent.com/ygg-lang/oaks/refs/heads/dev/documents/logo.svg")]
6#![doc(html_favicon_url = "https://raw.githubusercontent.com/ygg-lang/oaks/refs/heads/dev/documents/logo.svg")]
7
8/// AST module.
9pub mod ast;
10/// Builder module.
11pub mod builder;
12
13/// Language configuration module.
14pub mod language;
15/// Lexer module.
16pub mod lexer;
17#[cfg(any(feature = "lsp", feature = "oak-highlight", feature = "oak-pretty-print"))]
18pub mod lsp;
19/// MCP module.
20#[cfg(feature = "mcp")]
21pub mod mcp;
22
23/// Parser module.
24pub mod parser;
25
26pub use crate::{ast::RustRoot, builder::RustBuilder, language::RustLanguage, lexer::RustLexer, parser::RustParser};
27pub use lexer::token_type::RustTokenType;
28pub use parser::RustElementType;
29
30#[cfg(feature = "oak-highlight")]
31pub use crate::lsp::highlighter::{Highlighter, RustHighlighter};
32
33#[cfg(feature = "lsp")]
34pub use crate::lsp::RustLanguageService;
35
36#[cfg(feature = "oak-pretty-print")]
37pub use crate::lsp::formatter::RustFormatter;