Skip to main content

Crate travsr_core

Crate travsr_core 

Source
Expand description

travsr-core — graph primitives for the Travsr code-intelligence daemon.

This crate defines the foundational data model: Kythe-style VNames, node identifiers, edges, and the multiplex graph types that every other Travsr crate builds on. It has zero dependencies on any other internal Travsr crate by design (see crate dependency rules in CLAUDE.md).

Structs§

Edge
A directed, typed edge between two nodes.
Node
A node in the code graph.
NodeId
Opaque, content-addressed identifier for a node in the graph.
VName
Kythe-style globally unique identifier for a code entity.

Enums§

EdgeKind
The kinds of edges supported in the Travsr multiplex graph.
Language
Source language of a graph node.

Constants§

SIGNATURE_FORMAT_VERSION
Version of the VName signature format baked into every NodeId hash.

Functions§

canonical_corpus
Derive the canonical Travsr corpus identifier from a git remote URL.
canonical_corpus_local
Derive corpus for a local-only repo (no git remote): local/<basename>.