Skip to content

Commit

Permalink
Fix #57 - add extern crate proc_macro;
Browse files Browse the repository at this point in the history
  • Loading branch information
idanarye committed Sep 3, 2021
1 parent 69d6aac commit 1f33eb2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Expand Up @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Fixed
- Add `extern crate proc_macro;` to solve some weird problem (https://github.com/idanarye/rust-typed-builder/issues/57)

## 0.9.0 - 2021-01-31
### Added
- Builder type implements `Clone` when all set fields support clone.
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
@@ -1,3 +1,5 @@
extern crate proc_macro; // Needed even though it's the 2018 edition. See https://github.com/idanarye/rust-typed-builder/issues/57.

use proc_macro2::TokenStream;

use syn::parse::Error;
Expand Down

0 comments on commit 1f33eb2

Please sign in to comment.