Skip to content

Commit

Permalink
make derive_extras crate for useful derive macros
Browse files Browse the repository at this point in the history
  • Loading branch information
Antikyth committed Nov 21, 2023
1 parent 1e082fa commit 280469b
Show file tree
Hide file tree
Showing 4 changed files with 669 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ license = "MPL-2.0"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[workspace]
members = ["derive-extras"]

[features]
# TODO: When compiling for release, maybe don't include the testing feature?
default = ["wayland", "x11", "testing"]
Expand All @@ -30,6 +33,7 @@ async = ["dep:futures", "dep:tokio"]
bitflags = "2.2.1"
thiserror = "1.0.50"
truncate-integer = "0.5.0"
derive-extras = { path = "./derive-extras" }

# CLI
clap = { version = "4.4.7", features = ["derive"] }
Expand All @@ -42,7 +46,6 @@ tracing-subscriber = { version = "0.3.17", features = ["env-filter"] }
####################################################################################################
# Display server specific
####################################################################################################

# X11
[dependencies.x11rb-async]
version = "0.12.0"
Expand All @@ -58,6 +61,8 @@ optional = true
# Async
####################################################################################################



[dependencies.futures]
version = "0.3.29"
optional = true
Expand Down
14 changes: 14 additions & 0 deletions derive-extras/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[package]
name = "derive-extras"
version = "0.1.0"
edition = "2021"

[lib]
proc-macro = true

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
quote = "1.0.33"
syn = "2.0.39"
proc-macro2 = "1.0.69"
Loading

0 comments on commit 280469b

Please sign in to comment.