project-oak / oak

Meaningful control of data in distributed systems.
Apache License 2.0
991 stars 107 forks source link

Build oak_attestation and oak_crypto with Bazel. #4990

Closed ernoc closed 3 months ago

ernoc commented 3 months ago

Also move building of crypto microrcp protos into oak_proto_rust crate.

Change-Id: I3d684aa6c8d1bc104a4551d655438bc52c407a83

ernoc commented 3 months ago

Motivations for moving the building of crypto.proto and not have each crate build protos using prost in its own build.rs script and include the resulting output:

tiziano88 commented 3 months ago

Please make sure that other internal clients will keep working (e.g. TB, which is on Git-on-Borg)

ernoc commented 3 months ago

Please make sure that other internal clients will keep working (e.g. TB, which is on Git-on-Borg)

ernoc commented 3 months ago

Please make sure that other internal clients will keep working (e.g. TB, which is on Git-on-Borg)

  • Everything still builds and tests ok with cargo - this PR only adds bazel.
  • How can I test that?

From code search I see TB are importing as:

use oak_attestation::proto::oak::crypto::v1::Signature;

which won't be affected as that structure is kept in this PR (oak_attestation/src/lib.rs)