diff --git a/Cargo.lock b/Cargo.lock index 27fa10c..b38b9a3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6,7 +6,6 @@ version = 3 name = "coffee_break" version = "1.0.0" dependencies = [ - "quote", "syn", ] @@ -30,9 +29,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.53" +version = "2.0.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7383cd0e49fff4b6b90ca5670bfd3e9d6a733b3f90c686605aa7eec8c4996032" +checksum = "11a6ae1e52eb25aab8f3fb9fca13be982a373b8f1157ca14b897a825ba4a2d35" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index 17b5c26..a3f7cbd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,11 +13,8 @@ categories = ["development-tools", "development-tools::build-utils"] [lib] proc-macro = true -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] -quote = "1.0.10" -syn = "2.0.53" +syn = { version = "2.0.57", default-features = false, features = ["proc-macro", "parsing"] } [package.metadata.docs.rs] all-features = true diff --git a/src/lib.rs b/src/lib.rs index fe6dece..ee7b169 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,7 +1,6 @@ #![doc = include_str!("../README.md")] use proc_macro::TokenStream; -use quote::quote; use syn::{parse::Parse, Error}; /// Take a break when compiling. @@ -26,7 +25,9 @@ pub fn coffee_break(input: TokenStream) -> TokenStream { let input = syn::parse_macro_input!(input as CoffeeBreak); std::thread::sleep(std::time::Duration::from_secs(input.seconds)); - quote! {()}.into() + + // Return empty stream. + TokenStream::new() } struct CoffeeBreak {