HomePhabricator
Diffusion Comm bdb8e2db3913

[native] introduce RustCallback

Description

[native] introduce RustCallback

Summary:
we introduce a generic C++ callback function to be called from Rust

note that this function is only used when the js return type is Promise<string>

we'll have to add similar functions to RustCallback for other return types
luckily we really only ever return strings from rust...

Test Plan: this gets tested in the next diff in stack

Reviewers: ashoat, jon

Reviewed By: ashoat, jon

Subscribers: tomek, atul

Differential Revision: https://phab.comm.dev/D7214

Details

Provenance
varunAuthored on Mar 27 2023, 8:37 PM
Reviewer
ashoat
Differential Revision
D7214: [native] introduce RustCallback
Parents
rCOMM7e3080a6d845: [services][identity] implement generate_nonce RPC in new client_service.
Branches
Unknown
Tags
Unknown