{"id":19252470,"url":"https://github.com/zigtools/scip-zig","last_synced_at":"2025-04-21T13:31:02.296Z","repository":{"id":65303492,"uuid":"536292065","full_name":"zigtools/scip-zig","owner":"zigtools","description":"SCIP indexer for Zig!","archived":false,"fork":false,"pushed_at":"2023-03-03T07:03:10.000Z","size":147,"stargazers_count":24,"open_issues_count":1,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-10-29T16:20:14.156Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Zig","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/zigtools.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},"funding":{"github":"zigtools","open_collective":"zigtools"}},"created_at":"2022-09-13T20:07:33.000Z","updated_at":"2024-10-24T02:28:11.000Z","dependencies_parsed_at":"2023-01-16T10:45:44.260Z","dependency_job_id":"72bfd187-ebb3-4192-b35c-0538b09726e0","html_url":"https://github.com/zigtools/scip-zig","commit_stats":{"total_commits":23,"total_committers":1,"mean_commits":23.0,"dds":0.0,"last_synced_commit":"71505e37746027b307f3795b15674844453f1de5"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zigtools%2Fscip-zig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zigtools%2Fscip-zig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zigtools%2Fscip-zig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zigtools%2Fscip-zig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zigtools","download_url":"https://codeload.github.com/zigtools/scip-zig/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247948587,"owners_count":21023189,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-09T18:27:06.431Z","updated_at":"2025-04-21T13:31:02.276Z","avatar_url":"https://github.com/zigtools.png","language":"Zig","readme":"# scip-zig\n\n[SCIP](https://github.com/sourcegraph/scip) indexer for [Zig](https://ziglang.org). Experimental.\n\n## Supported features\n\nOur benchmark for `scip-zig` is its ability to index `std`; unfortunately importing external packages via `addPackage` isn't supported *yet*.\n\n- [x] Globals\n- [ ] Properly creating multiple indices for different packages\n- [x] Imports\n- [x] Namespaced declarations (structs, enums, unions)\n- [x] Functions\n  - [ ] Arguments\n  - [x] Return values\n  - [x] Bodies\n- [x] Locals\n  - [x] With explicit typing\n  - [ ] With inferred typing\n- [ ] Easy integration into `build.zig` / CI\n- [ ] `usingnamespace`\n- [ ] `comptime`\n\n## Installing\n\nTo install `scip-zig`, simply `git clone` this repository and run `zig build`; you'll find the indexer in `zig-out/bin`!\n\n## Usage\n\n```bash\n# To index std; currently uses about a 400mbs of memory\n# Windows: should finish in under 10 seconds in release-fast, under a minute in debug\n# WSL: should finish in under 3 seconds in release-fast\nscip-zig --root-path /path/to/zig --pkg std /path/to/zig/lib/std/std.zig --root-pkg std\nsrc code-intel upload -github-token=$(cat tok) -file=index.scip\n```\n\nFor example, let's index this very repo:\n\n```bash\nzig-out/bin/scip-zig --root-path $(pwd) --pkg scip-zig $(pwd)/src/main.zig --root-pkg scip-zig\nscip convert --from index.scip\nsrc code-intel upload -github-token=$(cat tok) -file=index.scip\n```\n","funding_links":["https://github.com/sponsors/zigtools","https://opencollective.com/zigtools"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzigtools%2Fscip-zig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzigtools%2Fscip-zig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzigtools%2Fscip-zig/lists"}