Skip to content

Instantly share code, notes, and snippets.

@durka
Last active August 20, 2018 20:45
Show Gist options
  • Save durka/0dda35f371bdde94780fc65bb99c4bf0 to your computer and use it in GitHub Desktop.
Save durka/0dda35f371bdde94780fc65bb99c4bf0 to your computer and use it in GitHub Desktop.
macro missing_docs
[package]
name = "a"
version = "0.1.0"
authors = ["Alex Burka <[email protected]>"]
[dependencies]
b = { path = "../b" }
#![deny(missing_docs)]
//! Docs
#[macro_use] extern crate b;
macro_rules! a {
($f:ident, $g:ident) => {
pub fn $f() {}
pub struct $g;
}
}
a!(bar, Bar);
b!(foo, Foo);
[package]
name = "b"
version = "0.1.0"
authors = ["Alex Burka <[email protected]>"]
#[macro_export]
macro_rules! b {
($f:ident, $g:ident) => {
pub fn $f() {}
pub struct $g;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment