Skip to content

Commit

Permalink
Merge pull request #52 from bnjbvr/use-proc-macro-error2
Browse files Browse the repository at this point in the history
Use proc-macro-error2
  • Loading branch information
mersinvald authored Sep 25, 2024
2 parents 0568881 + b15b3cd commit e5a4d11
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/attrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit e5a4d11

Please sign in to comment.