{"id":36236554,"url":"https://github.com/reneherrero/someip-rs","last_synced_at":"2026-01-11T06:00:52.733Z","repository":{"id":329533121,"uuid":"1119901971","full_name":"reneherrero/someip-rs","owner":"reneherrero","description":"A Rust library for the SOME/IP (Scalable service-Oriented MiddlewarE over IP) protocol, built on std::net.","archived":false,"fork":false,"pushed_at":"2025-12-30T00:47:44.000Z","size":80,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-02T08:20:45.493Z","etag":null,"topics":["automotive","networking","someip"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reneherrero.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-20T04:23:51.000Z","updated_at":"2025-12-30T00:47:48.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/reneherrero/someip-rs","commit_stats":null,"previous_names":["reneherrero/someip-rs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/reneherrero/someip-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reneherrero%2Fsomeip-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reneherrero%2Fsomeip-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reneherrero%2Fsomeip-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reneherrero%2Fsomeip-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reneherrero","download_url":"https://codeload.github.com/reneherrero/someip-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reneherrero%2Fsomeip-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28293188,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T04:44:51.577Z","status":"ssl_error","status_checked_at":"2026-01-11T04:44:44.232Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["automotive","networking","someip"],"created_at":"2026-01-11T06:00:40.245Z","updated_at":"2026-01-11T06:00:52.720Z","avatar_url":"https://github.com/reneherrero.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# someip-rs\n\nA Rust library for the SOME/IP (Scalable service-Oriented MiddlewarE over IP) protocol, built on `std::net`.\n\n[![Crates.io](https://img.shields.io/crates/v/someip-rs.svg)](https://crates.io/crates/someip-rs)\n[![Documentation](https://docs.rs/someip-rs/badge.svg)](https://docs.rs/someip-rs)\n[![License](https://img.shields.io/badge/license-MIT%20OR%20Apache--2.0-blue.svg)](LICENSING.md)\n\n## Features\n\n- **Pure Rust** - No C dependencies, built on `std::net`\n- **Full SOME/IP support** - Complete 16-byte header with serialization\n- **Type-safe IDs** - `ServiceId`, `MethodId`, `ClientId`, `SessionId` newtypes\n- **TCP \u0026 UDP** - Both transport protocols with client/server support\n- **SOME/IP-SD** - Service Discovery for dynamic service registration\n- **SOME/IP-TP** - Transport Protocol for large message segmentation\n- **Async support** - Optional Tokio integration via `tokio` feature\n\n## Quick Start\n\n```toml\n[dependencies]\nsomeip-rs = \"0.1\"\n```\n\n### Send a Request (TCP)\n\n```rust\nuse someip_rs::{SomeIpMessage, ServiceId, MethodId};\nuse someip_rs::transport::TcpClient;\n\nlet mut client = TcpClient::connect(\"127.0.0.1:30490\")?;\n\nlet request = SomeIpMessage::request(ServiceId(0x1234), MethodId(0x0001))\n    .payload(b\"Hello, SOME/IP!\".as_slice())\n    .build();\n\nlet response = client.call(request)?;\nprintln!(\"Response: {:?}\", response.payload);\n```\n\n### Handle Requests (TCP Server)\n\n```rust\nuse someip_rs::transport::TcpServer;\nuse someip_rs::MessageType;\n\nlet server = TcpServer::bind(\"127.0.0.1:30490\")?;\n\nfor connection in server.incoming() {\n    let mut conn = connection?;\n    let request = conn.read_message()?;\n\n    if request.header.message_type == MessageType::Request {\n        let response = request.create_response()\n            .payload(b\"Hello back!\".as_slice())\n            .build();\n        conn.write_message(\u0026response)?;\n    }\n}\n```\n\n### UDP Client/Server\n\n```rust\nuse someip_rs::{SomeIpMessage, ServiceId, MethodId};\nuse someip_rs::transport::{UdpClient, UdpServer};\n\n// Client\nlet mut client = UdpClient::new()?;\nlet request = SomeIpMessage::request(ServiceId(0x1234), MethodId(0x0001))\n    .payload(b\"ping\".as_slice())\n    .build();\nlet response = client.call_to(\"127.0.0.1:30491\", request)?;\n\n// Server\nlet mut server = UdpServer::bind(\"127.0.0.1:30491\")?;\nlet (request, client_addr) = server.receive()?;\nserver.respond(\u0026request, b\"pong\".as_slice(), client_addr)?;\n```\n\n## Protocol Overview\n\nSOME/IP messages consist of a 16-byte header followed by an optional payload:\n\n```text\n+----------------+----------------+----------------+----------------+\n|         Service ID (16)         |         Method ID (16)          |\n+----------------+----------------+----------------+----------------+\n|                          Length (32)                              |\n+----------------+----------------+----------------+----------------+\n|         Client ID (16)          |         Session ID (16)         |\n+----------------+----------------+----------------+----------------+\n| Proto Ver (8)  | Iface Ver (8)  | Msg Type (8)   | Return Code(8) |\n+----------------+----------------+----------------+----------------+\n|                         Payload (variable)                        |\n+----------------+----------------+----------------+----------------+\n```\n\n## Feature Flags\n\n| Feature | Description | Default |\n|---------|-------------|---------|\n| `tokio` | Async transport with Tokio runtime | No |\n\n## Examples\n\nSee [`examples/`](./examples/) for complete working examples:\n\n- `message_basics.rs` - Message creation, serialization, and parsing\n- `tcp_server.rs` - TCP echo server\n- `tcp_client.rs` - TCP client with request/response\n- `udp_server.rs` - UDP server with responses\n- `udp_client.rs` - UDP client with request/response\n- `sd_server.rs` - Service Discovery server (offer services)\n- `sd_client.rs` - Service Discovery client (find services)\n\nRun examples:\n\n```bash\n# Message basics (standalone)\ncargo run --example message_basics\n\n# TCP (run server first, then client)\ncargo run --example tcp_server\ncargo run --example tcp_client\n\n# UDP (run server first, then client)\ncargo run --example udp_server\ncargo run --example udp_client\n\n# Service Discovery (run server first, then client)\ncargo run --example sd_server\ncargo run --example sd_client\n```\n\n## Documentation\n\n- [API Reference](https://docs.rs/someip-rs)\n- [ARCHITECTURE.md](./ARCHITECTURE.md) - Internal design\n\n## License\n\nMIT OR Apache-2.0. See [LICENSING.md](./LICENSING.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freneherrero%2Fsomeip-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freneherrero%2Fsomeip-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freneherrero%2Fsomeip-rs/lists"}