From 1a722a0e785e4abfad62bce6738516e47afce89c Mon Sep 17 00:00:00 2001 From: Noel Date: Tue, 17 Sep 2024 18:58:50 -0700 Subject: [PATCH] Add `proc-macros` feature to main crate --- Cargo.lock | 1 + crates/azalia/Cargo.toml | 3 +++ crates/azalia/src/lib.rs | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index b01fd47..ee7f2ce 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -589,6 +589,7 @@ version = "0.1.0" dependencies = [ "azalia-config", "azalia-log", + "azalia-proc-macros", "azalia-remi", "azalia-serde", "once_cell", diff --git a/crates/azalia/Cargo.toml b/crates/azalia/Cargo.toml index 28ad855..ebcfc55 100644 --- a/crates/azalia/Cargo.toml +++ b/crates/azalia/Cargo.toml @@ -64,11 +64,14 @@ serde-aws = ["azalia-serde/aws"] serde-s3 = ["azalia-serde/s3"] serde = ["dep:azalia-serde"] +proc-macros = ["dep:azalia-proc-macros"] + default = ["std"] [dependencies] azalia-config = { version = "=0.1.0", path = "../config", optional = true } azalia-log = { version = "=0.1.0", path = "../log", optional = true } +azalia-proc-macros = { version = "=0.1.0", path = "../proc-macros", optional = true } azalia-remi = { version = "=0.1.0", path = "../remi", optional = true } azalia-serde = { version = "=0.1.0", path = "../serde", optional = true } once_cell = { version = "1.19.0", optional = true } diff --git a/crates/azalia/src/lib.rs b/crates/azalia/src/lib.rs index 7a47fa2..b5f2bea 100644 --- a/crates/azalia/src/lib.rs +++ b/crates/azalia/src/lib.rs @@ -39,6 +39,10 @@ pub use azalia_config as config; #[cfg_attr(any(noeldoc, docsrs), doc(cfg(feature = "log")))] pub use azalia_log as log; +#[cfg(feature = "proc-macros")] +#[cfg_attr(any(noeldoc, docsrs), doc(cfg(feature = "proc-macros")))] +pub use azalia_proc_macros as proc_macros; + #[cfg(feature = "remi")] #[cfg_attr(any(noeldoc, docsrs), doc(cfg(feature = "remi")))] pub use azalia_remi as remi;