add macro crate

This commit is contained in:
Robin Müller 2022-11-27 15:48:21 +01:00
parent 02817e8bf3
commit c00270aa7a
No known key found for this signature in database
GPG Key ID: BE6480244DFE612C
4 changed files with 27 additions and 1 deletions

9
Cargo.lock generated
View File

@ -627,6 +627,15 @@ dependencies = [
"zerocopy",
]
[[package]]
name = "satrs-macro"
version = "0.1.0"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "scopeguard"
version = "1.1.0"

View File

@ -2,6 +2,7 @@
members = [
"satrs-core",
"satrs-macros",
"satrs-example",
"spacepackets",
"satrs-example"
]

16
satrs-macros/Cargo.toml Normal file
View File

@ -0,0 +1,16 @@
[package]
name = "satrs-macro"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
proc-macro = true
[dependencies]
quote = "1.0"
proc-macro2 = "1.0"
[dependencies.syn]
version = "1.0"
features = ["extra-traits"]

0
satrs-macros/src/lib.rs Normal file
View File