Page MenuHomePhabricator

[native] Rust futures in C++
AbandonedPublic

Authored by michal on Nov 17 2023, 9:20 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jul 1, 10:12 PM
Unknown Object (File)
Sat, Jun 29, 8:14 PM
Unknown Object (File)
Jun 26 2024, 3:53 PM
Unknown Object (File)
Jun 24 2024, 2:51 AM
Unknown Object (File)
Jun 23 2024, 2:46 PM
Unknown Object (File)
Jun 23 2024, 5:21 AM
Unknown Object (File)
Jun 18 2024, 6:49 AM
Unknown Object (File)
Jun 13 2024, 6:11 AM
Subscribers

Details

Reviewers
kamil
marcin
varun
Summary

Similar to the existing RustPromiseManager but for the promises created on Rust side and resolved on the C++ side. Will be used for async Secure Store access ENG-5700.

Test Plan

Run the provided test.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

native/native_rust_library/src/cxx_promise_manager.rs
5

This will require to create new global hash map every time we introduce new type that some promie will resolve to. In every programming language that I know this could be resolved without having to add new hash map for each type.

Is it the limitation of CXX that forces this approach?

varun requested changes to this revision.Nov 20 2023, 10:27 AM
varun added inline comments.
native/native_rust_library/src/cxx_promise_manager.rs
1–69
This revision now requires changes to proceed.Nov 20 2023, 10:27 AM

Abandoning as it is an old diff. Something similar to this has been implemented in D10858