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

Design plan #10

Open
akeboshi1 opened this issue Aug 14, 2022 · 1 comment
Open

Design plan #10

akeboshi1 opened this issue Aug 14, 2022 · 1 comment

Comments

@akeboshi1
Copy link
Owner

1: 新增逻辑线程http方式加载
2: 由于wasm_bindgen不支持rust socket2,所以需要手动把websocket rust化
3: 由于wasm_bindgen不支持rust tokio库,所以需要手动实现异步逻辑
4: js和rust之间的类型不同,通信时需要手动转换,需要研究下wasm_bindgen是否支持某些类型
5: 由于wasm加载路径的原因需要去除RPC,直接用原生的worker通信
6: 逻辑线程全部业务逻辑 rust化
7: wasm_bindgen还处于研发阶段,部分rust功能可能不支持,所以需要时间去踩坑

@akeboshi1
Copy link
Owner Author

在rust和js之间通信

  • 需要有序列化和反序列化的功能
  • 在用闭包通信时,会存在闭包归属权的问题,所以需要避免

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

No branches or pull requests

1 participant