Skip to main content

Crate ridx_format

Crate ridx_format 

Source
Expand description

§ridx-format

Compact, zero-copy binary index format and reader/writer for Rust Intelligence.

Provides ultra-low latency (<50 µs) code navigation (go to definition, find references, hover/type-at) using memory-mapped .ridx files without persistent background daemon RSS.

Re-exports§

pub use reader::IndexReader;
pub use reader::MacroDefView;
pub use reader::ResolvedDefinition;
pub use ty_arena::AssocBindingIter;
pub use ty_arena::AssocBindingView;
pub use ty_arena::AssocTyIter;
pub use ty_arena::AssocTyView;
pub use ty_arena::DefTyView;
pub use ty_arena::FieldIter;
pub use ty_arena::FieldView;
pub use ty_arena::FnSigView;
pub use ty_arena::GenericArgIter;
pub use ty_arena::GenericArgView;
pub use ty_arena::GenericParamIter;
pub use ty_arena::GenericParamView;
pub use ty_arena::ImplIter;
pub use ty_arena::ImplView;
pub use ty_arena::LangItemIter;
pub use ty_arena::LangItemView;
pub use ty_arena::RawAssocTy;
pub use ty_arena::RawDefTy;
pub use ty_arena::RawField;
pub use ty_arena::RawFnSig;
pub use ty_arena::RawGenericArg;
pub use ty_arena::RawGenericParam;
pub use ty_arena::RawImpl;
pub use ty_arena::RawLangItem;
pub use ty_arena::RawTy;
pub use ty_arena::RawTyBound;
pub use ty_arena::RawTyDef;
pub use ty_arena::RawUse;
pub use ty_arena::RawWherePred;
pub use ty_arena::TyArenaView;
pub use ty_arena::TyBoundIter;
pub use ty_arena::TyBoundView;
pub use ty_arena::TyDefView;
pub use ty_arena::TyInterner;
pub use ty_arena::TyKindView;
pub use ty_arena::TyListIter;
pub use ty_arena::U32ListIter;
pub use ty_arena::UseIter;
pub use ty_arena::UseView;
pub use ty_arena::WherePredIter;
pub use ty_arena::WherePredView;
pub use writer::IndexWriter;
pub use writer::RawDefinition;
pub use writer::RawMacroDef;
pub use writer::RawNote;
pub use writer::RawReference;
pub use writer::RawType;
pub use format::*;
pub use workspace::*;

Modules§

audit
Schema and empirical content audit for .ridx shards and workspaces.
driver_hash
Driver binary hashing, fingerprinting, and disk cache management.
format
Binary format specifications for the RIDX (.ridx) index file.
reader
Fast zero-copy memory-mapped reader for .ridx files.
ty_arena
Zero-copy reader views, structural interner, and formatter for TyArena.
workspace
Multi-crate workspace index support for Rust Intelligence.
writer
Builder and serializer for the RIDX binary index format.

Constants§

NO_BUILD_DIR_PREFIX
The start of the name of the Cargo target directory of an index built so: the procedural macros the driver loads then are only stubs built under it.
NO_BUILD_ENV
=1 in the driver’s environment: no build script or procedural macro is executed while indexing (prod-code, m=20739).

Functions§

canonicalize_best_effort
Canonicalizes path, falling back to canonicalizing its deepest existing ancestor and appending any non-existent suffix components normalized via normalize_path.
canonicalize_cached
canonicalize_best_effort, remembered per path: lookups run per shard on every request, and a directory’s links do not change while the server runs (a later file under it resolves the same way).
normalize_path
Normalizes a path by removing redundant . and resolving .. components lexically. A .. after a normal component removes it; a leading .. of a relative path is kept, a .. right after the root of an absolute path is dropped. Symlinks are not consulted: callers that need filesystem identity resolve the path first.