{"id":13438477,"url":"https://github.com/idletea/tokio-socketcan","last_synced_at":"2026-03-12T00:04:12.250Z","repository":{"id":46051967,"uuid":"165100106","full_name":"idletea/tokio-socketcan","owner":"idletea","description":"Asynchronous Linux SocketCAN sockets with tokio","archived":false,"fork":false,"pushed_at":"2023-05-09T23:46:52.000Z","size":31,"stargazers_count":36,"open_issues_count":4,"forks_count":17,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-12-14T03:16:21.096Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/idletea.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-01-10T17:12:41.000Z","updated_at":"2025-10-27T07:23:07.000Z","dependencies_parsed_at":"2022-09-26T20:40:49.340Z","dependency_job_id":null,"html_url":"https://github.com/idletea/tokio-socketcan","commit_stats":null,"previous_names":["idletea/tokio-socketcan","oefd/tokio-socketcan"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/idletea/tokio-socketcan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idletea%2Ftokio-socketcan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idletea%2Ftokio-socketcan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idletea%2Ftokio-socketcan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idletea%2Ftokio-socketcan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/idletea","download_url":"https://codeload.github.com/idletea/tokio-socketcan/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idletea%2Ftokio-socketcan/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28314262,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T14:58:17.114Z","status":"ssl_error","status_checked_at":"2026-01-11T14:55:53.580Z","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":[],"created_at":"2024-07-31T03:01:05.856Z","updated_at":"2026-01-11T17:03:31.998Z","avatar_url":"https://github.com/idletea.png","language":"Rust","funding_links":[],"categories":["Libraries"],"sub_categories":["Automotive"],"readme":"[![crates.io badge](https://img.shields.io/crates/v/tokio-socketcan.svg)](https://crates.io/crates/tokio-socketcan) [![documentation](https://img.shields.io/badge/documentation-docs.rs-green.svg)](https://docs.rs/tokio-socketcan)\n[![Continuous integration](https://github.com/oefd/tokio-socketcan/actions/workflows/ci.yml/badge.svg)](https://github.com/oefd/tokio-socketcan/actions/workflows/ci.yml)\n\n# tokio-socketcan\n\n[SocketCAN](https://www.kernel.org/doc/Documentation/networking/can.txt) support for [tokio](https://tokio.rs/) based on the [socketcan crate](https://crates.io/crates/socketcan).\n\n# Example  echo server\n\n```rust\nuse futures_util::stream::StreamExt;\nuse tokio_socketcan::{CANSocket, Error};\n\n#[tokio::main]\nasync fn main() -\u003e Result\u003c(), Error\u003e {\n    let mut socket_rx = CANSocket::open(\"vcan0\")?;\n    let socket_tx = CANSocket::open(\"vcan0\")?;\n    while let Some(Ok(frame)) = socket_rx.next().await {\n        socket_tx.write_frame(frame)?.await?;\n    }\n    Ok(())\n}\n```\n\n# Testing\n\nIntegrating the test into a CI system is non-trivial as it relies on a `vcan0` virtual can device existing. Adding one to most linux systems is pretty easy with root access but attaching a vcan device to a container for CI seems difficult to find support for.\n\nTo run the tests locally, though, setup should be simple:\n\n```sh\nsudo modprobe vcan\nsudo ip link add vcan0 type vcan\nsudo ip link set vcan0 up\ncargo test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidletea%2Ftokio-socketcan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fidletea%2Ftokio-socketcan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidletea%2Ftokio-socketcan/lists"}