Skip to content

Commit

Permalink
Narrow crate scope to attestation
Browse files Browse the repository at this point in the history
Previously the crates were named to contain all future protobuf types
and services, now the crates have been named to only support
`attestation` with the intent to create dedicated crates for other gRPC
communications.
  • Loading branch information
nick-mobilecoin committed Feb 13, 2023
1 parent 1d59e93 commit bc2c553
Show file tree
Hide file tree
Showing 15 changed files with 106 additions and 100 deletions.
11 changes: 7 additions & 4 deletions crates/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
[workspace]
members = [
"grpcio",
"messages",
"tonic",
"attestation/grpcio",
"attestation/tonic",
"attestation/protobuf-types",
]

# We need to explicitly specify resolver 2.
# We shouldn't have to per https://doc.rust-lang.org/edition-guide/rust-2021/default-cargo-resolver.html, but that does not appear to be the case
resolver = "2"

[workspace.package]
rust-version = "1.67.0"

[profile.release]
lto = "thin"

Expand All @@ -24,5 +27,5 @@ tag-name = "v{{version}}"
# common format and are always next to the Cargo.toml for their respective
# package.
pre-release-replacements = [
{file="README.md", search="mc-probufs-[a-z-]+/[0-9.]+", replace="{{crate_name}}/{{version}}"},
{file="README.md", search="mc-[a-z-]+/[0-9.]+", replace="{{crate_name}}/{{version}}"},
]
15 changes: 15 additions & 0 deletions crates/attestation/grpcio/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[package]
name = "mc-attestation-grpcio"
version = "0.1.0"
edition = "2021"
authors = ["MobileCoin"]
rust-version = { workspace = true }
license = "Apache-2.0"
readme = "README.md"
repository = "https://github.com/mobilecoinfoundation/protobufs"
description = "grpcio enclave attestation gRPC client and server"
categories = ["api-bindings", "encoding"]
keywords = ["grpc", "protobuf", "rpc"]

[dependencies]
mc-attestation-protobuf-types = { path = "../protobuf-types", version = "0.1.0" }
22 changes: 22 additions & 0 deletions crates/attestation/grpcio/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# MobileCoin: grpcio enclave attestation gRPC client and server

[![Project Chat][chat-image]][chat-link]<!--
-->![License][license-image]<!--
-->![Target][target-image]<!--
-->[![Crates.io][crate-image]][crate-link]<!--
-->[![Docs Status][docs-image]][docs-link]<!--
-->[![Dependency Status][deps-image]][deps-link]

