-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Possibility of compiling on stable Rust? #117
Comments
I removed some unused features and checked which crate depends on which feature. swc_common:
swc_ecma_parser:
So I think it's possible and I'd like to do it, but I'm not sure how much time it would take. |
cc @alexcrichton Only hygiene and error reporting is used by swc, so it would not be too hard. |
Oh wow thanks for the speedy responses, this looks great! I was trying to give this a spin locally with a few |
@alexcrichton Fixed it. I made a mistake while inlining rustc-ap crates. |
It got farther! I think though |
Oh, my mistake.. I guess you should run |
Ok great, thanks! Our use case will also need to write out the JS file after transforming it, does that mean that we would need the |
@alexcrichton Yes. I published swc_ecma_codgen v0.5.1 which can be built with stable rustc. |
Awesome, thanks again so much for your help! |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Hello! Over in the
wasm-bindgen
project we've got a new proposal which partly entails eventually having a JS parser built into our tooling. The JS parser would need to basically compile ES module syntax to either CommonJS or "linked manually with no modules" style syntax. The swc project seems like it perfectly fits the bill in terms of use cases here!One hesitation that we'd currently have from using swc is that it looks like it currently requires nightly Rust and also isn't published much on crates.io. I'm curious if y'all have an idea about whether it's feasible in the near-term to compile on stable (and as a bit of a stretch goal publish on crates.io too). That'd make swc a strong possibility for us to use in
wasm-bindgen
as a dependency!We're mostly just evaluating our options right now, so "not any time soon" is a totally valid answer too!
The text was updated successfully, but these errors were encountered: