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

klib dependencies support #808

Open
Kernald opened this issue Aug 3, 2022 · 4 comments
Open

klib dependencies support #808

Kernald opened this issue Aug 3, 2022 · 4 comments

Comments

@Kernald
Copy link
Contributor

Kernald commented Aug 3, 2022

For Kotlin/JS (and Kotlin/Native, but I guess not Kotlin/JVM), JetBrains created a new dependency format for modules built with the IR back-end, klib - https://kotlinlang.org/docs/native-libraries.html#library-format

Some projects (e.g. arrow-kt) are only publishing klib artifacts for their JS builds, having support for those here would be nice.

@jbarr21
Copy link
Contributor

jbarr21 commented Apr 12, 2024

@Bencodes @restingbull it looks like the kotlin 2.0 releases no longer ship a .jar for JS std libs (only the .klib). i think that'll be a blocker for using Kotlin 2.0.0 in the kotlin rules, which will be needed to get JDeps working with 2.0 (#843)

❯ unzip -Z1 kotlin-compiler-1.9.23.zip | ag "lib.*\-js"
kotlinc/lib/kotlin-stdlib-js-sources.jar
kotlinc/lib/kotlin-stdlib-js.jar
kotlinc/lib/kotlin-stdlib-js.klib
kotlinc/lib/kotlin-test-js-sources.jar
kotlinc/lib/kotlin-test-js.jar

❯ unzip -Z1 kotlin-compiler-2.0.0-RC1.zip | ag "lib.*\-js"
kotlinc/lib/kotlin-stdlib-js-sources.jar
kotlinc/lib/kotlin-stdlib-js.klib
kotlinc/lib/kotlin-test-js-sources.jar
kotlinc/lib/kotlin-test-js.klib

@neckbosov
Copy link

Hi, are there some updates here? Kotlin 2.0 was released, and without that it's impossible to use rules_kotlin with that version although 2.0 api/language versions are formally supported.

@restingbull
Copy link
Collaborator

We are considering removing js support for 2.0 -- until such time as we have proper kotlin native support.

@neckbosov -- are you actively using js support?

@restingbull restingbull self-assigned this Jun 28, 2024
@neckbosov
Copy link

@restingbull no, we are not using it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants