Skip to content

Commit

Permalink
Add derive module (#290)
Browse files Browse the repository at this point in the history
Resolves
#259 (comment)

Add `derive_more::derive` module, re-exporting macros only.
  • Loading branch information
tyranron authored Aug 13, 2023
1 parent 334df59 commit 5b71aa0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
([#206](https://github.com/JelteF/derive_more/pull/206))
- Add support for container format in `Debug` derive with the same syntax as `Display` derives.
([#279](https://github.com/JelteF/derive_more/pull/279))
- `derive_more::derive` module exporting only macros, without traits. ([#290](https://github.com/JelteF/derive_more/pull/290))

### Changed

Expand Down
8 changes: 8 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ pub mod __private {
pub use crate::vendor::thiserror::aserror::AsDynError;
}

/// Module containing macro definitions only, without corresponding traits.
///
/// Use it in your import paths, if you don't want to import traits, but only macros.
pub mod derive {
#[doc(inline)]
pub use derive_more_impl::*;
}

// The modules containing error types and other helpers.

#[cfg(feature = "add")]
Expand Down

0 comments on commit 5b71aa0

Please sign in to comment.