Skip to content

Commit

Permalink
Fix feature enablement
Browse files Browse the repository at this point in the history
Previously, `documented-macros` had `customise` erroneously enabled by default,
causing it to be enabled at all times, regardless of whether `customise` is on
or not on `documented`. This is now fixed.
  • Loading branch information
cyqsimon committed Oct 15, 2024
1 parent bba442c commit 51c2d35
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion documented-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ documented = { path = "../lib" }

[features]
customise = ["dep:itertools", "dep:optfield", "dep:strum"]
default = ["customise"]
1 change: 1 addition & 0 deletions documented-macros/src/config/derive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ impl DeriveConfig {

// This is implemented instead of `syn::parse::Parse` because the options
// can come from multiple attributes and therefore multiple `MetaList`s.
#[cfg(feature = "customise")]
impl TryFrom<Vec<ConfigOption>> for DeriveCustomisations {
type Error = syn::Error;

Expand Down

0 comments on commit 51c2d35

Please sign in to comment.