Skip to content

Fix ..Default::default() for struct Config#911

Merged
emilio merged 1 commit intomozilla:masterfrom
jschwe:pub_config
Feb 6, 2024
Merged

Fix ..Default::default() for struct Config#911
emilio merged 1 commit intomozilla:masterfrom
jschwe:pub_config

Conversation

@jschwe
Copy link
Copy Markdown
Contributor

@jschwe jschwe commented Dec 27, 2023

Previously the depfile option added a new private member to the Config struct - a breaking change which many users complained about. Making the field public, but hiding it from the documentation and excluding it from serde reverts the breakage, while keeping the depfile functionality.

I also considered adding an InternalConfig struct, but this would require breaking changes to at least Config::from_file() and Config::from_root_or_default(), which is a lot more invasive than my PR.

Closes #908

Previously the `depfile` option added a new private member to the
`Config` struct - a breaking change which many users complained about.
Making the field public, but hiding it from the documentation and
excluding it from `serde` reverts the breakage, while keeping the
depfile functionality.
@jschwe
Copy link
Copy Markdown
Contributor Author

jschwe commented Feb 6, 2024

@emilio Any chance you could find some time to review this patch?

Copy link
Copy Markdown
Collaborator

@emilio emilio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Yeah, thanks for the ping, and sorry, I haven't been able to dedicate a lot of time to cbindgen recently.

@emilio emilio merged commit c9c90bf into mozilla:master Feb 6, 2024
@jschwe jschwe deleted the pub_config branch February 6, 2024 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Config (still) has private fields in 0.26

2 participants