Unifying tests and examples boilerplate (dev-dependencies != dependencies)
The Rust Programming Language Forum
Unifying tests and examples boilerplate (dev-dependencies != dependencies)
As projects grow I tend to end up in the situation where I have tests and examples that need a substantial amount of helper functions to set things up. I stick this boilerplate stuff in a helpers/mod.rs in both tests and examples. However, there's usually a lot of overlap between the two, and it's kind of annoying to maintain them. I once tried to put the boilerplate stuff in a dedicated crate, sort of like this: name = "foo" [dev-dependencies] bar = { workspace = true } (foo is the main l...
0 comments
No comments yet.