[grpcio](https://docs.rs/grpcio/latest/grpcio/) implementation of gRPC client
and server for enclave attestation.

[chat-image]: https://img.shields.io/discord/844353360348971068?style=flat-square
[chat-link]: https://mobilecoin.chat
[license-image]: https://img.shields.io/crates/l/mc-attestation-grpcio?style=flat-square
[target-image]: https://img.shields.io/badge/target-x86__64-blue?style=flat-square
[crate-image]: https://img.shields.io/crates/v/mc-attestation-grpcio.svg?style=flat-square
[crate-link]: https://crates.io/crates/mc-attestation-grpcio
[docs-image]: https://img.shields.io/docsrs/mc-attestation-grpcio?style=flat-square
[docs-link]: https://docs.rs/crate/mc-attestation-grpcio
[deps-image]: https://deps.rs/crate/mc-attestation-grpcio/0.1.0/status.svg?style=flat-square
[deps-link]: https://deps.rs/crate/mc-attestation-grpcio/0.1.0
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "mc-probufs-messages"
name = "mc-attestation-protobuf-types"
version = "0.1.0"
edition = "2021"
authors = ["MobileCoin"]
rust-version = "1.65"
rust-version = { workspace = true }
license = "Apache-2.0"
readme = "README.md"
repository = "https://github.com/mobilecoinfoundation/probufs"
repository = "https://github.com/mobilecoinfoundation/protobufs"
description = "Common grpc messages"
categories = ["encoding"]
keywords = ["protobuf"]
Expand Down
22 changes: 22 additions & 0 deletions crates/attestation/protobuf-types/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# MobileCoin: Common protobuf message types

[![Project Chat][chat-image]][chat-link]<!--
-->![License][license-image]<!--
-->![Target][target-image]<!--
-->[![Crates.io][crate-image]][crate-link]<!--
-->[![Docs Status][docs-image]][docs-link]<!--
-->[![Dependency Status][deps-image]][deps-link]

Common protobuf message types. [prost](https://docs.rs/prost/latest/prost/) is
used for the message format.

[chat-image]: https://img.shields.io/discord/844353360348971068?style=flat-square
[chat-link]: https://mobilecoin.chat
[license-image]: https://img.shields.io/crates/l/mc-attestation-protobuf-types?style=flat-square
[target-image]: https://img.shields.io/badge/target-x86__64-blue?style=flat-square
[crate-image]: https://img.shields.io/crates/v/mc-attestation-protobuf-types.svg?style=flat-square
[crate-link]: https://crates.io/crates/mc-attestation-protobuf-types
[docs-image]: https://img.shields.io/docsrs/mc-attestation-protobuf-types?style=flat-square
[docs-link]: https://docs.rs/crate/mc-attestation-protobuf-types
[deps-image]: https://deps.rs/crate/mc-attestation-protobuf-types/0.1.0/status.svg?style=flat-square
[deps-link]: https://deps.rs/crate/mc-attestation-protobuf-types/0.1.0
File renamed without changes.
15 changes: 15 additions & 0 deletions crates/attestation/tonic/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[package]
name = "mc-attestation-tonic"
version = "0.1.0"
edition = "2021"
authors = ["MobileCoin"]
rust-version = { workspace = true }
license = "Apache-2.0"
readme = "README.md"
repository = "https://github.com/mobilecoinfoundation/protobufs"
description = "Tonic enclave attestation gRPC client and server"
categories = ["api-bindings", "encoding"]
keywords = ["grpc", "protobuf", "rpc"]

[dependencies]
mc-attestation-protobuf-types = { path = "../protobuf-types", version = "0.1.0" }
22 changes: 22 additions & 0 deletions crates/attestation/tonic/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# MobileCoin: Tonic enclave attestation gRPC client and server

[![Project Chat][chat-image]][chat-link]<!--
-->![License][license-image]<!--
-->![Target][target-image]<!--
-->[![Crates.io][crate-image]][crate-link]<!--
-->[![Docs Status][docs-image]][docs-link]<!--
-->[![Dependency Status][deps-image]][deps-link]

[Tonic](https://docs.rs/tonic/latest/tonic/) implementation of gRPC client and
server for attesting to enclaves.

[chat-image]: https://img.shields.io/discord/844353360348971068?style=flat-square
[chat-link]: https://mobilecoin.chat
[license-image]: https://img.shields.io/crates/l/mc-mc-attestation-tonic?style=flat-square
[target-image]: https://img.shields.io/badge/target-x86__64-blue?style=flat-square
[crate-image]: https://img.shields.io/crates/v/mc-mc-attestation-tonic.svg?style=flat-square
[crate-link]: https://crates.io/crates/mc-mc-attestation-tonic
[docs-image]: https://img.shields.io/docsrs/mc-mc-attestation-tonic?style=flat-square
[docs-link]: https://docs.rs/crate/mc-mc-attestation-tonic
[deps-image]: https://deps.rs/crate/mc-mc-attestation-tonic/0.1.0/status.svg?style=flat-square
[deps-link]: https://deps.rs/crate/mc-mc-attestation-tonic/0.1.0
File renamed without changes.
15 changes: 0 additions & 15 deletions crates/grpcio/Cargo.toml

This file was deleted.

21 changes: 0 additions & 21 deletions crates/grpcio/README.md

This file was deleted.

21 changes: 0 additions & 21 deletions crates/messages/README.md

This file was deleted.

15 changes: 0 additions & 15 deletions crates/tonic/Cargo.toml

This file was deleted.

21 changes: 0 additions & 21 deletions crates/tonic/README.md

This file was deleted.

0 comments on commit bc2c553

Please sign in to comment.