diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..a437fe1c --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,103 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] + +## [0.4.0](https://github.com/oxibus/dbc-codegen/compare/v0.3.0...v0.4.0) - 2026-08-25 + +### Added + +- optional padding bit value ([#184](https://github.com/oxibus/dbc-codegen/pull/184)) +- add `DBC_FILE_NAME` + ver, proper code formatting ([#131](https://github.com/oxibus/dbc-codegen/pull/131)) +- [**breaking**] streamline DBC code generation and file writing ([#128](https://github.com/oxibus/dbc-codegen/pull/128)) + +### Fixed + +- support large min/max values without precision loss ([#152](https://github.com/oxibus/dbc-codegen/pull/152)) +- handle duplicate signal names ([#126](https://github.com/oxibus/dbc-codegen/pull/126)) +- handle empty relevant msgs in from_can_message ([#125](https://github.com/oxibus/dbc-codegen/pull/125)) +- fix typo +- fix formatting errors +- fix factor/offset not getting applied to 0 for unsigned case +- fix duplicate enum names on multiplex messages +- fix issue where signed signals would be rendered as unsigned + +### Other + +- Support relation attributes in attribute_structs ([#192](https://github.com/oxibus/dbc-codegen/pull/192)) +- Generate enum-typed setters and constructors for signals with value descriptions ([#178](https://github.com/oxibus/dbc-codegen/pull/178)) +- Emit MESSAGE_CYCLE_TIME as integer ([#186](https://github.com/oxibus/dbc-codegen/pull/186)) +- Generate message size and cycle time consts ([#176](https://github.com/oxibus/dbc-codegen/pull/176)) +- Add option to generate typed constants from DBC attributes ([#175](https://github.com/oxibus/dbc-codegen/pull/175)) +- update can-dbc ([#181](https://github.com/oxibus/dbc-codegen/pull/181)) +- rust ver bump ([#182](https://github.com/oxibus/dbc-codegen/pull/182)) +- cleanup clippy, justfile, and proj cleanup ([#180](https://github.com/oxibus/dbc-codegen/pull/180)) +- *(deps)* bump the all-cargo-version-updates group across 1 directory with 4 updates ([#172](https://github.com/oxibus/dbc-codegen/pull/172)) +- *(deps)* bump codecov/codecov-action from 6 to 7 in the all-actions-version-updates group ([#165](https://github.com/oxibus/dbc-codegen/pull/165)) +- *(deps)* bump the all-cargo-version-updates group across 1 directory with 4 updates ([#168](https://github.com/oxibus/dbc-codegen/pull/168)) +- *(deps)* bump the all-cargo-version-updates group across 1 directory with 3 updates ([#163](https://github.com/oxibus/dbc-codegen/pull/163)) +- *(deps)* bump the all-cargo-version-updates group with 2 updates ([#161](https://github.com/oxibus/dbc-codegen/pull/161)) +- *(deps)* bump the all-cargo-version-updates group across 1 directory with 2 updates ([#158](https://github.com/oxibus/dbc-codegen/pull/158)) +- *(deps)* bump the all-actions-version-updates group across 1 directory with 2 updates ([#159](https://github.com/oxibus/dbc-codegen/pull/159)) +- update expected errors to Rust 1.94 ([#153](https://github.com/oxibus/dbc-codegen/pull/153)) +- *(deps)* bump the all-cargo-version-updates group across 1 directory with 2 updates ([#145](https://github.com/oxibus/dbc-codegen/pull/145)) +- *(deps)* bump insta from 1.46.2 to 1.46.3 in the all-cargo-version-updates group ([#143](https://github.com/oxibus/dbc-codegen/pull/143)) +- upgrade to rust 1.93 stderr ([#142](https://github.com/oxibus/dbc-codegen/pull/142)) +- *(deps)* bump the all-cargo-version-updates group across 1 directory with 4 updates ([#141](https://github.com/oxibus/dbc-codegen/pull/141)) +- [**breaking**] remove main fn from generated code ([#138](https://github.com/oxibus/dbc-codegen/pull/138)) +- make many rendering fn methods on config ([#133](https://github.com/oxibus/dbc-codegen/pull/133)) +- *(deps)* bump clap from 4.5.54 to 4.5.55 in the all-cargo-version-updates group ([#134](https://github.com/oxibus/dbc-codegen/pull/134)) +- use `quote` crate to handle str escaping ([#132](https://github.com/oxibus/dbc-codegen/pull/132)) +- noop - dedup, cleanup, new type abstraction ([#130](https://github.com/oxibus/dbc-codegen/pull/130)) +- update shared tests, bump deps, freeze to rust 1.92 ([#127](https://github.com/oxibus/dbc-codegen/pull/127)) +- *(deps)* bump can-dbc from 8.0.0 to 8.0.1 in the all-cargo-version-updates group ([#129](https://github.com/oxibus/dbc-codegen/pull/129)) +- do not clean lock +- bump dependencies and enable verbose output for release actions ([#120](https://github.com/oxibus/dbc-codegen/pull/120)) +- [pre-commit.ci] pre-commit autoupdate ([#119](https://github.com/oxibus/dbc-codegen/pull/119)) +- Bump the all-cargo-version-updates group across 1 directory with 2 updates ([#118](https://github.com/oxibus/dbc-codegen/pull/118)) +- refactor write functions, improve CI, MSRV ([#116](https://github.com/oxibus/dbc-codegen/pull/116)) +- minor code cleanup ([#114](https://github.com/oxibus/dbc-codegen/pull/114)) +- generate and compile all .dbc files from test repo ([#113](https://github.com/oxibus/dbc-codegen/pull/113)) +- allow generated file to be used with `include!` ([#108](https://github.com/oxibus/dbc-codegen/pull/108)) +- Bump the all-cargo-version-updates group across 1 directory with 2 updates ([#111](https://github.com/oxibus/dbc-codegen/pull/111)) +- minor justfile fix, editorconfig ([#112](https://github.com/oxibus/dbc-codegen/pull/112)) +- Bump actions/cache from 4 to 5 in the all-actions-version-updates group ([#110](https://github.com/oxibus/dbc-codegen/pull/110)) +- OxiBUS onboarding cleanup ([#102](https://github.com/oxibus/dbc-codegen/pull/102)) +- run `just fmt` to cleanup imports ([#107](https://github.com/oxibus/dbc-codegen/pull/107)) +- Bump the all-cargo-version-updates group across 1 directory with 9 updates ([#106](https://github.com/oxibus/dbc-codegen/pull/106)) +- upgrade to can-dbc v8 ([#101](https://github.com/oxibus/dbc-codegen/pull/101)) +- Bump actions/checkout from 1 to 6 in the all-actions-version-updates group ([#104](https://github.com/oxibus/dbc-codegen/pull/104)) +- *(CI)* minor CI updates, automate dependabot ([#103](https://github.com/oxibus/dbc-codegen/pull/103)) +- Add optional defmt::Format support for generated types +- Merge pull request #85 from inomotech-foss/fix-mux-msg-id +- Use message name instead of self +- Generate embedded_can::Frame trait for each frame +- Represent CAN message IDs as embedded_can::Id to support extended IDs +- Fix issue with decoding signed values of non-standard length +- revert change to Cargo.toml, not necessary +- address clippy's concerns (thanks clippy), enhance comments +- make can-messages dependency optional so it doesn't pull in std +- reduce diff against main +- handle more edge cases, use i128 as the maximum type +- reorder lines to match signals +- drop symlink in favor of copy so it works on Windows +- revert because I missed the case of check_ranges being false +- add tests, edge cases where the min/max is way less than signal width +- clean up warning +- add unsigned to the name, add test case +- change signal logic to handle negative factors, add tests +- Bump rustc to latest stable, 1.78 +- Merge pull request #68 from projectgus/tweaks/codegen_warnings +- Rename .envrc for non-Nix users, add note in README +- dont assign signed integers to unsigned integers +- Update README +- Fix clippy warnings +- Use checked_sub(offset) for set_signal methods +- Don't treat signals as floats if factor is integer +- Add flag to impl std Error +- Tweak docs and optional features +- Make feature-gated impls configurable diff --git a/Cargo.lock b/Cargo.lock index d027956f..35d66a20 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,9 +4,9 @@ version = 4 [[package]] name = "aho-corasick" -version = "1.1.4" +version = "1.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301" +checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba" dependencies = [ "memchr", ] @@ -63,9 +63,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.103" +version = "1.0.104" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a4385e2e34eb35d6b3efe798b9eb88096925d87726c0798709bf56d9ed84af3" +checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" [[package]] name = "approx" @@ -105,7 +105,7 @@ dependencies = [ "regex", "rustc-hash", "shlex 1.3.0", - "syn", + "syn 2.0.119", ] [[package]] @@ -190,9 +190,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.2.67" +version = "1.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e17dd265a7d0f31ef544e1b20e03add05d3b45b491b633b10d67145d2acc1a38" +checksum = "0ad534f4357a5264cce5019c989cf66a4f0dc4e0d1b1d15f8aacec0ff7360273" dependencies = [ "find-msvc-tools", "shlex 2.0.1", @@ -215,9 +215,9 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" [[package]] name = "clang-sys" -version = "1.8.1" +version = "1.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b023947811758c97c59bf9d1c188fd619ad4718dcaa767947df1cadb14f39f4" +checksum = "157a8ba7b480713b56f4c09fd13fc3e0a22a5dfab8097ba61cbc5feef950788a" dependencies = [ "glob", "libc", @@ -226,9 +226,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.6.2" +version = "4.6.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd059f9da4f5c36b3787f65d38ccaab1cc315f07b01f89abc8359ee6a8205011" +checksum = "473c7e07f409a8d772161724aa8db6a765a2532a70f9667eeb7b49d3d02fbdca" dependencies = [ "clap_builder", "clap_derive", @@ -236,9 +236,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.6.2" +version = "4.6.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f09628afdcc538b57f3c6341e9c8e9970f18e4a481690a64974d7023bd33548b" +checksum = "7b48fea5a88e9ae728a2dcbedbfc0e730f7d60da42e1cb049a83c9fb8b789889" dependencies = [ "anstream", "anstyle", @@ -248,14 +248,14 @@ dependencies = [ [[package]] name = "clap_derive" -version = "4.6.1" +version = "4.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2ce8604710f6733aa641a2b3731eaa1e8b3d9973d5e3565da11800813f997a9" +checksum = "d012d2b9d65aca7f18f4d9878a045bc17899bba951561ba5ec3c2ba1eed9a061" dependencies = [ "heck", "proc-macro2", "quote", - "syn", + "syn 3.0.4", ] [[package]] @@ -283,7 +283,7 @@ dependencies = [ [[package]] name = "dbc-codegen" -version = "0.3.0" +version = "0.4.0" dependencies = [ "anyhow", "bitvec", @@ -293,7 +293,7 @@ dependencies = [ "insta", "prettyplease", "quote", - "syn", + "syn 2.0.119", "test_each_file", "trybuild", "typed-builder", @@ -302,7 +302,7 @@ dependencies = [ [[package]] name = "dbc-codegen-cli" -version = "0.3.0" +version = "0.4.0" dependencies = [ "clap", "dbc-codegen", @@ -328,7 +328,7 @@ dependencies = [ "defmt-parser", "proc-macro2", "quote", - "syn", + "syn 2.0.119", ] [[package]] @@ -342,9 +342,9 @@ dependencies = [ [[package]] name = "either" -version = "1.16.0" +version = "1.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91622ff5e7162018101f2fea40d6ebf4a78bbe5a49736a2020649edf9693679e" +checksum = "252afb9ae5eaa683babdc6a068b3f5726eb19e05070c731f9b2a23a7c3e8ed34" [[package]] name = "embedded-can" @@ -394,15 +394,15 @@ checksum = "de853764b47027c2e862a995c34978ffa63c1501f2e15f987ba11bd4f9bba193" [[package]] name = "fastrand" -version = "2.4.1" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f1f227452a390804cdb637b74a86990f2a7d7ba4b7d5693aac9b4dd6defd8d6" +checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223" [[package]] name = "find-msvc-tools" -version = "0.1.9" +version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" +checksum = "d45db016d36b838f563236e9193d0ee6ce38f3f68b6c94e914b4929c96bbb890" [[package]] name = "funty" @@ -423,9 +423,9 @@ dependencies = [ [[package]] name = "glob" -version = "0.3.3" +version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280" +checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b" [[package]] name = "hashbrown" @@ -484,9 +484,9 @@ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" [[package]] name = "libc" -version = "0.2.186" +version = "0.2.189" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66" +checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2" [[package]] name = "libloading" @@ -506,9 +506,9 @@ checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" [[package]] name = "log" -version = "0.4.33" +version = "0.4.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad" +checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6" [[package]] name = "memchr" @@ -561,9 +561,9 @@ checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe" [[package]] name = "pest" -version = "2.8.7" +version = "2.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47627dd7305c6a2d6c8c6bcd24c5a4c17dbbf425f4f9c5313e724b38fc9782e9" +checksum = "5a07a60cc7a4d00c91f95c685609d1d2f79050e6804b70ebedd7650f0b839bcf" dependencies = [ "memchr", "ucd-trie", @@ -571,9 +571,9 @@ dependencies = [ [[package]] name = "pest_derive" -version = "2.8.7" +version = "2.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b4254325ecad416ab689e27ba51da03ba01a9632bc6e108f5fe7c3c4ad29d58" +checksum = "b3a83744a5c8455b8b3e0dc5031362780a347c878bdd11584d1a8984228cc88d" dependencies = [ "pest", "pest_generator", @@ -581,22 +581,22 @@ dependencies = [ [[package]] name = "pest_generator" -version = "2.8.7" +version = "2.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c4c0e91ead7a8f7acecbca6f003fc2e8282b1dbe2dd9c9d2f16aba42995e0a7" +checksum = "e0cd3451aa3de60d4b9a1e736885e4dea6b31617598026f12256ad566d63304a" dependencies = [ "pest", "pest_meta", "proc-macro2", "quote", - "syn", + "syn 2.0.119", ] [[package]] name = "pest_meta" -version = "2.8.7" +version = "2.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9744bc48116fee06334924bb5f2bad41eed5e89bd26e29b0b799f9a3f82c210" +checksum = "e04d3a0849e241d7dfce834c83b1c5edc8622009e8dd51a12ba1927c32f05496" dependencies = [ "pest", ] @@ -608,23 +608,23 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b" dependencies = [ "proc-macro2", - "syn", + "syn 2.0.119", ] [[package]] name = "proc-macro2" -version = "1.0.106" +version = "1.0.107" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" +checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" dependencies = [ "unicode-ident", ] [[package]] name = "quote" -version = "1.0.46" +version = "1.0.47" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfbc457d0c7a0759a614551b11a6409e5951f6c7537be1f1b7682b9ae9230368" +checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" dependencies = [ "proc-macro2", ] @@ -664,9 +664,9 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.16" +version = "0.4.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fcfdb36bda0c880c5931cdc7a2bcdc8ba4556847b9d912bca70bc94708711ad" +checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2" dependencies = [ "aho-corasick", "memchr", @@ -709,9 +709,9 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.228" +version = "1.0.229" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" +checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba" dependencies = [ "serde_core", "serde_derive", @@ -719,29 +719,29 @@ dependencies = [ [[package]] name = "serde_core" -version = "1.0.228" +version = "1.0.229" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" +checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.228" +version = "1.0.229" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" +checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 3.0.4", ] [[package]] name = "serde_json" -version = "1.0.150" +version = "1.0.151" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8014e44b4736ed0538adeecded0fce2a272f22dc9578a7eb6b2d9993c74cfb9" +checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14" dependencies = [ "itoa", "memchr", @@ -794,6 +794,17 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "syn" +version = "3.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6275cddf4610d1775e6d1fe9469b2e77d0f39fd98fb7450901b821e0c53649f" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + [[package]] name = "tap" version = "1.0.1" @@ -802,9 +813,9 @@ checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" [[package]] name = "target-triple" -version = "1.0.0" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "591ef38edfb78ca4771ee32cf494cb8771944bee237a9b91fc9c1424ac4b777b" +checksum = "c3a6bfce3d99adfa72d24750a61f782f3036a81e7f86d8841ee1326deaebd171" [[package]] name = "tempfile" @@ -836,35 +847,35 @@ checksum = "44619e49a1f62888c271dc50533f036363a7936f99c7cb467ca9d45224cf83b3" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.119", "unicode-ident", ] [[package]] name = "thiserror" -version = "2.0.18" +version = "2.0.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4" +checksum = "ec86235f5fcc2a73650310756d2ac5b138a5780bbbdfae3eeccec992c435ba4f" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "2.0.18" +version = "2.0.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5" +checksum = "bc04cd3e1236dd4a98afca4569f2deb3f120e5422a4023be2cb683f8486292af" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 3.0.4", ] [[package]] name = "toml" -version = "1.1.3+spec-1.1.0" +version = "1.1.4+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53c96ecdfa941c8fc4fcaed14f99ada8ebed502eef533015095a07e3301d4c3c" +checksum = "3aace63f4bbcdfc2c965b059de67119c89c4017a70d633be6c104910f67056f5" dependencies = [ "indexmap", "serde_core", @@ -886,9 +897,9 @@ dependencies = [ [[package]] name = "toml_parser" -version = "1.1.2+spec-1.1.0" +version = "1.1.3+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2abe9b86193656635d2411dc43050282ca48aa31c2451210f4202550afb7526" +checksum = "1d38ac1cf9b95face32296c0a3ede1fdc270627c9d9c02a7274dd6d960dc4d56" dependencies = [ "winnow", ] @@ -901,9 +912,9 @@ checksum = "7d56353a2a665ad0f41a421187180aab746c8c325620617ad883a99a1cbe66d2" [[package]] name = "trybuild" -version = "1.0.118" +version = "1.0.120" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06649c6f63d86604ba0c8950d5a1829fc9a17afd70fc6629f481d75b6a624c78" +checksum = "1e605bf6b39357663d8ba4e984f8be8da8df6bb32e81031d6889024ea8fd68e4" dependencies = [ "glob", "serde", @@ -931,7 +942,7 @@ checksum = "076a02dc54dd46795c2e9c8282ed40bcfb1e22747e955de9389a1de28190fb26" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.119", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index ff5b005b..330fea02 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dbc-codegen" -version = "0.3.0" +version = "0.4.0" description = "CAN DBC code-gen for embedded Rust" authors = [ "Pascal Hertleif ", diff --git a/dbc-codegen-cli/CHANGELOG.md b/dbc-codegen-cli/CHANGELOG.md new file mode 100644 index 00000000..ca2a6596 --- /dev/null +++ b/dbc-codegen-cli/CHANGELOG.md @@ -0,0 +1,33 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] + +## [0.4.0](https://github.com/oxibus/dbc-codegen/compare/v0.3.0...v0.4.0) - 2026-08-25 + +### Added + +- [**breaking**] streamline DBC code generation and file writing ([#128](https://github.com/oxibus/dbc-codegen/pull/128)) + +### Other + +- Support relation attributes in attribute_structs ([#192](https://github.com/oxibus/dbc-codegen/pull/192)) +- Generate message size and cycle time consts ([#176](https://github.com/oxibus/dbc-codegen/pull/176)) +- Add option to generate typed constants from DBC attributes ([#175](https://github.com/oxibus/dbc-codegen/pull/175)) +- cleanup clippy, justfile, and proj cleanup ([#180](https://github.com/oxibus/dbc-codegen/pull/180)) +- *(deps)* bump the all-cargo-version-updates group with 2 updates ([#161](https://github.com/oxibus/dbc-codegen/pull/161)) +- minor code cleanup ([#114](https://github.com/oxibus/dbc-codegen/pull/114)) +- allow generated file to be used with `include!` ([#108](https://github.com/oxibus/dbc-codegen/pull/108)) +- OxiBUS onboarding cleanup ([#102](https://github.com/oxibus/dbc-codegen/pull/102)) +- run `just fmt` to cleanup imports ([#107](https://github.com/oxibus/dbc-codegen/pull/107)) +- Bump the all-cargo-version-updates group across 1 directory with 9 updates ([#106](https://github.com/oxibus/dbc-codegen/pull/106)) +- upgrade to can-dbc v8 ([#101](https://github.com/oxibus/dbc-codegen/pull/101)) +- make debug_prints configurable +- Merge pull request #68 from projectgus/tweaks/codegen_warnings +- Rename .envrc for non-Nix users, add note in README +- Update README +- Make feature-gated impls configurable diff --git a/dbc-codegen-cli/Cargo.toml b/dbc-codegen-cli/Cargo.toml index c7b22795..64b855a3 100644 --- a/dbc-codegen-cli/Cargo.toml +++ b/dbc-codegen-cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dbc-codegen-cli" -version = "0.3.0" +version = "0.4.0" description = "CLI for CAN DBC codegen" authors = [ "Pascal Hertleif ", @@ -21,5 +21,5 @@ doc = false [dependencies] clap = { version = "4.6", features = ["derive"] } -dbc-codegen = { version = "0.3", path = ".." } +dbc-codegen = { version = "0.4", path = ".." } exitcode = "1.1.2"