diff --git a/CHANGELOG.md b/CHANGELOG.md index e1146ed1..424f50ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/src/lib.rs b/src/lib.rs index 884f4e18..4bb18269 100644 --- a/src/lib.rs +++ b/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;