#my-struct #finished #proc-macro #todop

macro todop

A simple proc-macro for (forward-) declaring unimplemented functions

1 stable release

1.0.0 Apr 18, 2025

#707 in Procedural macros

Download history 130/week @ 2025-04-16 4/week @ 2025-04-23

134 downloads per month

Apache-2.0

4KB

#[todo]

A simple proc-macro for (forward-) declaring unimplemented functions.

Usage

use todop::todo;

pub struct MyStruct;

impl MyStruct {
    #[todo]
    pub fn new() -> Self;
    
    #[todo]
    pub fn my_method(arg1: &str, arg2: f32) -> Option<String> {
        let a = format!("{arg1} -> {arg2}");
        // Not finished
    }
}

#[todo]
fn my_function();

Dependencies

~1.5MB
~38K SLoC