colin-kiegel / rust-derive-builder

derive builder implementation for rust structs
https://colin-kiegel.github.io/rust-derive-builder/
Apache License 2.0
1.32k stars 88 forks source link

README example code is outdated #211

Closed tv42 closed 8 months ago

tv42 commented 3 years ago

"How it Works" example has

#[macro_use]
extern crate derive_builder;

which is old style Rust and not very recognizable/usable to newbies (https://doc.rust-lang.org/edition-guide/rust-2018/module-system/path-clarity.html).

Below it, "Get Started" says "Add use derive_builder::Builder;", which is the new style.

TedDriggs commented 2 years ago

This relates to #231; I think we want to move all the tests and examples to the new style.