Skip to content

Commit

Permalink
macros: add stub for OptsBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
noib3 committed Dec 3, 2023
1 parent 83b5ddd commit fc83eec
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/oxi-macros/src/derive_opts.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
use proc_macro::TokenStream;

/// TODO: docs
pub fn derive_opts_builder(_attr: TokenStream) -> TokenStream {
TokenStream::default()
}
8 changes: 8 additions & 0 deletions crates/oxi-macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ use proc_macro2::{Ident, Span};
use quote::quote;
use syn::parse_macro_input;

mod derive_opts;

/// TODO: docs
#[proc_macro_derive(OptsBuilder)]
pub fn derive_opts_builder(input: TokenStream) -> TokenStream {
derive_opts::derive_opts_builder(input)
}

// *Heavily* inspired by mlua's `lua_module` proc macro.
//
/// Marks the plugin entrypoint.
Expand Down

0 comments on commit fc83eec

Please sign in to comment.