Page MenuHomePhabricator

[Native] Migrate native_rust_library to use identity client stubs
ClosedPublic

Authored by jon on Mar 23 2023, 10:26 AM.
Tags
None
Referenced Files
F3536127: D7155.id24237.diff
Wed, Dec 25, 5:36 PM
Unknown Object (File)
Sat, Dec 7, 11:39 PM
Unknown Object (File)
Fri, Dec 6, 9:52 PM
Unknown Object (File)
Fri, Dec 6, 1:07 PM
Unknown Object (File)
Thu, Dec 5, 8:29 PM
Unknown Object (File)
Thu, Dec 5, 7:53 AM
Unknown Object (File)
Thu, Dec 5, 7:53 AM
Unknown Object (File)
Thu, Dec 5, 1:59 AM
Subscribers

Details

Summary

The existing bindings used the now "keyserver" API, and we
need to migrate the usage to the newer client gRPC API.

In addition, decided to update the reference of comm-opaque to use
the opaque_ke 2.0 comm-opaque2 project

https://linear.app/comm/issue/ENG-3384

Test Plan

This will be tested thoroughly in later diffs, for now this is
intended to allow for division of work between implmenting the different RPCs

cd native/native_rust_library
cargo build

Diff Detail

Repository
rCOMM Comm
Branch
jonringer/split-key-rpcs (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

native/native_rust_library/build.rs
16–17

tonic_build automatically does this for us.

Harbormaster returned this revision to the author for changes because remote builds failed.Mar 23 2023, 11:03 AM
Harbormaster failed remote builds in B17557: Diff 24034!

Move wasm generation into web/

Harbormaster returned this revision to the author for changes because remote builds failed.Mar 27 2023, 8:00 AM
Harbormaster failed remote builds in B17681: Diff 24204!

Undo changes to android CMakeLists.txt

web/opaque-ke-wasm/src/lib.rs
1 ↗(On Diff #24207)

This allows for wasm-pack build to pick up the relevant things we want to export

web/opaque-ke-wasm/Cargo.toml
6–7 ↗(On Diff #24207)

Moving the wasm-specific crate-types was necessary because corrosion-rs tries to build for these crate-types as well, which don't work as well.

Having this in a separate directory allows for some separation of concerns; and makes corrosion-rs able to proceed with the happy path which works currently.

Thanks for submitting!! I am clueless in Rust and this appears mostly Rust, so I will resign

This revision is now accepted and ready to land.Mar 27 2023, 1:45 PM