{"id":50166896,"url":"https://github.com/enomoto11/dokono-rs","last_synced_at":"2026-05-24T21:30:28.144Z","repository":{"id":356345683,"uuid":"1231995509","full_name":"enomoto11/dokono-rs","owner":"enomoto11","description":"Detect which binary entrypoints are affected by code changes in a Rust workspace, without building.","archived":false,"fork":false,"pushed_at":"2026-05-16T14:29:05.000Z","size":188,"stargazers_count":5,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-16T16:41:06.090Z","etag":null,"topics":["cli","impact-analysis","lsp","rust","rust-analyzer"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/dokono-rs","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/enomoto11.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-07T13:40:38.000Z","updated_at":"2026-05-16T14:29:03.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/enomoto11/dokono-rs","commit_stats":null,"previous_names":["enomoto11/dokono-rs"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/enomoto11/dokono-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enomoto11%2Fdokono-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enomoto11%2Fdokono-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enomoto11%2Fdokono-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enomoto11%2Fdokono-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enomoto11","download_url":"https://codeload.github.com/enomoto11/dokono-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enomoto11%2Fdokono-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33452031,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-24T19:21:36.376Z","status":"ssl_error","status_checked_at":"2026-05-24T19:21:10.562Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","impact-analysis","lsp","rust","rust-analyzer"],"created_at":"2026-05-24T21:30:25.166Z","updated_at":"2026-05-24T21:30:28.138Z","avatar_url":"https://github.com/enomoto11.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./assets/dokono-rs-logo.png\" alt=\"dokono-rs\" width=\"100%\"\u003e\n\u003c/p\u003e\n\n# dokono-rs workspace\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](#license)\n\nA family of static-analysis CLI tools for Rust workspaces that all answer the same shape of question — **\"given this change, which X is affected?\"** — by driving [rust-analyzer](https://rust-analyzer.github.io/) over LSP and walking a symbol-level reference graph.\n\nNone of these tools invoke `cargo build` or `--emit=dep-info`. Each one traces references through rust-analyzer instead, so even on dependency-heavy workspaces results usually come back in tens of seconds.\n\n\u003e The \"dokono\" (どこの) prefix means *\"of which / from where\"* in Japanese — every tool here answers a different \"from where?\" question.\n\n## Crates in this workspace\n\n| Crate | Kind | Status | What it answers |\n|---|---|---|---|\n| [`dokono-rs`](crates/dokono-rs/) | CLI (`dokono`) | [![Crates.io](https://img.shields.io/crates/v/dokono-rs.svg)](https://crates.io/crates/dokono-rs) | Which **binary entrypoints** are affected by a change? |\n| [`dokono-test`](crates/dokono-test/) | CLI (`dokono-test`) | [![Crates.io](https://img.shields.io/crates/v/dokono-test.svg)](https://crates.io/crates/dokono-test) | Which **test functions** are affected by a change? |\n| [`dokono-core`](crates/dokono-core/) | Internal library | [![Crates.io](https://img.shields.io/crates/v/dokono-core.svg)](https://crates.io/crates/dokono-core) | Shared LSP client, BFS engine, git-diff parsing, and `cargo metadata` plumbing used by the CLIs above. API is unstable. |\n\nEach CLI has its own README with motivation, installation, full usage, and troubleshooting — start there if you want to use one of the tools.\n\n## Shared architecture\n\nAll CLIs follow the same pipeline, implemented once in [`dokono-core`](crates/dokono-core/):\n\n1. **Parse the git diff** (`gix`) into changed files + changed line numbers.\n2. **Resolve starting symbols** via `textDocument/documentSymbol` — the innermost function/method enclosing each changed line.\n3. **BFS upward** through `textDocument/references` (with `textDocument/declaration` to normalize `impl method → trait method` for trait-object dispatch), re-running `documentSymbol` at each reference site to step to the enclosing caller.\n4. **Match visited positions** against a tool-specific *goal set*:\n   - `dokono-rs` → bin entrypoint paths from `cargo metadata`\n   - `dokono-test` → `#[test]` / `#[tokio::test]` / ... bodies discovered by `syn`\n\nReadiness is detected deterministically by waiting for an `experimental/serverStatus` notification with `quiescent: true` — no fixed sleeps. The one bounded wait is a 30-second cap on the retry that follows a `-32801 ContentModified` response, so a single non-quiescing request cannot stall the whole BFS; the offending request is skipped and the traversal continues.\n\n## Why this trade-off\n\nCargo's dependency graph resolves at the **crate level**. That is too coarse for any of the questions above: a one-line change in a foundational crate fans out across the workspace at the crate level even when the actual symbol is reached by only a handful of callers.\n\nBy going one level deeper — to the symbol-level reference graph that rust-analyzer already maintains — these tools answer the question that the crate-level graph cannot, without paying the cost of a full build.\n\nThe trade-off is that rust-analyzer has to index the workspace once on startup (tens of seconds with a warm cache, minutes on a cold cache for sizeable workspaces). This is intentional: correctness over raw latency.\n\n## Requirements (shared)\n\n| | |\n|---|---|\n| Rust toolchain | stable (required to build) |\n| rust-analyzer | must be on `$PATH` (install with `rustup component add rust-analyzer`) |\n| Git | any version |\n| Target workspace | `cargo metadata` must succeed. The code does not need to compile, but dependencies must resolve so rust-analyzer can index. |\n\n## License\n\n[MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenomoto11%2Fdokono-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenomoto11%2Fdokono-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenomoto11%2Fdokono-rs/lists"}