{"id":7746117,"name":"sourcegraph/lsif-rust-action","ecosystem":"actions","description":"Generate LSIF data from Rust source code","homepage":null,"licenses":"mit","normalized_licenses":["MIT"],"repository_url":"https://github.com/sourcegraph/lsif-rust-action","keywords_array":[],"namespace":"sourcegraph","versions_count":1,"first_release_published_at":"2021-11-11T20:23:33.000Z","latest_release_published_at":"2021-11-11T20:23:33.000Z","latest_release_number":"v0.1.0","last_synced_at":"2026-04-11T13:46:30.085Z","created_at":"2023-05-17T10:24:32.577Z","updated_at":"2026-04-11T13:46:30.086Z","registry_url":"https://github.com/sourcegraph/lsif-rust-action","install_command":null,"documentation_url":null,"metadata":{"name":"Sourcegraph Rust LSIF Indexer","description":"Generate LSIF data from Rust source code","author":"Sourcegraph","branding":{"icon":"code","color":"purple"},"inputs":{"project_root":{"description":"The root of the repository. There must be at least one Cargo.toml file at the root or in some (transitive) subdirectory.","default":"."}},"runs":{"using":"composite","steps":[{"name":"Checkout lsif-rust-action","uses":"actions/checkout@v2"},{"name":"Download rust-analyzer","shell":"python","env":{"ACTION_PATH":"${{ github.action_path }}"},"run":"import os\naction_path = os.environ['ACTION_PATH']\nold_wd = os.getcwd()\nos.chdir(action_path)\nwith open(\"download-rust-analyzer.py\") as f:\n    code = compile(f.read(), \"download-rust-analyzer.py\", 'exec')\n    exec(code, None, None)\nos.chdir(old_wd)\n"},{"name":"Create LSIF index","shell":"python","env":{"ACTION_PATH":"${{ github.action_path }}","PROJECT_ROOT":"${{ inputs.project_root }}"},"run":"import subprocess\nimport os\nrust_analyzer_path = \"rust-analyzer\"\nif os.environ[\"RUNNER_OS\"] == \"Windows\":\n    rust_analyzer_path += \".exe\"\nrust_analyzer_path = os.path.join(os.environ[\"ACTION_PATH\"], rust_analyzer_path)\nCWD = os.getcwd()\ntry:\n    project_dir = os.environ[\"PROJECT_ROOT\"]\nexcept KeyError:\n    project_dir = CWD\nwith open(\"dump.lsif\", 'w') as lsif:\n    subprocess.run([rust_analyzer_path, \"lsif\", project_dir], stdout=lsif).check_returncode()\n"}]},"default_branch":"main","path":null},"repo_metadata":{"uuid":"424981920","full_name":"sourcegraph/lsif-rust-action","owner":"sourcegraph","description":"A GitHub Action to upload LSIF data to Sourcegraph for precise code intelligence","archived":false,"fork":false,"pushed_at":"2022-07-07T07:53:39.000Z","size":19,"stargazers_count":4,"open_issues_count":2,"forks_count":2,"subscribers_count":13,"default_branch":"main","last_synced_at":"2023-07-13T08:44:46.767Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/sourcegraph.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}},"created_at":"2021-11-05T14:44:53.000Z","updated_at":"2022-05-28T11:36:22.000Z","dependencies_parsed_at":"2022-07-12T03:30:27.261Z","dependency_job_id":null,"html_url":"https://github.com/sourcegraph/lsif-rust-action","commit_stats":null,"previous_names":[],"tags_count":1,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Flsif-rust-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Flsif-rust-action/tags","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Flsif-rust-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sourcegraph","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":145723068,"owners_count":6280685,"icon_url":"https://github.com/github.png","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"},"owner_record":{"login":"sourcegraph","name":"Sourcegraph","uuid":"3979584","kind":"organization","description":"Code Intelligence Platform","email":"hi@sourcegraph.com","website":"https://sourcegraph.com","location":null,"twitter":null,"company":null,"icon_url":"https://avatars.githubusercontent.com/u/3979584?v=4","repositories_count":490,"last_synced_at":"2023-05-21T19:00:40.733Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/sourcegraph","created_at":"2022-11-05T04:21:26.329Z","updated_at":"2023-05-21T19:00:40.816Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sourcegraph","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sourcegraph/repositories"},"tags":[{"name":"v0.1.0","sha":"dfbca204ad7973be95883d84c3e9aaa5142ad36c","kind":"tag","published_at":"2021-11-11T20:23:33.000Z","download_url":"https://codeload.github.com/sourcegraph/lsif-rust-action/tar.gz/v0.1.0","html_url":"https://github.com/sourcegraph/lsif-rust-action/releases/tag/v0.1.0","dependencies_parsed_at":"2023-05-31T09:34:20.206Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Flsif-rust-action/tags/v0.1.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Flsif-rust-action/tags/v0.1.0/manifests"}]},"repo_metadata_updated_at":"2023-07-14T10:22:31.265Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":5,"rankings":{"downloads":null,"dependent_repos_count":15.328790999841546,"dependent_packages_count":0.0,"stargazers_count":19.79084138805261,"forks_count":16.12739660909523,"docker_downloads_count":3.5620345428616704,"average":10.96181270797021},"purl":"pkg:githubactions/sourcegraph/lsif-rust-action","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/actions/sourcegraph/lsif-rust-action","docker_dependents_count":1,"docker_downloads_count":66,"usage_url":"https://repos.ecosyste.ms/usage/actions/sourcegraph/lsif-rust-action","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/actions/sourcegraph/lsif-rust-action/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":null,"versions_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/sourcegraph%2Flsif-rust-action/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/sourcegraph%2Flsif-rust-action/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/sourcegraph%2Flsif-rust-action/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/sourcegraph%2Flsif-rust-action/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/sourcegraph%2Flsif-rust-action/codemeta","maintainers":[]}