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 "git+https://github.com/qxbyte/codemap.git#subdirectory=plugins/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.1.0a1.tar.gz (5.4 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.1.0a1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file codemap_rust-0.1.0a1.tar.gz.

File metadata

  • Download URL: codemap_rust-0.1.0a1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for codemap_rust-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 4e6911ec6e767a3d8b648af81c79ad5c3163c15a66005db6d71bdf5ccb38b968
MD5 75bacfd46c3726bbf90c552c77bcebe2
BLAKE2b-256 eed0ab15086c8255f3466951e799ec8e476aadc96c9fa2e4cb0cef43a7014452

See more details on using hashes here.

File details

Details for the file codemap_rust-0.1.0a1-py3-none-any.whl.

File metadata

  • Download URL: codemap_rust-0.1.0a1-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for codemap_rust-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 ffaeda64b621d31ce16f9aa69a989f952a0192e884073790c6f91265e5fc4f1d
MD5 57abf369cdb497517bb927567893da20
BLAKE2b-256 38fe02b7c5cba661ba76e856c49836fda83a3a6278b85124db86da274113b839

See more details on using hashes here.

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