Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shrink derive_builder_core's public API #189

Merged
merged 1 commit into from Jan 13, 2021

Conversation

TedDriggs
Copy link
Collaborator

The only crate to depend on derive_builder_core is derive_builder. While it's useful that derive_builder_core is able to export more than the derive function in the future, shrinking the API surface to be only the one function now means that adding builder features won't force semver bumps due to changes in the public-facing intermediate structs.

Because the structs are no longer public, doc-tests for those structs no longer compile. These are now ignored.

The only crate to depend on derive_builder_core is derive_builder.
While it's useful that derive_builder_core is _able_ to export more than
the derive function in the future, shrinking the API surface to be only
the one function now means that adding builder features won't force
semver bumps due to changes in the public-facing intermediate structs.

Because the structs are no longer public, doc-tests for those structs
no longer compile. These are now ignored.
@TedDriggs TedDriggs merged commit 76b6454 into colin-kiegel:master Jan 13, 2021
@TedDriggs TedDriggs deleted the reduce-public-api branch January 13, 2021 14:44
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.

None yet

1 participant