{"id":13520340,"url":"https://github.com/akiradeveloper/norpc","last_synced_at":"2025-12-30T08:00:46.335Z","repository":{"id":41976657,"uuid":"429866544","full_name":"akiradeveloper/norpc","owner":"akiradeveloper","description":"Blazingly fast framework for in-process microservices on top of Tower ecosystem","archived":false,"fork":false,"pushed_at":"2022-08-22T05:12:04.000Z","size":791,"stargazers_count":17,"open_issues_count":3,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-02T01:01:32.406Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/akiradeveloper.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-19T16:34:57.000Z","updated_at":"2023-11-14T18:09:48.000Z","dependencies_parsed_at":"2022-08-12T01:10:53.727Z","dependency_job_id":null,"html_url":"https://github.com/akiradeveloper/norpc","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akiradeveloper%2Fnorpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akiradeveloper%2Fnorpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akiradeveloper%2Fnorpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akiradeveloper%2Fnorpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akiradeveloper","download_url":"https://codeload.github.com/akiradeveloper/norpc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222670691,"owners_count":17020513,"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-08-01T05:02:18.015Z","updated_at":"2025-12-30T08:00:46.230Z","avatar_url":"https://github.com/akiradeveloper.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# norpc = not remote procedure call\n\n[![Crates.io](https://img.shields.io/crates/v/norpc.svg)](https://crates.io/crates/norpc)\n[![documentation](https://docs.rs/norpc/badge.svg)](https://docs.rs/norpc)\n![CI](https://github.com/akiradeveloper/norpc/workflows/CI/badge.svg)\n[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/akiradeveloper/norpc/blob/master/LICENSE)\n[![Tokei](https://tokei.rs/b1/github/akiradeveloper/norpc)](https://github.com/akiradeveloper/norpc)\n\n[Documentation](https://akiradeveloper.github.io/norpc/)\n\n## Example\n\n```rust\n#[norpc::service]\ntrait HelloWorld {\n   fn hello(s: String) -\u003e String;\n}\nstruct HelloWorldApp;\n#[async_trait::async_trait]\nimpl HelloWorld for HelloWorldApp {\n   async fn hello(\u0026self, s: String) -\u003e String {\n       format!(\"Hello, {}\", s)\n   }\n}\nlet rep = tokio_test::block_on(async {\n    use norpc::runtime::*;\n    let app = HelloWorldApp;\n    let svc = HelloWorldService::new(app);\n    let (chan, server) = ServerBuilder::new(svc).build();\n    tokio::spawn(server.serve(TokioExecutor));\n    let mut cli = HelloWorldClient::new(chan);\n    cli.hello(\"World\".to_owned()).await\n});\nassert_eq!(rep, \"Hello, World\");\n```\n\n## Usage\n\n```\nnorpc = { version = \"0.9\", features = [\"runtime\", \"tokio-executor\"] }\n```\n\n- runtime: Use norpc runtime\n- tokio-executor: Use tokio as async runtime.\n- async-std-executor: Use async-std as async runtime.\n\n## Features\n\n- Support in-process microservices through async channel.\n- Async runtime agnostic.\n- Support non-`Send` types.\n- Support request cancellation from client.\n\n## Performance\n\nnorpc is about 2x faster than [google/tarpc](https://github.com/google/tarpc).\n\nTo compare the pure overhead, he benchmark program launches\na no-op server and send requests from the client.\n\n```\nnoop request (norpc)/1  time:   [8.9181 us 8.9571 us 9.0167 us]\nnoop request (tarpc)/1  time:   [15.476 us 15.514 us 15.554 us]\n```\n\n## Author\n\nAkira Hayakawa (@akiradeveloper)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakiradeveloper%2Fnorpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakiradeveloper%2Fnorpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakiradeveloper%2Fnorpc/lists"}