tools capa

tools-gen-ai-context

Regenerate the `<!-- BEGIN generated:crate-index -->` block in docs/AI_CONTEXT.md from `cargo metadata` + manifest-path layering. Idempotent; --check / --write. Keeps the AI context map's crate inventory from drifting.

Regenerate the `<!-- BEGIN generated:crate-index -->` block in docs/AI_CONTEXT.md from `cargo metadata` + manifest-path layering. Idempotent; --check / --write. Keeps the AI context map's crate inventory from drifting.

Tiertools
Roleunclassified (baselined)
Pathcrates/tools/gen-ai-context
Edition2021
Targetstools-gen-ai-context, tools_gen_ai_context
Public items7 across 1 module
Tests63

What it is for

Library half of tools-gen-ai-context: symbols::scan_symbols is reused directly by tools-org-knowledge's symbol-boundary code chunker (sprint 3.96 US-3.96.3) rather than re-derived -- this crate already owns the pub-item text-scan heuristic and its precision tradeoff.

Capabilities

symbols (other)

Capability index — what each crate actually exposes, not what it is for.

Item
pub const KINDS: & str; 6
fn indexable(rel : & str, known : & std::collections::BTreeSet <String>) -> bool

Row

Capability index — what each crate actually exposes, not what it is for.

Item
pub struct Row
fn build_index(crates : & (String, String, std::path::PathBuf), repo : & std::path::Path, known : & std::collections::BTreeSet <String>,) -> Vec <Row>
fn render_tsv(rows : & Row, stamp : & str) -> String

Symbol

Capability index — what each crate actually exposes, not what it is for.

Item
pub struct Symbol
fn scan_symbols(src : & str) -> Vec <Symbol>

How to use it

No examples/ target and no doctest in this crate's rustdoc. The tests listed under Verification are the closest executable usage.

Module structure

tools_gen_ai_context

Public surface

`symbols`

ItemWhat it is
pub const KINDS: & str; 6Kinds of public item worth indexing
pub struct SymbolOne exported item.
fn scan_symbols(src : & str) -> Vec <Symbol>Extract the public items declared in one Rust source file
pub struct RowOne row of the capability index.
fn indexable(rel : & str, known : & std::collections::BTreeSet <String>) -> boolIs this file one the index may describe? known is what git ls-files reports: tracked files plus staged additions
fn build_index(crates : & (String, String, std::path::PathBuf), repo : & std::path::Path, known : & std::collections::BTreeSet <String>,) -> Vec <Row>Build the capability index for a set of (crate name, layer, crate dir)
fn render_tsv(rows : & Row, stamp : & str) -> StringRender rows as TSV, newest-tooling-friendly and trivially greppable

No pub use re-exports: every item above is declared in this crate.

Boundary

Depends on no other workspace tier.

Shares tier tools with 84 other crates: tools-advisory-reach, tools-archive-guard, tools-artifact-scaffold, tools-ask-ai-core, tools-ask-ais, tools-ask-gemini, tools-book, tools-book-report, … (84 total).

_What this crate deliberately does NOT own is a judgment. No committed registry records one for it, so none is stated here._

Where it sits

Tier (ontology)tools
Architectural role (taxonomy)unclassified (baselined)
Locationcrates/tools/gen-ai-context
Vocabulary in force (lexicon)current

Dependencies

Runtime, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
anyhow^1noalways
clap^4derivenoalways
serde_json^1noalways

Development, in this workspace.

CrateTierOptionalOnly on
`tools-cli-conformance`toolsnoalways

Build. None.

Depended on by. 1 workspace crate.

Signal flow — what reaches this crate, and what it reaches.

flowchart LR
  n_tools_corpus["tools-corpus"] -->|uses| SELF
  SELF["tools-gen-ai-context"]
  SELF -->|development| n_tools_cli_conformance["tools-cli-conformance"]
  classDef self fill:#1f883d,stroke:#1f883d,color:#fff;
  class SELF self;

Feature flags

No Cargo features are defined: every capability is unconditional, so no consumer can receive a half-wired crate.

Targets

KindNameSource
bintools-gen-ai-context`src/main.rs`
libtools_gen_ai_context`src/lib.rs`

Error model

No public error type was detected: no public item declares a type named *Error, and no public signature returns one.

Operational characteristics

PropertyEvidence
async public surfacenone detected
async runtimenone detected
database accessnone detected
network I/Onone detected
unsafe codenone detected
environment variablesnone detected

No unsafe block, unsafe fn, unsafe impl or unsafe trait was found by the parser anywhere in this crate's source.

Configuration

No environment variable is read with a literal name anywhere in this crate. A variable whose key is computed at run time cannot be listed here, and is not claimed to be absent.

1 workspace crate depends on this one: tools-corpus.

Verification

KindCount
Unit tests63
Integration tests0
Examples0
Doctests0

Evidence by module. How often each public module is named by something executable.

ModuleTestsExamplesConsumers
symbols703

What the tests establish, by name:

Documentation coverage

MeasureDocumentedTotal
Public items with rustdoc77
Public modules with a //! block11
pie showData
    title Public items with rustdoc
    "Documented" : 7
    "No rustdoc detected" : 0

Metrics

MetricValue
Rust source files3
Source lines2388
Code lines1796
Public API items7
Public modules1
Tests63
Examples0
Cargo features0
Direct runtime dependencies3
Workspace reverse dependencies1
pie showData
    title Public API by kind
    "constant" : 1
    "function" : 4
    "struct" : 2
pie showData
    title Rust source composition
    "Code" : 1796
    "Blank or comment" : 592

Generation

Rendered by tools-corpus corpus readme from repository evidence alone, renderer schema 2, lexicon current. No model, network service or database was consulted. Regenerate with tools-corpus corpus readme --write; verify with --check.

Todas las tools · Manual