diff --git a/Cargo.toml b/Cargo.toml index 851fe3b..f38a4d4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ proc-macro = true [dependencies] quote = "1" proc-macro2 = "1" -proc-macro-error = { version = "1", default-features = false } +proc-macro-error2 = { version = "2", default-features = false } itertools = "0.10" syn = "2" include_dir = "0.7" diff --git a/src/attrs.rs b/src/attrs.rs index ad541ff..860ace1 100644 --- a/src/attrs.rs +++ b/src/attrs.rs @@ -2,14 +2,14 @@ use include_dir::{include_dir, Dir}; use itertools::Itertools; use proc_macro::Span; use proc_macro2::TokenStream; -use proc_macro_error::{abort, emit_call_site_warning, emit_error}; +use proc_macro_error2::{abort, emit_call_site_warning, emit_error}; use quote::quote; use std::fs; use std::path::Path; use std::{iter, path::PathBuf}; use syn::{Attribute, Ident, MetaNameValue}; -// embedded JS code being inserted as html script elmenets +// embedded JS code being inserted as html script elements static MERMAID_JS_DIR: Dir = include_dir!("$CARGO_MANIFEST_DIR/doc/js/"); // Note: relative path depends on sub-module the macro is invoked in: diff --git a/src/lib.rs b/src/lib.rs index 5c81d85..8776881 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -74,7 +74,7 @@ extern crate proc_macro; use proc_macro::TokenStream; -use proc_macro_error::{abort, proc_macro_error}; +use proc_macro_error2::{abort, proc_macro_error}; use quote::quote; use syn::{parse_macro_input, Attribute};