11# ` derive_more `
22
3- [ ![ Build Status] ( https://github.com/JelteF/derive_more/workflows/CI /badge.svg )] ( https://github.com/JelteF/derive_more/actions )
3+ [ ![ Build Status] ( https://github.com/JelteF/derive_more/actions/ workflows/ci.yml /badge.svg )] ( https://github.com/JelteF/derive_more/actions )
44[ ![ Latest Version] ( https://img.shields.io/crates/v/derive_more.svg )] ( https://crates.io/crates/derive_more )
55[ ![ Rust Documentation] ( https://docs.rs/derive_more/badge.svg )] ( https://docs.rs/derive_more )
66[ ![ GitHub license] ( https://img.shields.io/badge/license-MIT-blue.svg )] ( https://raw.githubusercontent.com/JelteF/derive_more/master/LICENSE )
@@ -183,21 +183,21 @@ You have to enable each type of derive as a feature in `Cargo.toml`:
183183[dependencies ]
184184# You can specify the types of derives that you need for less time spent
185185# compiling. For the full list of features see this crate its `Cargo.toml`.
186- derive_more = { version = " 1 " , features = [" from" , " add" , " into_iterator" ] }
186+ derive_more = { version = " 2 " , features = [" from" , " add" , " into_iterator" ] }
187187```
188188``` toml
189189[dependencies ]
190190# If you don't care much about compilation times and simply want to have
191191# support for all the possible derives, you can use the "full" feature.
192- derive_more = { version = " 1 " , features = [" full" ] }
192+ derive_more = { version = " 2 " , features = [" full" ] }
193193```
194194``` toml
195195[dependencies ]
196196# If you run in a `no_std` environment you should disable the default features,
197197# because the only default feature is the "std" feature.
198198# NOTE: You can combine this with "full" feature to get support for all the
199199# possible derives in a `no_std` environment.
200- derive_more = { version = " 1 " , default-features = false }
200+ derive_more = { version = " 2 " , default-features = false }
201201```
202202
203203And this to the top of your Rust file:
@@ -222,12 +222,12 @@ Changing [MSRV] (minimum supported Rust version) of this crate is treated as a *
222222- So, if [ MSRV] changes are ** NOT concerning** for your project, just use the default [ caret requirement] :
223223 ``` toml
224224 [dependencies ]
225- derive_more = " 1 " # or "1 .0", or "^1 .0"
225+ derive_more = " 2 " # or "2 .0", or "^2 .0"
226226 ```
227227- However, if [ MSRV] changes are concerning for your project, then use the [ tilde requirement] to ** pin to a specific minor version** :
228228 ``` toml
229229 [dependencies ]
230- derive_more = " ~1 .0" # or "~1 .0.0"
230+ derive_more = " ~2 .0" # or "~2 .0.0"
231231 ```
232232
233233
0 commit comments