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

WebAssembly - WASI Support #7831

Open
woncheol-kim opened this issue May 8, 2024 · 1 comment
Open

WebAssembly - WASI Support #7831

woncheol-kim opened this issue May 8, 2024 · 1 comment

Comments

@woncheol-kim
Copy link

What problem are you are trying to solve?

How do you think rclone should be changed to solve that?

Hello, first off, I want to express my gratitude for this incredible software that I rely on daily.

After conducting a search on this site, I've observed that there was an issue related to the WebAssembly build of rclone. I'm interested in obtaining a copy. Would it be possible to acquire one?

My intention is to utilize rclone within a-Shell, an iOS terminal with certain limitations. The developer suggests that compiling from source code into a WebAssembly build using WASI-SDK might enable its functionality within a-Shell, potentially bypassing Apple Store policies since it's technically not binary code subject to those policies.

I attempted to compile it myself, first in a Linux terminal and then in a macOS terminal, but when I executed it in a-Shell, I only received an empty shell without any feedback. I'm not a developer myself, and my attempts were made with the assistance of Copilot AI. Explaining step by step what might have gone wrong with my attempts would likely be a lengthy process.

For reference, here's the link to a-Shell's GitHub repository: https://github.com/holzschu/a-shell

Thank you.

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.
@ncw
Copy link
Member

ncw commented May 11, 2024

The core of rclone builds with wasm, however we've never done wasi which would enable the command line usage you are looking for.

So that is why it doesn't work.

It would be a nice project to make things work with wasi for someone since go now has support for it directly

https://go.dev/blog/wasi

I'm not sure how hard this would be though!

@edc-w edc-w changed the title WebAssembly Build Inquiry WebAssembly - WASI Support May 13, 2024
@edc-w edc-w added this to the Help Wanted milestone May 13, 2024
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

3 participants