forked from libre-chip/fayalite
WIP adding docs
This commit is contained in:
parent
86827def91
commit
190e440b35
5 changed files with 277 additions and 0 deletions
|
@ -1,5 +1,10 @@
|
|||
// SPDX-License-Identifier: LGPL-3.0-or-later
|
||||
// See Notices.txt for copyright information
|
||||
//! proc macros for `fayalite`
|
||||
//!
|
||||
//! see `fayalite::hdl_module` and `fayalite::ty::Value` for docs
|
||||
|
||||
// intentionally not documented here, see `fayalite::hdl_module` for docs
|
||||
#[proc_macro_attribute]
|
||||
pub fn hdl_module(
|
||||
attr: proc_macro::TokenStream,
|
||||
|
@ -11,6 +16,7 @@ pub fn hdl_module(
|
|||
}
|
||||
}
|
||||
|
||||
// intentionally not documented here, see `fayalite::ty::Value` for docs
|
||||
#[proc_macro_derive(Value, attributes(hdl))]
|
||||
pub fn value_derive(item: proc_macro::TokenStream) -> proc_macro::TokenStream {
|
||||
match fayalite_proc_macros_impl::value_derive(item.into()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue