Skip to content

Marker attribute for referencing code within a git repository. Part of RAWR.

License

Notifications You must be signed in to change notification settings

NTmatter/rawr_attribute

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RAWR Macros

The RAWR utility uses marker macros to reference code at particular points in a codebase's history.

There is currently no validation, so all arguments will be allowed. This will be rectified as the utility is stabilized.

extern crate rawr_attribute;
use rawr_macro::{rawr, Rawr, rawr_fn};

#[rawr(
    kind = "constant",
    ident = "f_pi",
    path = "src/constants.h",
    rev = "123abc456",
    notes = "This probably shouldn't change, but it would be good to know if \
    the upstream team makes changes to the simulator."
)]
const PI: f64 = 3.14159;

#[rawr(
    kind = "function",
    ident = "do_foo",
    path = "src/headers/examples.h",
    rev = "abc123def"
)]
fn foo() {
    todo!("Reimplement function from original codebase")
}

About

Marker attribute for referencing code within a git repository. Part of RAWR.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages