-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dynamic Codegen in Rust with Daedalus (#67)
* Added libs/cangen, to move the CAN types and some of the CAN codegen logic into Calypso from Embedded-Base * Added libs/daedalus, which exports proc macros to generate decode, encode, and simulate functions and mappings at compile time * Changed main to work with new code generated by daedalus macros format_data.rs is no longer generated, FormatData struct now hardcoded into data.rs Removed deprecated exports from lib.rs Removed calypsogen.py and its call in build.rs Changed Cargo.toml/.lock to include new dependencies (phf, cangen, daedalus) Removed deprecated files from .gitignore Now tracking decode_/encode_/simulate_data.rs, as they contain macro calls * Fixed bugs, now building and working * Implemented PR changes, refactored calypso-cangen traits for readability * Fixed for clippy * Allow clippy * Begrudging clippy compliance * Bug fix for reading small little endian values
- Loading branch information
1 parent
ea52c5f
commit 74d3aa1
Showing
20 changed files
with
1,047 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[package] | ||
name = "calypso-cangen" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
proc-macro2.workspace = true | ||
quote.workspace = true | ||
serde = { workspace = true, features = ["derive"] } |
Oops, something went wrong.