• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Changelog
2All notable changes to this project will be documented in this file.
3
4The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
7## 2.0.1 - 2025-01-06
8
9### Change
10- Updated how code conditioned on the `sync` flag is written in the crate
11  documentation to work around a [crates.io doc rendering
12  bug](https://github.com/rust-lang/crates.io/issues/10331).
13
14## 2.0.0 - 2025-01-06
15### Added
16- Gated the sync/`Arc` downcasting functionality behind a new `sync` feature
17  that is enabled by default.
18- Added a new `DowncastSend` trait to support downcasting to `Box<Any + Send>`
19  and made `DowncastSync` extend this trait.
20- Added downcasting support to `Box<Any + Send + Sync>` to `DowncastSync`.
21
22### Change
23- Updated minimum supported rust version 1.56 to enforce the
24  `rustdoc::bare_urls` lint (1.53) and switch to edition 2021 (1.56).
25
26## 1.2.1 - 2024-04-06
27### Change
28- Consolidated bounds on the trait to avoid triggering Clippy's
29  `multiple_bound_locations` lint.
30
31## 1.2.0 - 2020-06-29
32### Added
33- `no_std` support.
34- CI with GitHub actions.
35
36### Changed
37- Updated minimum supported rust version 1.36 for stable access to `alloc`.
38
39## 1.1.1 - 2019-10-28
40### Changed
41- Used `dyn Trait` syntax everywhere since it is supported by downcast-rs's
42  min-supported rust version (1.33).
43
44## 1.1.0 - 2019-10-07
45### Added
46- Support for downcasting `Rc<Trait>` and `Arc<Trait>`.
47
48### Changed
49- Minimum supported Rust version upped to 1.33 to support `Rc` and `Arc` in the
50  receiver position.
51
52## 1.0.4 - 2019-04-08
53### Changed
54- Added `local_inner_macros` to `impl_downcast` to allow invoking via namespace.
55
56## 1.0.3 - 2018-05-21
57### Fixed
58- Use global path for Result, Option, Box in macro expansion to avoid name
59  conflicts with locally-defined symbols.
60
61## 1.0.2 - 2018-05-12
62### Added
63- Support for downcasting `Box<Trait>` to `Box<Concrete>`.
64
65## 1.0.1 - 2018-03-08
66### Fixed
67- Don't use types as traits in macros.
68
69## 1.0.0 - 2017-02-05
70### Changed
71- Cleaned up README and published 1.0.
72
73## 0.1.2 - 2016-11-22
74### Added
75- Support for associated types as well.
76
77## 0.1.1 - 2016-09-04
78### Added
79- Downcast functionality to downcast borrowed mutable and immutable trait
80  objects to concrete types. Supports concrete type parameters and type
81  variables with optional constraints.
82
83