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

Support KSP #424

Open
ddk9499 opened this issue Feb 11, 2021 · 3 comments
Open

Support KSP #424

ddk9499 opened this issue Feb 11, 2021 · 3 comments

Comments

@ddk9499
Copy link

ddk9499 commented Feb 11, 2021

For Kotlin projects, Toothpick currently makes use of KAPT. This is generally quite slow since it requires generating Java stubs before the annotation processing step.

KSP offers an alternative to this by making it easier for annotation processors like Toothpick to more directly use Kotlin's compiler plugin infrastructure. Based on initial benchmarks, using KSP can speed up build times by as much as 2x.

@L7ColWinters
Copy link

L7ColWinters commented Jan 25, 2022

I don't see any pr's about this currently. Has anyone taken a try at this yet? It's been about a year and other libraries have added ksp adaptations

@afaucogney
Copy link

@L7ColWinters it's smell like @outadoc is working on this : #433

@outadoc
Copy link

outadoc commented Jan 25, 2022

Indeed! I've had little time to work on it so far so I can't make any guarantees on stability or compatibility, and there are KSP issues that might need fixes for all the tests to pass, but it's something, and you should be able to run it on a real project.

If anyone feels like testing and fixing stuff, contributions are welcome: https://github.com/outadoc/toothpick-compiler-ksp

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

No branches or pull requests

4 participants