Skip to content

Add Wasm support and CI#183

Closed
czechboy0 wants to merge 1 commit intoapple:mainfrom
czechboy0:hd-wasm
Closed

Add Wasm support and CI#183
czechboy0 wants to merge 1 commit intoapple:mainfrom
czechboy0:hd-wasm

Conversation

@czechboy0
Copy link
Copy Markdown
Contributor

Motivation:

As part of expanding platform and CI coverage of Swift Configuration, Swift Metrics should also build on Wasm.

Modifications:

  • Brought over locking changes from Swift Log to support Wasm.
  • Hid some APIs that require Dispatch when Dispatch isn't available.

Result:

The package now builds against the Wasm SDK, both normal and the test targets.

@czechboy0 czechboy0 requested a review from FranzBusch October 13, 2025 10:14
@czechboy0 czechboy0 added the semver/none No version bump required. label Oct 13, 2025
@scottmarchant
Copy link
Copy Markdown
Contributor

@czechboy0 I pulled down your branch and it compiles fine to wasm. It looks like it just needs rebased or merged with the latest main. I resolved the conflicts locally, they weren't very hard. Just a few #if's in the test files conflicted with lines of change to transition to Swift Testing.

Any chance you might be able to resolve the conflicts. Or would you be ok if I resolved them for you and rebased your branch on the latest main?

Copy link
Copy Markdown
Contributor

@scottmarchant scottmarchant left a comment

Choose a reason for hiding this comment

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

This is great! I pulled the changes down locally and was able to compile to wasm.

@scottmarchant
Copy link
Copy Markdown
Contributor

@czechboy0 Just wanted to check one last time before I try to push to your branch with a rebase to update on the latest main. Is updating with the latest main something you're able to do, or are you ok with me updating it?

Please let me know how I can help 😀

@scottmarchant
Copy link
Copy Markdown
Contributor

Hi @czechboy0 I resolved the merge conflicts for this locally. If you give me (scottmarchant) push permissions to your source branch for this PR, I'll push the resolution. Or I'm happy to open a separate PR from a branch I can push to to replace this PR if you'd prefer.

@czechboy0
Copy link
Copy Markdown
Contributor Author

Hi @scottmarchant - thank you, please open a new PR and we can close this one

scottmarchant added a commit to PassiveLogic/swift-metrics that referenced this pull request Jan 6, 2026
… pick czechboy0's initial wasm support provided in apple#183 with merge conflicts resolved.
scottmarchant added a commit to PassiveLogic/swift-metrics that referenced this pull request Jan 6, 2026
… pick czechboy0's initial wasm support provided in apple#183 with merge conflicts resolved.
@scottmarchant
Copy link
Copy Markdown
Contributor

@czechboy0 New PR with resolved conflicts is available now:

#190

@scottmarchant
Copy link
Copy Markdown
Contributor

@FranzBusch Per the conversation above, I believe this PR can be closed now that #190 is available with the resolved conflicts.

@czechboy0
Copy link
Copy Markdown
Contributor Author

Obsoleted by #190

@czechboy0 czechboy0 closed this Jan 7, 2026
scottmarchant added a commit to PassiveLogic/swift-metrics that referenced this pull request Jan 14, 2026
… pick czechboy0's initial wasm support provided in apple#183 with merge conflicts resolved.

 This also contains the latest Lock implementations from NIO, duplicated first in swift-log: apple/swift-log#398
scottmarchant added a commit to PassiveLogic/swift-metrics that referenced this pull request Feb 3, 2026
… pick czechboy0's initial wasm support provided in apple#183 with merge conflicts resolved.

 This also contains the latest Lock implementations from NIO, duplicated first in swift-log: apple/swift-log#398
kukushechkin pushed a commit that referenced this pull request Feb 12, 2026
… WebAssembly (#190)

### Motivation:

As part of expanding platform and CI coverage of Swift Configuration,
Swift Metrics should also build to Wasm using the [Swift SDK for
WebAssembly](https://www.swift.org/documentation/articles/wasm-getting-started.html).

### Modifications:

Brought over locking changes from Swift Log to support Wasm.
Conditionally elided some APIs that require Dispatch when Dispatch isn't
available.

### Result:

The package now builds against the Wasm SDK, both normal and the test
targets.

### Important

This PR is a cherry pick of
#183 created by @czechboy0.
It has been modified to resolve conflicts and is rebased on the latest
`main`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver/none No version bump required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants