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

feat: small wasm support #4683

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

driftluo
Copy link
Collaborator

@driftluo driftluo commented Oct 22, 2024

What problem does this PR solve?

After some effort, the ckb-light-client project has been verified and run on the browser. It can perform basic queries and responses and can be embedded in any web page. The binary size is about 20M, but there is still some work to be verified. This PR is the basic support for WASM.

wait nervosnetwork/tentacle#375

Issues to discuss:

  • I disable the peer-store dump on WASM now
  • I unimplemented soft-fork version bit get/insert on WASM now
  • I disable the network key persistence on WASM now

Check List

Tests

  • Unit test
  • Integration test

Release note

Title Only: Include only the PR title in the release note.

@driftluo driftluo force-pushed the small-wasm-support branch 2 times, most recently from 7745dd2 to 7b709ad Compare October 24, 2024 03:59
network/src/peer.rs Outdated Show resolved Hide resolved
network/src/network.rs Outdated Show resolved Hide resolved
network/src/peer_store/peer_store_impl.rs Outdated Show resolved Hide resolved
@eval-exec eval-exec added the t:enhancement Type: Feature, refactoring. label Oct 24, 2024
@driftluo driftluo force-pushed the small-wasm-support branch 13 times, most recently from 500aed5 to 8ac3019 Compare October 26, 2024 04:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t:enhancement Type: Feature, refactoring.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants