Skip to main content

Rust indexer plugin for CodeMap

Project description

codemap-rust

A Rust indexer for CodeMap, shipped as an independent PyPI package.

What it captures

Backed by tree-sitter-rust:

AST node Symbol kind
function_item (free) function
function_item (inside impl) method (attached to the impl'd type)
function_signature_item (inside trait) method (attached to the trait)
struct_item class (with extra.rust_kind=struct)
enum_item class (with extra.rust_kind=enum)
trait_item class (with extra.rust_kind=trait)
const_item variable (with extra.rust_kind=const)
static_item variable (with extra.rust_kind=static)

impl Trait for Type blocks attach methods to Type (the receiver), so both inherent and trait impls end up addressable under the same Type#method() shape.

SymbolID encoding

scip-rust . . . src/user.rs/User#login().

Install

pip install codemap-rust

After install, codemap doctor lists rust alongside the other indexers on identical terms (ADR-004 + ADR-L001).

Limits

  • Methods on generic types (impl<T> Foo<T>) attach to Foo without the generic parameter — adequate for code search, lossy for type checking.
  • Macros are not expanded; their declarations are not captured as symbols.
  • mod declarations are not turned into namespace prefixes; the file path is the only namespace.

License

MIT.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codemap_rust-0.4.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codemap_rust-0.4.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file codemap_rust-0.4.0.tar.gz.

File metadata

  • Download URL: codemap_rust-0.4.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for codemap_rust-0.4.0.tar.gz
Algorithm Hash digest
SHA256 e38d5fa35f4230ba0c935ae03359ce8b56bbe7beadd1e48b8cef5e3d5a893736
MD5 1d6b70a66e39e372eee34701f52317f8
BLAKE2b-256 1ba4ed7804168788c8828f9b7fbc2317fc5e6b108fd34cbe913dc8b9fd362472

See more details on using hashes here.

Provenance

The following attestation bundles were made for codemap_rust-0.4.0.tar.gz:

Publisher: publish.yml on qxbyte/codemap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file codemap_rust-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: codemap_rust-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for codemap_rust-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a68ae51272c24bd389e633dc034b6d2809f3b66e579fb17c6e843620d0dcc211
MD5 c93ed9cbb67419305b6a2041d36d6c79
BLAKE2b-256 7a8d9450e7f46cc2d50828f2d5eab8c41ce8f8401515d47bf4f902cfe7190767

See more details on using hashes here.

Provenance

The following attestation bundles were made for codemap_rust-0.4.0-py3-none-any.whl:

Publisher: publish.yml on qxbyte/codemap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page