Skip to content

Commit

Permalink
Add proc-macros feature to main crate
Browse files Browse the repository at this point in the history
  • Loading branch information
auguwu committed Sep 18, 2024
1 parent 6e0eb27 commit 1a722a0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions crates/azalia/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
4 changes: 4 additions & 0 deletions crates/azalia/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1a722a0

Please sign in to comment.