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)
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)
Sun, Oct 20, 7:19 PM
Unknown Object (File)
Sun, Oct 13, 1:09 AM
Unknown Object (File)
Sun, Oct 13, 1:09 AM
Unknown Object (File)
Sun, Oct 13, 1:02 AM
Unknown Object (File)
Sep 7 2024, 6:06 PM
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