Proc macro preparation
This commit is contained in:
15
simconnect-sdk-derive/Cargo.toml
Normal file
15
simconnect-sdk-derive/Cargo.toml
Normal file
@@ -0,0 +1,15 @@
|
||||
[package]
|
||||
name = "simconnect-sdk-derive"
|
||||
version = "0.1.0"
|
||||
authors = ["Mihai Dinculescu <mihai.dinculescu@outlook.com>"]
|
||||
edition = "2021"
|
||||
description = "Macros of SimConnect SDK for Rust"
|
||||
license = "MIT"
|
||||
|
||||
[lib]
|
||||
proc-macro = true
|
||||
|
||||
[dependencies]
|
||||
proc-macro2 = "1.0"
|
||||
quote = "1.0"
|
||||
syn = "1.0"
|
7
simconnect-sdk-derive/src/lib.rs
Normal file
7
simconnect-sdk-derive/src/lib.rs
Normal file
@@ -0,0 +1,7 @@
|
||||
extern crate proc_macro;
|
||||
use proc_macro::TokenStream;
|
||||
|
||||
#[proc_macro_derive(SimConnectObject, attributes(field))]
|
||||
pub fn derive(_: TokenStream) -> TokenStream {
|
||||
TokenStream::new()
|
||||
}
|
Reference in New Issue
Block a user