diff --git a/Cargo.lock b/Cargo.lock index 17ea86a..307aa4f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6,6 +6,9 @@ version = 3 name = "bitworks" version = "0.0.1" source = "git+https://github.com/TRI99ERED/bitworks#766d7c6c8bc746e7d887556381a6d96fde3ee263" +dependencies = [ + "serde", +] [[package]] name = "proc-macro2" @@ -78,5 +81,6 @@ dependencies = [ "bitworks", "proc-macro2", "quote", + "serde", "syn", ] diff --git a/Cargo.toml b/Cargo.toml index 44be6bd..9de6bf5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,10 +3,12 @@ name = "varflags" version = "0.0.1" edition = "2021" +[features] +serde = ["dep:serde", "bitworks/serde", "varflags_attribute/serde"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] varflags_attribute = { path = "varflags_attribute" } bitworks = { git = "https://github.com/TRI99ERED/bitworks" } -serde = { version = "*", features = ["derive"] } +serde = { version = "*", optional = true, features = ["derive"] }