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

Split WebAPIKit into modules manually #46

Merged
merged 3 commits into from
Aug 27, 2022
Merged

Conversation

MaxDesiatov
Copy link
Contributor

@MaxDesiatov MaxDesiatov commented Aug 21, 2022

New Module type is added that specifies dependencies between modules manually.

More advanced approaches could be implemented in the future. For example, automated dependency resolution as investigated in #30.

Partially resolves #14.

New `Module` type is added that specifies dependencies between modules manually.
@MaxDesiatov MaxDesiatov added the enhancement New feature or request label Aug 21, 2022
@@ -1,20 +1,48 @@
// swift-tools-version:5.3
// swift-tools-version:5.5
Copy link
Contributor Author

@MaxDesiatov MaxDesiatov Aug 21, 2022

Choose a reason for hiding this comment

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

Bumped due to use of async in the codebase.

// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "WebAPIKit",
platforms: [.macOS(.v10_13)],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Bumped due to use of certain file APIs in codegen sources.

@MaxDesiatov

This comment was marked as outdated.

@MaxDesiatov MaxDesiatov marked this pull request as ready for review August 27, 2022 09:55
import WebIDL

@dynamicMemberLookup
enum ModuleState {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Context renamed to ModuleState here.

}
}

struct ScopedState {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Old Context.State becomes ScopedState here.

@MaxDesiatov MaxDesiatov requested a review from a team August 27, 2022 10:03
@MaxDesiatov MaxDesiatov linked an issue Aug 27, 2022 that may be closed by this pull request
@MaxDesiatov MaxDesiatov merged commit ef2d1ca into main Aug 27, 2022
@MaxDesiatov MaxDesiatov deleted the maxd/split-modules branch August 27, 2022 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiple library products and union types
2 participants