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 sidevm runtime #266

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Support sidevm runtime #266

wants to merge 1 commit into from

Conversation

kvinwang
Copy link

@kvinwang kvinwang commented Aug 5, 2022

This PR adds support running telegram-bot under Phala network's sidevm environment.

The sidevm is a smart contract platform where tokio runtime is not available and it provides a sidevm runtime instead.

@h4x3rotab
Copy link

To add some background, this is an effort to make telegram-rs usabe in a wasm cloud runtime.

SideVM is a WASM-based serverless runtime on a decentralized cloud computing network, Phala Network. This PR will enable developer to deploy telegram-rs bots on Phala cloud. SideVM programs are compiled to standard WASM. However, compared with WASI, it additionally provides a socket implementation (since WASI doesn't have the full socket support). So we can provide the full network support to the developer, with all the common libraries like tokio, Hyper, etc.

We would sincerely request the team to review and give feedback to this PR. Not only because it's an attempt to enable writing bots in WASM, but also a few teams really want to build their telegram bots on decentralized cloud.

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

Successfully merging this pull request may close these issues.

2 participants