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

Add CasePathsCore module #212

Merged
merged 7 commits into from
Jan 16, 2025
Merged

Add CasePathsCore module #212

merged 7 commits into from
Jan 16, 2025

Conversation

stephencelis
Copy link
Member

The @CasePathable macro requires SwiftSyntax, which is quite heavy to rely on and build, but not every library or app depending on case paths needs to build or load the macro, so let's extract the core functionality of case paths to a "core" module that can be built and linked against in isolation.

It's possible for a library to integrate with case paths in a way that
doesn't require their use and the penalty involved in building their
macros, so let's introduce a "core" module that contains the core
functionality of the library, less macros and other deprecations.
@stephencelis stephencelis requested a review from mbrandonw January 9, 2025 20:04
@stephencelis
Copy link
Member Author

To build combined documentation:

swift package generate-documentation --enable-experimental-combined-documentation --target CasePaths --target CasePathsCore

@stephencelis stephencelis merged commit e7039aa into main Jan 16, 2025
8 checks passed
@stephencelis stephencelis deleted the case-paths-core branch January 16, 2025 18:00
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.

2 participants