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)
Sun, Nov 3, 11:23 AM
Unknown Object (File)
Fri, Nov 1, 9:26 PM
Unknown Object (File)
Fri, Nov 1, 9:26 PM
Unknown Object (File)
Fri, Nov 1, 9:05 PM
Unknown Object (File)
Oct 20 2024, 7:19 PM
Unknown Object (File)
Oct 13 2024, 1:09 AM
Unknown Object (File)
Oct 13 2024, 1:09 AM
Unknown Object (File)
Oct 13 2024, 1:02 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