{"id":36991413,"url":"https://github.com/reneherrero/dbc-rs","last_synced_at":"2026-01-13T23:42:53.424Z","repository":{"id":326009561,"uuid":"1103262262","full_name":"reneherrero/dbc-rs","owner":"reneherrero","description":"A Rust workspace containing the DBC (CAN Database) file parser library and command-line tools.","archived":false,"fork":false,"pushed_at":"2025-12-29T23:53:11.000Z","size":986,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-13T19:49:34.784Z","etag":null,"topics":["automotive","can","dbc","embedded"],"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":null,"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-11-24T16:31:39.000Z","updated_at":"2026-01-09T07:36:41.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/reneherrero/dbc-rs","commit_stats":null,"previous_names":["reneherrero/dbc-rs"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/reneherrero/dbc-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reneherrero%2Fdbc-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reneherrero%2Fdbc-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reneherrero%2Fdbc-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reneherrero%2Fdbc-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reneherrero","download_url":"https://codeload.github.com/reneherrero/dbc-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reneherrero%2Fdbc-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28405324,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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","can","dbc","embedded"],"created_at":"2026-01-13T23:42:53.341Z","updated_at":"2026-01-13T23:42:53.417Z","avatar_url":"https://github.com/reneherrero.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dbc-rs\n\nA lightweight Rust library for seamlessly parsing and editing DBC (CAN Database) files, with robust support for encoding and decoding messages and signals.\n\n[![Crates.io](https://img.shields.io/crates/v/dbc-rs.svg)](https://crates.io/crates/dbc-rs)\n[![Documentation](https://docs.rs/dbc-rs/badge.svg)](https://docs.rs/dbc-rs)\n[![License](https://img.shields.io/badge/license-MIT%20OR%20Apache--2.0-blue.svg)](LICENSING.md)\n\n## Features\n\n- **Zero dependencies** - Pure Rust, no external runtime dependencies\n- **no_std compatible** - Works on embedded targets (Cortex-M, RISC-V)\n- **Flexible memory** - Heap (`alloc`) or stack (`heapless`) allocation\n- **Memory safe** - `forbid(unsafe_code)` enforced\n- **Full read/write** - Parse, modify, and serialize DBC files\n\n## Quick Start\n\n```toml\n[dependencies]\ndbc-rs = \"0.4\"\n```\n\n### Decode CAN Frames\n\n```rust\nuse dbc_rs::Dbc;\n\n// Parse DBC content\nlet dbc = Dbc::parse(dbc_content)?;\n\n// Decode a CAN frame (ID 0x100, 8 bytes, standard 11-bit ID)\nlet signals = dbc.decode(0x100, \u0026frame_data, false)?;\nfor signal in signals {\n    println!(\"{}: {:.2} {}\", signal.name, signal.value, signal.unit);\n}\n```\n\n### Encode Signal Values\n\n```rust\nuse dbc_rs::Dbc;\n\nlet dbc = Dbc::parse(dbc_content)?;\n\n// Encode signal values into a CAN frame payload (standard 11-bit ID)\nlet payload = dbc.encode(0x100, \u0026[\n    (\"RPM\", 2500.0),\n    (\"Temperature\", 85.0),\n], false)?;\n```\n\n### Embedded (`no_std`)\n\n```toml\n[dependencies]\ndbc-rs = { version = \"0.4\", default-features = false, features = [\"heapless\"] }\n```\n\nSee [`examples/`](./examples/) for complete working examples:\n- `decode.rs` - Signal decoding basics\n- `decode_frame.rs` - Using `embedded-can` Frame trait\n- `encode.rs` - Encoding signals to CAN payloads\n- `create_dbc.rs` - Building DBC files programmatically\n- `parse_std.rs` / `parse_no_std.rs` - Parsing in different environments\n\n## Feature Flags\n\n| Feature | Description | Default |\n|---------|-------------|---------|\n| `std` | Standard library with builders | Yes |\n| `alloc` | Heap allocation | Via `std` |\n| `heapless` | Stack-only for `no_std` | No |\n| `embedded-can` | `embedded-can` crate integration | No |\n| `attributes` | BA_DEF_, BA_DEF_DEF_, BA_ support | Yes |\n\n## Documentation\n\n- [API Reference](https://docs.rs/dbc-rs)\n- [ARCHITECTURE.md](./ARCHITECTURE.md) - Internal design\n- [SPECIFICATIONS.md](./SPECIFICATIONS.md) - DBC format reference\n- [SECURITY.md](./SECURITY.md) - Security audit\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%2Fdbc-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freneherrero%2Fdbc-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freneherrero%2Fdbc-rs/lists"}