Skip to main content

lean_ctx/
lib.rs

1// Every `unsafe` block must carry a `// SAFETY:` comment justifying soundness.
2// Enforced so the (mostly libc/Win32 syscall) unsafe surface stays documented.
3#![warn(clippy::undocumented_unsafe_blocks)]
4
5#[cfg(all(feature = "jemalloc", not(windows)))]
6#[global_allocator]
7static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
8
9#[cfg(all(feature = "jemalloc", not(windows)))]
10#[allow(non_upper_case_globals)]
11#[unsafe(export_name = "malloc_conf")]
12pub static malloc_conf: &[u8] = b"background_thread:true,dirty_decay_ms:1000,muzzy_decay_ms:1000\0";
13
14pub mod cli;
15pub mod cloud_client;
16#[cfg(feature = "cloud-server")]
17pub mod cloud_server;
18pub mod cloud_sync;
19pub mod compound_lexer;
20pub mod config_io;
21pub mod core;
22pub mod daemon;
23pub mod daemon_autostart;
24pub mod daemon_client;
25pub mod dashboard;
26pub mod doctor;
27pub mod dropin;
28pub mod engine;
29#[cfg(feature = "gateway-server")]
30pub mod gateway_server;
31pub mod heatmap;
32pub mod hook_handlers;
33pub mod hooks;
34#[cfg(feature = "http-server")]
35pub mod http_server;
36pub mod instructions;
37pub mod ipc;
38pub mod lsp;
39pub mod marked_block;
40pub mod mcp_stdio;
41#[cfg(feature = "http-server")]
42pub mod proxy;
43pub mod proxy_autostart;
44pub mod proxy_setup;
45pub mod report;
46pub mod rewrite_registry;
47pub mod rules_inject;
48pub mod server;
49pub mod setup;
50pub mod shell;
51pub mod shell_hook;
52pub mod status;
53pub mod terminal_ui;
54#[cfg(test)]
55pub(crate) mod test_env;
56pub mod token_report;
57pub mod tool_defs;
58pub mod tools;
59pub mod tui;
60pub mod uninstall;