Expand description
§wip – The crate you’ll never put into production
wip helps you during Rust development by helping signal when something
is unfinished.
It plays a role similar to the std::todo macro, but emits warning on use,
so that a proper CI blocks uses of this crate from reaching production.

§What’s inside?
wipextension methods forResultandOptionvia [WipResultExt::wip] and [WipOptionExt::wip]. They function likeunwrapbut emit warnings on use, so that you remember to remove them before merging that PR!clone_fixmeextension method for any clonable object, for clones that you might later regret, viaWipCloneExt::clone_fixme.wip!()macros that emit warnings (wip!) and work with iterators (wip_iter!) and futures (wip_future!, you guessed it)- A
fixme()macro that doesn’t panic likewip!, but still emit a warning, to keep track of all these// FIXME: handle edge casein your code…
§How to use?
- Add the crate to your dependencies.
cargo add wip- (optional) glob import the prelude in your files.
use wip::prelude::*;- Profit!
This crate relies on deprecation warnings, so make sure you don’t #![allow(deprecated)],
lest it won’t warn you as intended.
§Alternatives
I don’t currently know of crates exposing the same functionality. However, if you don’t like the idea of adding a dependency for this, did you know you could use doc comments over expressions to benefit from a free warning?
unused doc comment
use `//` for a plain comment
`#[warn(unused_doc_comments)]` on by default§No genAI
This crate does not use any genAI tooling and intends on staying so.
Modules§
- prelude
- Prelude to glob import for easy use of the provided functions and extension traits.
Macros§
- fixme
- Indicates unfinished code, emits a deprecation warning, but does not panic if reached.
- wip
- Indicates unfinished code, emits a deprecation warning, and panics if reached.
- wip_
future - Indicates unfinished code, emits a deprecation warning, panics if reached, works for
impl Future. - wip_
iter - Indicates unfinished code, emits a deprecation warning, panics if reached, works for
impl Iterator.
Traits§
- WipClone
Ext - Extension trait for any clonable
Tto expose theWipCloneExt::clone_fixmemethod. - WipOption
Ext - Extension trait for
std::option::Optionto expose theWipOptionExt::unwrap_wipmethod. - WipResult
Ext - Extension trait for
std::result::Resultto expose theWipResultExt::unwrap_wipmethod.