Skip to content

Add scala native platform - #341

Open
ivan-klass wants to merge 2 commits into
tototoshi:masterfrom
ivan-klass:native-platform
Open

Add scala native platform#341
ivan-klass wants to merge 2 commits into
tototoshi:masterfrom
ivan-klass:native-platform

Conversation

@ivan-klass

@ivan-klass ivan-klass commented May 9, 2025

Copy link
Copy Markdown

This PR implements src/main/java in Scala (as src/main/scala-readers) and adds a ScalaNative platform. Later it would be much easier to add JS also.

Currently, new sources are only connected to non-JVM builds, and there are no changes to the JVM platform at all.
JVM build uses exactly the same sources and compile settings as before, so maybe there's no need for a version bump, as there are no changes to ship compared to existing 2.0.0 artifacts.

As for the upcoming versions, it would be nice to drop src/main/java completely. Unfortunately, these interfaces are defined as public. Following semver conventions strictly, that might be considered as requiring a major version bump, but it seems very unlikely that library users extend existing LineReaders to implement their own.

If needed, I can separate this PR into parts, like:

  • preparing build.sbt to multi-projects (first commit)
  • implement LineReaders in scala
  • scala-native

please let me know if it would make sense.

@ivan-klass

ivan-klass commented Jun 20, 2025

Copy link
Copy Markdown
Author

@tototoshi @xuwei-k could you please take a look? I believe the PR is merge-ready

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.

1 participant