{"id":16593672,"url":"https://github.com/ranile/ripsy","last_synced_at":"2025-03-06T17:16:02.257Z","repository":{"id":193368096,"uuid":"688691343","full_name":"ranile/ripsy","owner":"ranile","description":"RPC between Server/Client written in Rust","archived":false,"fork":false,"pushed_at":"2023-09-07T23:09:30.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-28T14:59:59.158Z","etag":null,"topics":["rpc","rust"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/ripsy","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ranile.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-07T22:38:58.000Z","updated_at":"2023-09-07T23:07:09.000Z","dependencies_parsed_at":"2023-09-07T23:31:11.427Z","dependency_job_id":null,"html_url":"https://github.com/ranile/ripsy","commit_stats":null,"previous_names":["hamza1311/ripsy","ranile/ripsy"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranile%2Fripsy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranile%2Fripsy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranile%2Fripsy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranile%2Fripsy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ranile","download_url":"https://codeload.github.com/ranile/ripsy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242250926,"owners_count":20096897,"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":["rpc","rust"],"created_at":"2024-10-11T23:43:48.114Z","updated_at":"2025-03-06T17:16:02.235Z","avatar_url":"https://github.com/ranile.png","language":"Rust","readme":"# Ripsy\n\nRPC between Server/Client written in Rust\n\n## Why Ripsy?\n\nRRPC (Rust Remote Procedure Call) is pronounced as ripsy, thus the name of this crate.\n\n## Example\n\n**client/main.rs**\n```rust\nuse shared::add;\n\n#[tokio::main]\nasync fn main() {\n    ripsy::client::init(\"http://localhost:3000\");\n    let r: Result\u003cString, String\u003e = add(2).await.unwrap();\n    println!(\"{r:?}\"); // Ok(\"2\")\n}\n```\n\n**server/main.rs**\n```rust\nuse axum::routing::post;\nuse ripsy::Bincode;\nuse shared::add;\n\n#[tokio::main]\nasync fn main() {\n    let app = ripsy::ripsy!(add,);\n\n    axum::Server::bind(\u0026\"0.0.0.0:3000\".parse().unwrap())\n        .serve(app.into_make_service())\n        .await\n        .unwrap();\n}\n```\n\n**shared/lib.rs**\n```rust\nuse ripsy::endpoint;\n\n#[endpoint(mutation)]\npub async fn add(n: u32) -\u003e Result\u003cString, String\u003e {\n    if false {\n        work()?; // ? works fine\n    }\n    Ok(n.to_string())\n}\n\nfn work() -\u003e Result\u003c(), String\u003e { Err(\"err\".to_string())  }\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Franile%2Fripsy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Franile%2Fripsy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Franile%2Fripsy/lists"}