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

Please write & publish blog for rust also #6955

Open
beingminimal opened this issue Jan 11, 2024 · 6 comments
Open

Please write & publish blog for rust also #6955

beingminimal opened this issue Jan 11, 2024 · 6 comments
Assignees
Labels
doc-enhancement suggested addition or improvement
Milestone

Comments

@beingminimal
Copy link

beingminimal commented Jan 11, 2024

I have read this blog but can't find anything for rust.
https://code.visualstudio.com/blogs/2023/06/05/vscode-wasm-wasi

Can you please open source repo or step by step guide to achieve rust dev environment in browser like you have shown for python?

Please help.

Thanks

@beingminimal
Copy link
Author

@dbaeumer Can you please help to write a blog for rust dev environment in browser?

@dbaeumer
Copy link
Member

A Rust Dev environment in the browser is currently not easily achievable since most of the Rust tools CAN'T be compiled down to WASM. Unless that is possible writing a blog post is not very useful. I will therefore close the issue.

@beingminimal
Copy link
Author

@dbaeumer i think it's possible now they have compiled rustc into wasm to run cargo commands, have a look in last few comments
rust-lang/miri#722

@dbaeumer
Copy link
Member

I still would wait until this is officially supported.

@dbaeumer dbaeumer reopened this Jan 11, 2024
@dbaeumer dbaeumer added the feature-request Request for new features or functionality label Jan 11, 2024
@VSCodeTriageBot
Copy link
Collaborator

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@dbaeumer dbaeumer transferred this issue from microsoft/vscode Jan 11, 2024
@dbaeumer dbaeumer removed the feature-request Request for new features or functionality label Jan 11, 2024
@dbaeumer dbaeumer added this to the Backlog milestone Jan 11, 2024
@ntrogh ntrogh added the doc-enhancement suggested addition or improvement label Jan 11, 2024
@bjorn3
Copy link

bjorn3 commented Jan 25, 2024

I still would wait until this is officially supported.

As the person who managed to compile rustc to wasm, I agree. I needed quite some extensive patches to make this work and there are some major limitations like linking not being supported and not being able to compile for wasm using the resulting compiler. Some of the patches I needed have been upstreamed already, and I'm currently working on getting some others upstreamed, but that still leaves some patches that I don't think are upstreamable for the time being.

The core of rust-analyzer (the rust language server) on the other hand can be compiled for wasm just fine. You do still need to write a replacement for the language server binary itself though like for example https://github.com/rust-analyzer/rust-analyzer-wasm as the regular binary depends on being able to run cargo for getting the project metadata and doing cargo check to show error messages from the compiler as diagnostics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-enhancement suggested addition or improvement
Projects
None yet
Development

No branches or pull requests

6 participants