Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Rust FFI: XXX Call Rust & Rust Call XXX #355

Open
Tracked by #361 ...
hhstore opened this issue Jun 5, 2022 · 9 comments
Open
Tracked by #361 ...

Rust FFI: XXX Call Rust & Rust Call XXX #355

hhstore opened this issue Jun 5, 2022 · 9 comments

Comments

@hhstore
Copy link
Owner

hhstore commented Jun 5, 2022

📖 Abstract:

  • ✅ 基于 C FFI, 把 rust 库 binding 给其他语言调用,以及反向操作。

💯 Related:

@hhstore
Copy link
Owner Author

hhstore commented Jun 5, 2022

Rust + FFI 方案

  • Rust 是非常非常适合做 core lib 层的跨平台方案.
  • Flutter 适合 UI 层(交互层) 的跨平台方案.
  • Rust + Flutter 是非常完美的架构组合方案, 兼顾效率和性能.
  • FFI

1. 主调方(as Caller): Rust call C/C++

  • ✅ 见⬇️

2. 被调方(as Callee): C/C++ call Rust

  • ✅ 见⬇️

3. 双向桥: rust vs c++

4. 其他:

参考:

搜索包:

@hhstore
Copy link
Owner Author

hhstore commented Jun 5, 2022

@hhstore
Copy link
Owner Author

hhstore commented Jun 5, 2022

Rust FFI: XXX Call Rust

  • TODO

@hhstore
Copy link
Owner Author

hhstore commented Oct 10, 2024

Rust + FFI + Java(JNI):

@hhstore
Copy link
Owner Author

hhstore commented Oct 10, 2024

Rust + FFI + Mac M1 问题:

@hhstore
Copy link
Owner Author

hhstore commented Oct 10, 2024

1

1 similar comment
@hhstore
Copy link
Owner Author

hhstore commented Oct 10, 2024

1

@hhstore hhstore added the C/C++ label Oct 10, 2024
@hhstore hhstore changed the title Rust: FFI - XXX Call Rust & Rust Call XXX Rust FFI: XXX Call Rust & Rust Call XXX Oct 10, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant