{"id":19847748,"url":"https://github.com/kkharji/build-server-protocol","last_synced_at":"2026-06-10T08:30:59.556Z","repository":{"id":62444320,"uuid":"483718762","full_name":"kkharji/build-server-protocol","owner":"kkharji","description":"Rust crate for creating BSP Servers.","archived":false,"fork":false,"pushed_at":"2022-05-26T14:23:33.000Z","size":156,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-06T21:25:34.593Z","etag":null,"topics":["build-server-protocol","protocol","rpc","rpc-library","rust"],"latest_commit_sha":null,"homepage":"https://docs.rs/bsp-server/0.1.0/bsp_server/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kkharji.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-20T15:51:55.000Z","updated_at":"2022-10-29T13:01:42.000Z","dependencies_parsed_at":"2022-11-01T22:30:31.327Z","dependency_job_id":null,"html_url":"https://github.com/kkharji/build-server-protocol","commit_stats":null,"previous_names":["tami5/build-server-protocol"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/kkharji/build-server-protocol","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkharji%2Fbuild-server-protocol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkharji%2Fbuild-server-protocol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkharji%2Fbuild-server-protocol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkharji%2Fbuild-server-protocol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kkharji","download_url":"https://codeload.github.com/kkharji/build-server-protocol/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkharji%2Fbuild-server-protocol/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34144679,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["build-server-protocol","protocol","rpc","rpc-library","rust"],"created_at":"2024-11-12T13:15:00.926Z","updated_at":"2026-06-10T08:30:59.539Z","avatar_url":"https://github.com/kkharji.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Build Server Protocol\n\nState: Working, Unstable\n[Build Server Protocol](https://build-server-protocol.github.io/docs/specification.html) client, server and type definition in rust.\n## Install \n\n```\nbsp-server = \"0.1.3\"\n# OR if you want just types\nbsp-types = \"0.1.3\"\n```\n\n## Example \n\n```rust \nuse anyhow::Result;\nuse bsp_server::{types::*, *};\n\nfn main() -\u003e Result\u003c()\u003e {\n    install_tracing(\"/tmp/\", \"xcodebase-server.log\", false)?;\n    let (conn, io_threads) = Connection::stdio();\n\n    tracing::info!(\"Started------------------------------\");\n\n    let params = conn.initialize(|params| crate::server::initialize(\u0026params).expect(\"Initialize\"))?;\n\n    block(conn, params)?;\n\n    io_threads.join()?;\n\n    tracing::info!(\"Ended ------------------------------\");\n\n    Ok(())\n}\n\nfn block(conn: Connection, _initialize_params: InitializeBuild) -\u003e Result\u003c()\u003e {\n    for msg in \u0026conn.receiver {\n        match msg {\n            Message::Request(req) =\u003e {\n                use Request::*;\n                match req {\n                    Shutdown(_) =\u003e {\n                        conn.handle_shutdown(\u0026req)?;\n                        return Ok(());\n                    }\n                    WorkspaceBuildTargets(id) =\u003e {\n                        conn.send((id, WorkspaceBuildTargetsResult::default()))?;\n                    }\n                    BuildTargetSources(id, _) =\u003e {\n                        conn.send((id, BuildTargetSourcesResult::default()))?;\n                    }\n                    _ =\u003e {\n                        tracing::warn!(\"Unable to handle:\\n\\n{:#?}\\n\", req);\n                        conn.send(Response::method_not_found(req.id().clone(), \"\".into()))?;\n                    }\n                };\n            }\n            Message::Response(_) =\u003e {}\n            Message::Notification(_) =\u003e {}\n        };\n    }\n    Ok(())\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkharji%2Fbuild-server-protocol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkkharji%2Fbuild-server-protocol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkharji%2Fbuild-server-protocol/lists"}