{"id":26854765,"url":"https://github.com/tuemb/peak-can-rs","last_synced_at":"2025-03-30T23:28:02.106Z","repository":{"id":284124515,"uuid":"953879482","full_name":"TuEmb/peak-can-rs","owner":"TuEmb","description":"Rust wrapper for API by PEAK","archived":false,"fork":false,"pushed_at":"2025-03-24T09:42:53.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T09:51:28.824Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TuEmb.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-24T08:21:06.000Z","updated_at":"2025-03-24T09:42:56.000Z","dependencies_parsed_at":"2025-03-24T09:51:31.613Z","dependency_job_id":"eca4698d-ce33-477f-bb3e-cf916169dbf5","html_url":"https://github.com/TuEmb/peak-can-rs","commit_stats":null,"previous_names":["tuemb/peak-can-rs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TuEmb%2Fpeak-can-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TuEmb%2Fpeak-can-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TuEmb%2Fpeak-can-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TuEmb%2Fpeak-can-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TuEmb","download_url":"https://codeload.github.com/TuEmb/peak-can-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246395331,"owners_count":20770232,"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":"2025-03-30T23:28:01.565Z","updated_at":"2025-03-30T23:28:02.097Z","avatar_url":"https://github.com/TuEmb.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# peak-can-rs\n\nA Rust wrapper for PEAK-System's PCAN-Basic API, providing access to PEAK CAN interfaces.\n\n## Features\n- Supports sending and receiving CAN messages.\n- Provides a safe Rust interface for working with PCAN devices.\n- FFI bindings to the PCAN-Basic library.\n\n## Requirements\n- Windows OS\n- PEAK-System PCAN drivers installed\n- `PCANBasic.lib` and `PCANBasic.dll` available\n\n## Installation\n\n### 1. Install the PCAN-Basic Library\nDownload and install the [PCAN-Basic API](https://www.peak-system.com/PCAN-Basic.239.0.html) from PEAK-System.\n\n### 2. Add `peak-can-rs` to Your Cargo Project\n\n```toml\n[dependencies]\npeak-can = \"0.1.0\"\n```\n\n## Usage\n\n### Example: Sending a CAN Message\n\n```\ncargo run --example receive\n```\n\n### Example: Receiving a CAN Message\n\n```\ncargo run --example receive\n```\n\n## Linking PCANBasic.lib\n\nIf you get a linking error, ensure `PCANBasic.lib` is in your library path:\n\n1. Download `PCANBasic.lib` from https://www.peak-system.com/Software-Information.77.0.html?\u0026L=1.\n2. Modify `build.rs` in your Rust project:\n\n```rust\nfn main() {\n    println!(\"cargo:rustc-link-search=native=C:\\\\Libraries\\\\PCANBasic\");\n    println!(\"cargo:rustc-link-lib=static=PCANBasic\");\n}\n```\n\n## License\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Contributions\nContributions are welcome! Feel free to open an issue or a pull request.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuemb%2Fpeak-can-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuemb%2Fpeak-can-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuemb%2Fpeak-can-rs/lists"}