Skip to content

Commit

Permalink
Prepare 2.0.0 release (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron authored Feb 3, 2025
1 parent c5e5e82 commit d6c3315
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).


## 2.0.0 - Unreleased
## 2.0.0 - 2025-02-03

### Breaking changes

Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "derive_more"
version = "1.0.0"
version = "2.0.0"
edition = "2021"
rust-version = "1.75.0"
description = "Adds #[derive(x)] macros for more traits"
Expand All @@ -27,7 +27,7 @@ include = [
members = ["impl"]

[dependencies]
derive_more-impl = { version = "=1.0.0", path = "impl" }
derive_more-impl = { version = "=2.0.0", path = "impl" }

[build-dependencies]
rustc_version = { version = "0.4", optional = true }
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# `derive_more`

[![Build Status](https://github.com/JelteF/derive_more/workflows/CI/badge.svg)](https://github.com/JelteF/derive_more/actions)
[![Build Status](https://github.com/JelteF/derive_more/actions/workflows/ci.yml/badge.svg)](https://github.com/JelteF/derive_more/actions)
[![Latest Version](https://img.shields.io/crates/v/derive_more.svg)](https://crates.io/crates/derive_more)
[![Rust Documentation](https://docs.rs/derive_more/badge.svg)](https://docs.rs/derive_more)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/JelteF/derive_more/master/LICENSE)
Expand Down Expand Up @@ -183,21 +183,21 @@ You have to enable each type of derive as a feature in `Cargo.toml`:
[dependencies]
# You can specify the types of derives that you need for less time spent
# compiling. For the full list of features see this crate its `Cargo.toml`.
derive_more = { version = "1", features = ["from", "add", "into_iterator"] }
derive_more = { version = "2", features = ["from", "add", "into_iterator"] }
```
```toml
[dependencies]
# If you don't care much about compilation times and simply want to have
# support for all the possible derives, you can use the "full" feature.
derive_more = { version = "1", features = ["full"] }
derive_more = { version = "2", features = ["full"] }
```
```toml
[dependencies]
# If you run in a `no_std` environment you should disable the default features,
# because the only default feature is the "std" feature.
# NOTE: You can combine this with "full" feature to get support for all the
# possible derives in a `no_std` environment.
derive_more = { version = "1", default-features = false }
derive_more = { version = "2", default-features = false }
```

And this to the top of your Rust file:
Expand All @@ -222,12 +222,12 @@ Changing [MSRV] (minimum supported Rust version) of this crate is treated as a *
- So, if [MSRV] changes are **NOT concerning** for your project, just use the default [caret requirement]:
```toml
[dependencies]
derive_more = "1" # or "1.0", or "^1.0"
derive_more = "2" # or "2.0", or "^2.0"
```
- However, if [MSRV] changes are concerning for your project, then use the [tilde requirement] to **pin to a specific minor version**:
```toml
[dependencies]
derive_more = "~1.0" # or "~1.0.0"
derive_more = "~2.0" # or "~2.0.0"
```


Expand Down
2 changes: 1 addition & 1 deletion impl/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "derive_more-impl"
version = "1.0.0"
version = "2.0.0"
edition = "2021"
rust-version = "1.75.0"
description = "Internal implementation of `derive_more` crate"
Expand Down

0 comments on commit d6c3315

Please sign in to comment.