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#[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;
29pub mod heatmap;
30pub mod hook_handlers;
31pub mod hooks;
32#[cfg(feature = "http-server")]
33pub mod http_server;
34pub mod instructions;
35pub mod ipc;
36pub mod lsp;
37pub mod marked_block;
38pub mod mcp_stdio;
39#[cfg(feature = "http-server")]
40pub mod proxy;
41pub mod proxy_autostart;
42pub mod proxy_setup;
43pub mod report;
44pub mod rewrite_registry;
45pub mod rules_inject;
46pub mod server;
47pub mod setup;
48pub mod shell;
49pub mod shell_hook;
50pub mod status;
51pub mod terminal_ui;
52pub mod token_report;
53pub mod tool_defs;
54pub mod tools;
55pub mod tui;
56pub mod uninstall;