aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Letan <lthms@soap.coffee>2021-08-20 15:09:57 +0200
committerThomas Letan <lthms@soap.coffee>2021-08-20 15:09:57 +0200
commit5b6dec07163ecc6d0ef9fb9ce0269cee04119050 (patch)
treef828b936d83efb6d84cb7dc0f540e3052ea9ca36
parentTurn typed-urls-tera into a feature and introduce the actix feature (diff)
Fix build for recent version of syn
It looks like the `export` module is no longer a thing, so we directly use `proc-macro2` insead.
-rw-r--r--typed-urls-derive/Cargo.toml1
-rw-r--r--typed-urls-derive/src/lib.rs2
2 files changed, 2 insertions, 1 deletions
diff --git a/typed-urls-derive/Cargo.toml b/typed-urls-derive/Cargo.toml
index a5b294e..9ba4ba6 100644
--- a/typed-urls-derive/Cargo.toml
+++ b/typed-urls-derive/Cargo.toml
@@ -8,5 +8,6 @@ edition = "2018"
proc-macro = true
[dependencies]
+proc-macro2 = "1.0"
syn = "1.0"
quote = "1.0" \ No newline at end of file
diff --git a/typed-urls-derive/src/lib.rs b/typed-urls-derive/src/lib.rs
index 4c727fc..1a400c4 100644
--- a/typed-urls-derive/src/lib.rs
+++ b/typed-urls-derive/src/lib.rs
@@ -6,7 +6,7 @@ extern crate quote;
use std::collections::HashMap;
use proc_macro::TokenStream;
-use syn::export::{Span, TokenStream2 as Quote};
+use proc_macro2::{Span, TokenStream as Quote};
use syn::{
Attribute, Data, DataEnum, DeriveInput, Fields, Ident, Lit, LitStr, Meta,
MetaNameValue, Type, Variant,