-
Notifications
You must be signed in to change notification settings - Fork 233
Scala.js binding generator #1171
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
Open
vigoo
wants to merge
38
commits into
bytecodealliance:main
Choose a base branch
from
vigoo:upstream-scalajs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 35 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
3bf1e70
Scala.js binding generator, work in progress
vigoo 9d261a8
Scala.js binding generator, work in progress
vigoo 0481643
Scala.js binding generator, work in progress
vigoo 996a9b4
Scala.js binding generator, work in progress
vigoo d74996b
Scala.js binding generator, work in progress
vigoo e9744a4
Scala.js binding generator, work in progress
vigoo 10f48c9
Scala.js binding generator, work in progress
vigoo b36297d
Scala.js binding generator, work in progress
vigoo 68aada8
Scala.js binding generator, work in progress
vigoo 8b7f6fc
Scala.js binding generator, work in progress
vigoo 170bb19
World exports
vigoo e58fca0
Restructuring
vigoo 2897791
Scala.js binding generator, feature complete
vigoo 7048c1f
Fix clap attributes
vigoo 15940f7
Fixed export name
vigoo c29093b
Fixes
vigoo 9c16e8f
Uint8Array
vigoo e01bdf7
Result return types are exceptions
vigoo 8e7a2e1
Generate top-level class exports for resources, with prefixed names
vigoo d9c42f1
Remove resource constructors from interface base traits
vigoo 8117ffa
Format and CI fixes
vigoo 3253e54
Fix typo
vigoo 86d8ba2
No need for setup-scala
vigoo 5b1979e
setup-scala is needed, but does not work on Windows
vigoo 01b6e37
CI fix
vigoo 8fd55a2
CI fix
vigoo f30fdae
Merge pull request #1 from vigoo/scalajs
vigoo cb8ad56
Disable ScalaJS tests on MacOS too for CI
vigoo 7a923cb
Reenabled all features
vigoo 8c1aec0
Undo readme change
vigoo b0c7f84
Undo executable name
vigoo 0488de5
No runtime scalajs tests yet
vigoo 5998e3a
Undo Cargo.toml change
vigoo 9011a55
Merge remote-tracking branch 'upstream/main' into upstream-scalajs
vigoo f3bc801
Fix after updating to latest wit-parser
vigoo c82af1e
Update crates/scalajs/Cargo.toml
vigoo 178be86
Using js.TupleN and up-to-date github action steps
vigoo 809bac7
Renamed to scalajs-jco
vigoo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[package] | ||
name = "wit-bindgen-scalajs" | ||
authors = ["Daniel Vigovszky <[email protected]>"] | ||
version = { workspace = true } | ||
edition = { workspace = true } | ||
repository = { workspace = true } | ||
license = { workspace = true } | ||
homepage = 'https://github.com/bytecodealliance/wit-bindgen' | ||
description = """ | ||
Scala.JS bindings generator for WIT and the component model, typically used | ||
vigoo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
through the `wit-bindgen-cli` crate. | ||
""" | ||
|
||
[dependencies] | ||
anyhow = { workspace = true } | ||
wit-bindgen-core = { workspace = true } | ||
heck = { workspace = true } | ||
clap = { workspace = true, optional = true } | ||
|
||
[dev-dependencies] | ||
test-helpers = { path = '../test-helpers' } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sbt.version = 1.10.7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
lazy val root = project | ||
.in(file(".")) | ||
.settings( | ||
name := "wit-bindgen-scalajs-test", | ||
scalaVersion := "2.13.16", | ||
) | ||
.enablePlugins(ScalaJSPlugin) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.18.2") |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.