Skip to main content

neurondump_core/
lib.rs

1//! NeuronDump core: the only place analysis logic lives. Front ends (CLI, web) call this
2//! API and render its serializable results.
3//!
4//! The `native` feature (default) adds everything that needs a filesystem, threads or the
5//! trace runtime: the app / job system, config, analysis, slimming, edits, ablation and diff.
6//! Without it the static inspection part (GGUF metadata, tensors, architecture, vocabulary,
7//! chat template, graph, weight statistics) builds for `wasm32-unknown-unknown`.
8
9#[cfg(feature = "native")]
10pub mod ablate;
11#[cfg(feature = "native")]
12pub mod analyze;
13pub mod api;
14#[cfg(feature = "native")]
15pub mod app;
16pub mod arch;
17pub mod chat;
18pub mod compare;
19#[cfg(feature = "native")]
20pub mod config;
21#[cfg(feature = "native")]
22pub mod diff;
23pub mod discovery;
24#[cfg(feature = "native")]
25pub mod edits;
26pub mod export;
27pub mod graph;
28pub mod inspect;
29#[cfg(feature = "native")]
30pub mod jobs;
31pub mod model;
32pub mod search;
33#[cfg(feature = "native")]
34pub mod slim;
35pub mod stats;
36pub mod template;
37pub mod tokenizer;
38pub mod tokens;
39pub mod trace;
40pub mod util;
41
42#[cfg(feature = "native")]
43pub use analyze::{AnalyzeOptions, Candidate, CandidateKind, PrunePlan, Risk};
44#[cfg(feature = "native")]
45pub use app::App;
46#[cfg(feature = "native")]
47pub use config::{Config, UiMode};
48pub use discovery::{DiscoveryOptions, Library, ModelEntry, ModelSummary, SourceKind};
49pub use inspect::{InspectOptions, InspectReport};
50#[cfg(feature = "native")]
51pub use jobs::{JobInfo, JobKind, JobManager, JobStatus};
52pub use model::ModelHandle;
53pub use neurondump_gguf as gguf;
54#[cfg(feature = "native")]
55pub use slim::{SlimOptions, SlimReport};
56pub use stats::{StatsOptions, StatsReport};
57pub use trace::{TraceReport, TraceRequest};
58pub use util::{NoProgress, Progress};