Skip to content

Commit d6c3315

Browse files
authored
Prepare 2.0.0 release (#444)
1 parent c5e5e82 commit d6c3315

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

88

9-
## 2.0.0 - Unreleased
9+
## 2.0.0 - 2025-02-03
1010

1111
### Breaking changes
1212

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "derive_more"
3-
version = "1.0.0"
3+
version = "2.0.0"
44
edition = "2021"
55
rust-version = "1.75.0"
66
description = "Adds #[derive(x)] macros for more traits"
@@ -27,7 +27,7 @@ include = [
2727
members = ["impl"]
2828

2929
[dependencies]
30-
derive_more-impl = { version = "=1.0.0", path = "impl" }
30+
derive_more-impl = { version = "=2.0.0", path = "impl" }
3131

3232
[build-dependencies]
3333
rustc_version = { version = "0.4", optional = true }

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

203203
And 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

impl/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "derive_more-impl"
3-
version = "1.0.0"
3+
version = "2.0.0"
44
edition = "2021"
55
rust-version = "1.75.0"
66
description = "Internal implementation of `derive_more` crate"

0 commit comments

Comments
 (0)