-
Notifications
You must be signed in to change notification settings - Fork 8
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
Conversation
New `Module` type is added that specifies dependencies between modules manually.
@@ -1,20 +1,48 @@ | |||
// swift-tools-version:5.3 | |||
// swift-tools-version:5.5 |
There was a problem hiding this comment.
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)], |
There was a problem hiding this comment.
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.
This comment was marked as outdated.
This comment was marked as outdated.
import WebIDL | ||
|
||
@dynamicMemberLookup | ||
enum ModuleState { |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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.
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.