ProbablyClem / cargo-todo

Cargo tool to display TODOs
26 stars 4 forks source link

A tool to view every TODOs in the rust code

Installation

$ cargo install cargo-todo

Usage

you can add parameters to you TODOs

//todo 2001/11/01 5 !clement implement getters

The supported parameters are :


Those parameters can be added in any order as long as they follow the syntax they will be automaticaly added

run

$cargo todo
src/main.rs line: 331 //todo 
Member: clement
Priority: 5
Deadline: 2020-08-14
implement getters

Default supported regex

Legacy mode

Can be used for legacy code base as it's support todo!() and unimplemented!()

Will display every line with a supported token (listed below) and the inside of the macro

/!\ Legacy mode is way slower the the default mode and lacks a lot of cool features

Example

code base

todo!("implement getters");

run

$ cargo todo legacy
src/main.rs TODO Line  125 : implement getters

Supported tokens

/!\ WARNING

in legacy mode, cargo todo will no longer use regex but only the default tokens listed above