Skip to content

Commit

Permalink
Update version to 2.0.0 and update CHANGELOG.md.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcianx committed Jan 7, 2025
1 parent 7e801af commit 00257c5
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## 2.0.0 - 2025-01-06
### Added
- Gated the sync/`Arc` downcasting functionality behind a new `sync` feature
that is enabled by default.
- Added a new `DowncastSend` trait to support downcasting to `Box<Any + Send>`
and made `DowncastSync` extend this trait.
- Added downcasting support to `Box<Any + Send + Sync>` to `DowncastSync`.

### Change
- Updated min supported rust version 1.56 to enforce the `rustdoc::bare_urls`
lint (1.53) and switch to edition 2021 (1.56).

## 1.2.1 - 2024-04-06
### Change
- Consolidated bounds on the trait to avoid triggering Clippy's
Expand All @@ -22,6 +34,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## 1.1.0 - 2019-10-07
### Added
- Support for downcasting `Rc<Trait>` and `Arc<Trait>`.

### Changed
- Minimum supported Rust version upped to 1.33 to support `Rc` and `Arc` in the
receiver position.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "downcast-rs"
edition = "2021"
version = "1.2.1"
version = "2.0.0"
rust-version = "1.56"
repository = "https://github.com/marcianx/downcast-rs"
description = """
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ Add the following to your `Cargo.toml`:

```toml
[dependencies]
downcast-rs = "1.2.1"
downcast-rs = "2.0.0"
```

This crate is `no_std` compatible. To use it without `std`:

```toml
[dependencies]
downcast-rs = { version = "1.2.1", default-features = false }
downcast-rs = { version = "2.0.0", default-features = false }
```

To make a trait downcastable, make it extend either `downcast::Downcast` or
`downcast::DowncastSync` and invoke `impl_downcast!` on it as in the examples
below.

Since 1.2.0, the minimum supported Rust version is 1.36 due to needing stable access to alloc.
Since 2.0.0, the minimum supported Rust version is 1.56.

## #[macro_use]
## extern crate downcast_rs;
Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@
//!
//! ```toml
//! [dependencies]
//! downcast-rs = "1.2.1"
//! downcast-rs = "2.0.0"
//! ```
//!
//! This crate is `no_std` compatible. To use it without `std`:
//!
//! ```toml
//! [dependencies]
//! downcast-rs = { version = "1.2.1", default-features = false }
//! downcast-rs = { version = "2.0.0", default-features = false }
//! ```
//!
//! To make a trait downcastable, make it extend either `downcast::Downcast` or
//! `downcast::DowncastSync` and invoke `impl_downcast!` on it as in the examples
//! below.
//!
//! Since 1.2.0, the minimum supported Rust version is 1.36 due to needing stable access to alloc.
//! Since 2.0.0, the minimum supported Rust version is 1.56.
//!
#![cfg_attr(feature = "sync", doc = "```")]
#![cfg_attr(not(feature = "sync"), doc = "```ignore")]
Expand Down

0 comments on commit 00257c5

Please sign in to comment.