displaydoc
A derive macro for implementing the display Trait via a doc comment and string interpolation
0.2.7
526M downloads/mo
#195 most downloaded on crates.io
yaahc/displaydoc
What this package is like to depend on
Last release 26 days ago
28 Jul 2026
Release timing varies
gaps range from 9 days to 1.9 years
Some releases are documented
notes for 7 of 16 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
16 releases · first in 2019
2 releases in the last 12 months
see the full history below
Release timeline
16 releases · Oct 2019 to Jul 2026Releases
latest 16-
0.2.728 Jul 2026 -
0.2.627 May 2026Release notes
Open source →Added
- Support for multi-line doc comments (#57, #62)
Changed
- Use
BTreeMapfor determinism in generated code (#52) - Add
#[allow(unused_assignments)]to generated code (#56) - Exclude development scripts from published package (#60)
- Bump
pretty_assertionsdependency to 1.4.0 (#53)
-
0.2.520 Jun 2024Nothing published for this version
-
0.2.403 May 2023Release notes
Open source →Added
- Updated
syndependency to 2.0 - Support for empty enums
- Implicitly require fmt::Display on all type parameters unless overridden
Changed
- Bumped MSRV to 1.56
- Updated
-
0.2.316 Jul 2021 -
0.2.201 Jul 2021Release notes
Open source →Added
- Added prefix feature to use the doc comment from an enum and prepend it before the error message from each variant.
-
0.2.126 Mar 2021 -
0.2.017 Mar 2021Release notes
Open source →Changed
- (BREAKING) disallow multiple
docattributes in display impl [https://github.com/yaahc/displaydoc/pull/22]. Allowing and ignoring extra doc attributes made it too easy to accidentally create a broken display implementation with missing context without realizing it, this change turns that into a hard error and directs users towards block comments if multiple lines are needed.
<!-- next-url --> [Unreleased]: https://github.com/yaahc/displaydoc/compare/v0.2.7...HEAD [0.2.7]: https://github.com/yaahc/displaydoc/compare/v0.2.6...v0.2.7 [0.2.6]: https://github.com/yaahc/displaydoc/compare/v0.2.5...v0.2.6 [0.2.5]: https://github.com/yaahc/displaydoc/compare/v0.2.4...v0.2.5 [0.2.4]: https://github.com/yaahc/displaydoc/compare/v0.2.3...v0.2.4 [0.2.3]: https://github.com/yaahc/displaydoc/compare/v0.2.2...v0.2.3 [0.2.2]: https://github.com/yaahc/displaydoc/compare/v0.2.1...v0.2.2 [0.2.1]: https://github.com/yaahc/displaydoc/compare/v0.2.0...v0.2.1 [0.2.0]: https://github.com/yaahc/displaydoc/releases/tag/v0.2.0
- (BREAKING) disallow multiple
-
0.1.718 Jul 2020Nothing published for this version
-
0.1.603 May 2020Nothing published for this version
-
0.1.521 Nov 2019Nothing published for this version
-
0.1.418 Oct 2019Nothing published for this version
-
0.1.312 Oct 2019Nothing published for this version
-
0.1.212 Oct 2019Nothing published for this version
-
0.1.112 Oct 2019Nothing published for this version
-
0.1.010 Oct 2019Nothing published for this version