Skip to content

Commit

Permalink
Prep for release 0.6.1 (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-mobilecoin authored May 23, 2023
2 parents 591f434 + 64febb6 commit 29a2b99
Show file tree
Hide file tree
Showing 70 changed files with 202 additions and 261 deletions.
67 changes: 0 additions & 67 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,72 +26,6 @@ jobs:
with:
globs: "**/*.md"

crev:
runs-on: ubuntu-22.04
# Override errors here, eventually we'd like to start failing PRs based on this
continue-on-error: true
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: "true"
- run: cargo check
- name: Initialize Cargo Crev
run: |-
cargo install cargo-crev || true
cargo crev trust --level high --no-commit https://github.com/mobilecoinfoundation/crev-proofs
- name: Run Cargo Crev
id: cargo-crev
run: |
set +e
export MARKER=$RANDOM
echo "UNREVIEWED_DEPENDENCIES<<EOF${MARKER}" >> $GITHUB_OUTPUT
# GH does not like colors in crev output
export TERM=xterm-mono
# - Get a TSV-formatted table of dependencies without recorded reviews
# - Skip any "local" dependencies
# - Convert the table to GHF markdown
# - Sort descending by the "LoC" value (first column preceeds first pipe)
cargo crev crate verify \
--for-id vMr-9g5KzKQLsCpkp1tc8o7AR6a0OptjOICjf7NMyHE \
--show-all \
--skip-indirect \
--skip-verified \
--skip-known-owners \
--trust medium \
--thoroughness medium \
--understanding medium \
--redundancy 2 | \
grep -v '^local ' | \
awk '{printf("| %s | %s | %s | %s | %s | %s | %s |\n", $14, $15, $2, $10, $11, $12, $13)}' | \
sort -t\| -n -k5 | \
tee /dev/stderr >> $GITHUB_OUTPUT
STATUS=$?
echo "EOF${MARKER}" >> $GITHUB_OUTPUT
set -e
# TODO: Once we're ready to start failing PRs for lack of dependency reviews
# exit $STATUS
exit 0
shell: bash
- uses: mshick/add-pr-comment@v2
with:
message: |
#### :x: Unreviewed dependencies found
| Crate | Version | Reviews (N/2) | LoC | Left-Pad Index | Geiger | Flags |
| ----- | ------- | ------------- | --- | -------------- | ------ | ----- |
${{ steps.cargo-crev.outputs.UNREVIEWED_DEPENDENCIES }}
deny:
strategy:
matrix:
Expand Down Expand Up @@ -281,7 +215,6 @@ jobs:
- "lint"
- "deny"
- "sort"
- "crev"
- "clippy"
- "build"
- "build-no-alloc"
Expand Down
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased] - ReleaseDate

## [0.6.1] - 2023-05-23

### Added

- Added `mc-sgx-dcap-types::TCBInfo` which provides the TCB (Trusted Compute Base)
for a quoted enclave.
- Added a method, `mc-sgx-dcap-types::Quote3::verify()`, to verify the signature
of a quoted enclave.

## [0.6.0] - 2023-04-12

### Added
Expand Down Expand Up @@ -134,7 +143,8 @@ doc builds for:
- Initial release of FFI bindings crates

<!-- next-url -->
[Unreleased]: https://github.com/mobilecoinfoundation/sgx/compare/{{tag_name}}...HEAD
[Unreleased]: https://github.com/mobilecoinfoundation/sgx/compare/v0.6.1...HEAD
[0.6.1]: https://github.com/mobilecoinfoundation/sgx/compare/v0.6.0...v0.6.1
[0.6.0]: https://github.com/mobilecoinfoundation/sgx/compare/v0.5.0...v0.6.0
[0.5.0]: https://github.com/mobilecoinfoundation/sgx/compare/v0.4.2...v0.5.0
[0.4.2]: https://github.com/mobilecoinfoundation/sgx/compare/v0.4.1...v0.4.2
Expand Down
2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ lto = true

[workspace.metadata.release]
shared-version = true
dev-version-ext = "beta.0"
consolidate-commits = true
consolidate-pushes = true
tag-name = "v{{version}}"

# The file names in this key are relative to the each crate that gets released.
Expand Down
12 changes: 6 additions & 6 deletions capable/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mc-sgx-capable"
version = "0.6.0"
version = "0.6.1"
edition = "2021"
authors = ["MobileCoin"]
rust-version = "1.62.1"
Expand All @@ -13,11 +13,11 @@ categories = ["api-bindings", "hardware-support"]
keywords = ["sgx"]

[dependencies]
mc-sgx-capable-sys = { path = "sys", version = "=0.6.0" }
mc-sgx-capable-sys-types = { path = "sys/types", version = "=0.6.0" }
mc-sgx-capable-types = { path = "types", version = "=0.6.0" }
mc-sgx-core-types = { path = "../core/types", version = "=0.6.0" }
mc-sgx-util = { path = "../util", version = "=0.6.0" }
mc-sgx-capable-sys = { path = "sys", version = "=0.6.1" }
mc-sgx-capable-sys-types = { path = "sys/types", version = "=0.6.1" }
mc-sgx-capable-types = { path = "types", version = "=0.6.1" }
mc-sgx-core-types = { path = "../core/types", version = "=0.6.1" }
mc-sgx-util = { path = "../util", version = "=0.6.1" }

[dev-dependencies]
yare = "1.0.1"
4 changes: 2 additions & 2 deletions capable/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ Idiomatic rust for the `sgx_capable` library.
[crate-link]: https://crates.io/crates/mc-sgx-capable
[docs-image]: https://img.shields.io/docsrs/mc-sgx-capable?style=flat-square
[docs-link]: https://docs.rs/crate/mc-sgx-capable
[deps-image]: https://deps.rs/crate/mc-sgx-capable/0.6.0/status.svg?style=flat-square
[deps-link]: https://deps.rs/crate/mc-sgx-capable/0.6.0
[deps-image]: https://deps.rs/crate/mc-sgx-capable/0.6.1/status.svg?style=flat-square
[deps-link]: https://deps.rs/crate/mc-sgx-capable/0.6.1
8 changes: 4 additions & 4 deletions capable/sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mc-sgx-capable-sys"
version = "0.6.0"
version = "0.6.1"
authors = ["MobileCoin"]
categories = ["external-ffi-bindings", "hardware-support"]
description = "FFI linkage for the `sgx_capable` library."
Expand All @@ -15,10 +15,10 @@ rust-version = "1.62.1"
doctest = false

[dependencies]
mc-sgx-capable-sys-types = { path = "types", version = "=0.6.0" }
mc-sgx-core-sys-types = { path = "../../core/sys/types", version = "=0.6.0" }
mc-sgx-capable-sys-types = { path = "types", version = "=0.6.1" }
mc-sgx-core-sys-types = { path = "../../core/sys/types", version = "=0.6.1" }

[build-dependencies]
bindgen = "0.65.1"
cargo-emit = "0.2.1"
mc-sgx-core-build = { path = "../../core/build", version = "=0.6.0" }
mc-sgx-core-build = { path = "../../core/build", version = "=0.6.1" }
4 changes: 2 additions & 2 deletions capable/sys/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ FFI bindings to the `libsgx_capable` library.
[crate-link]: https://crates.io/crates/mc-sgx-capable-sys
[docs-image]: https://img.shields.io/docsrs/mc-sgx-capable-sys?style=flat-square
[docs-link]: https://docs.rs/crate/mc-sgx-capable-sys
[deps-image]: https://deps.rs/crate/mc-sgx-capable-sys/0.6.0/status.svg?style=flat-square
[deps-link]: https://deps.rs/crate/mc-sgx-capable-sys/0.6.0
[deps-image]: https://deps.rs/crate/mc-sgx-capable-sys/0.6.1/status.svg?style=flat-square
[deps-link]: https://deps.rs/crate/mc-sgx-capable-sys/0.6.1
4 changes: 2 additions & 2 deletions capable/sys/types/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mc-sgx-capable-sys-types"
version = "0.6.0"
version = "0.6.1"
authors = ["MobileCoin"]
categories = ["external-ffi-bindings", "hardware-support", "no-std"]
description = "FFI type definitions used by the `sgx_capable` library."
Expand All @@ -17,4 +17,4 @@ doctest = false
[build-dependencies]
bindgen = "0.65.1"
cargo-emit = "0.2.1"
mc-sgx-core-build = { path = "../../../core/build", version = "=0.6.0" }
mc-sgx-core-build = { path = "../../../core/build", version = "=0.6.1" }
4 changes: 2 additions & 2 deletions capable/sys/types/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ FFI types used by the `sgx_capable` library.
[chat-link]: https://mobilecoin.chat
[docs-image]: https://img.shields.io/docsrs/mc-sgx-capable-sys-types?style=flat-square
[docs-link]: https://docs.rs/crate/mc-sgx-capable-sys-types
[deps-image]: https://deps.rs/crate/mc-sgx-capable-sys-types/0.6.0/status.svg?style=flat-square
[deps-link]: https://deps.rs/crate/mc-sgx-capable-sys-types/0.6.0
[deps-image]: https://deps.rs/crate/mc-sgx-capable-sys-types/0.6.1/status.svg?style=flat-square
[deps-link]: https://deps.rs/crate/mc-sgx-capable-sys-types/0.6.1
8 changes: 4 additions & 4 deletions capable/types/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mc-sgx-capable-types"
version = "0.6.0"
version = "0.6.1"
authors = ["MobileCoin"]
categories = ["api-bindings", "hardware-support"]
description = "Rust wrapper for SGX capabilities types."
Expand All @@ -20,9 +20,9 @@ serde = [

[dependencies]
displaydoc = { version = "0.2.3", default-features = false }
mc-sgx-capable-sys-types = { path = "../sys/types", version = "=0.6.0" }
mc-sgx-core-types = { path = "../../core/types", version = "=0.6.0" }
mc-sgx-util = { path = "../../util", version = "=0.6.0" }
mc-sgx-capable-sys-types = { path = "../sys/types", version = "=0.6.1" }
mc-sgx-core-types = { path = "../../core/types", version = "=0.6.1" }
mc-sgx-util = { path = "../../util", version = "=0.6.1" }
serde = { version = "1.0.152", default-features = false, features = ["derive"], optional = true }

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions capable/types/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ Rust wrappers for types used by the `libsgx_capable` library.
[crate-link]: https://crates.io/crates/mc-sgx-capable-types
[docs-image]: https://img.shields.io/docsrs/mc-sgx-capable-types?style=flat-square
[docs-link]: https://docs.rs/crate/mc-sgx-capable-types
[deps-image]: https://deps.rs/crate/mc-sgx-capable-types/0.6.0/status.svg?style=flat-square
[deps-link]: https://deps.rs/crate/mc-sgx-capable-types/0.6.0
[deps-image]: https://deps.rs/crate/mc-sgx-capable-types/0.6.1/status.svg?style=flat-square
[deps-link]: https://deps.rs/crate/mc-sgx-capable-types/0.6.1
2 changes: 1 addition & 1 deletion core/build/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mc-sgx-core-build"
version = "0.6.0"
version = "0.6.1"
authors = ["MobileCoin"]
categories = ["development-tools"]
description = "Build Helpers for SGX FFI Crates"
Expand Down
4 changes: 2 additions & 2 deletions core/sys/types/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mc-sgx-core-sys-types"
version = "0.6.0"
version = "0.6.1"
authors = ["MobileCoin"]
categories = ["external-ffi-bindings", "hardware-support", "no-std"]
description = "FFI type definitions used by SGX libraries."
Expand All @@ -17,4 +17,4 @@ doctest = false
[build-dependencies]
bindgen = "0.65.1"
cargo-emit = "0.2.1"
mc-sgx-core-build = { path = "../../build", version = "=0.6.0" }
mc-sgx-core-build = { path = "../../build", version = "=0.6.1" }
4 changes: 2 additions & 2 deletions core/sys/types/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ Provides FFI types used by various SGX libraries.
[chat-link]: https://mobilecoin.chat
[docs-image]: https://img.shields.io/docsrs/mc-sgx-core-sys-types?style=flat-square
[docs-link]: https://docs.rs/crate/mc-sgx-core-sys-types
[deps-image]: https://deps.rs/crate/mc-sgx-core-sys-types/0.6.0/status.svg?style=flat-square
[deps-link]: https://deps.rs/crate/mc-sgx-core-sys-types/0.6.0
[deps-image]: https://deps.rs/crate/mc-sgx-core-sys-types/0.6.1/status.svg?style=flat-square
[deps-link]: https://deps.rs/crate/mc-sgx-core-sys-types/0.6.1
6 changes: 3 additions & 3 deletions core/types/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mc-sgx-core-types"
version = "0.6.0"
version = "0.6.1"
authors = ["MobileCoin"]
categories = ["api-bindings", "hardware-support"]
description = "Rust wrapper for common SGX types."
Expand All @@ -19,8 +19,8 @@ alloc = []
[dependencies]
bitflags = "2.0.0"
displaydoc = { version = "0.2.3", default-features = false }
mc-sgx-core-sys-types = { path = "../sys/types", version = "=0.6.0" }
mc-sgx-util = { path = "../../util", version = "=0.6.0" }
mc-sgx-core-sys-types = { path = "../sys/types", version = "=0.6.1" }
mc-sgx-util = { path = "../../util", version = "=0.6.1" }
nom = { version = "7.1.2", default-features = false }
rand_core = { version = "0.6.4", default-features = false }
serde = { version = "1.0.152", default-features = false, features = ["derive"], optional = true }
Expand Down
4 changes: 2 additions & 2 deletions core/types/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ Idiomatic rust wrappers for common SGX types.
[crate-link]: https://crates.io/crates/mc-sgx-core-types
[docs-image]: https://img.shields.io/docsrs/mc-sgx-core-types?style=flat-square
[docs-link]: https://docs.rs/crate/mc-sgx-core-types
[deps-image]: https://deps.rs/crate/mc-sgx-core-types/0.6.0/status.svg?style=flat-square
[deps-link]: https://deps.rs/crate/mc-sgx-core-types/0.6.0
[deps-image]: https://deps.rs/crate/mc-sgx-core-types/0.6.1/status.svg?style=flat-square
[deps-link]: https://deps.rs/crate/mc-sgx-core-types/0.6.1
14 changes: 7 additions & 7 deletions dcap/ql/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mc-sgx-dcap-ql"
version = "0.6.0"
version = "0.6.1"
edition = "2021"
authors = ["MobileCoin"]
rust-version = "1.62.1"
Expand All @@ -14,12 +14,12 @@ keywords = ["sgx"]

[dependencies]
displaydoc = { version = "0.2.3", default-features = false }
mc-sgx-core-sys-types = { path = "../../core/sys/types", version = "=0.6.0" }
mc-sgx-core-types = { path = "../../core/types", version = "=0.6.0" }
mc-sgx-dcap-ql-sys = { path = "sys", version = "=0.6.0" }
mc-sgx-dcap-ql-types = { path = "types", version = "=0.6.0" }
mc-sgx-dcap-types = { path = "../types", version = "=0.6.0", features = ["alloc"] }
mc-sgx-util = { path = "../../util", version = "=0.6.0" }
mc-sgx-core-sys-types = { path = "../../core/sys/types", version = "=0.6.1" }
mc-sgx-core-types = { path = "../../core/types", version = "=0.6.1" }
mc-sgx-dcap-ql-sys = { path = "sys", version = "=0.6.1" }
mc-sgx-dcap-ql-types = { path = "types", version = "=0.6.1" }
mc-sgx-dcap-types = { path = "../types", version = "=0.6.1", features = ["alloc"] }
mc-sgx-util = { path = "../../util", version = "=0.6.1" }
once_cell = "1.17.0"

[features]
Expand Down
4 changes: 2 additions & 2 deletions dcap/ql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ Idiomatic rust for the `sgx_dcap_ql` library.
[crate-link]: https://crates.io/crates/mc-sgx-dcap-ql
[docs-image]: https://img.shields.io/docsrs/mc-sgx-dcap-ql?style=flat-square
[docs-link]: https://docs.rs/crate/mc-sgx-dcap-ql
[deps-image]: https://deps.rs/crate/mc-sgx-dcap-ql/0.6.0/status.svg?style=flat-square
[deps-link]: https://deps.rs/crate/mc-sgx-dcap-ql/0.6.0
[deps-image]: https://deps.rs/crate/mc-sgx-dcap-ql/0.6.1/status.svg?style=flat-square
[deps-link]: https://deps.rs/crate/mc-sgx-dcap-ql/0.6.1
10 changes: 5 additions & 5 deletions dcap/ql/sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mc-sgx-dcap-ql-sys"
version = "0.6.0"
version = "0.6.1"
authors = ["MobileCoin"]
categories = ["external-ffi-bindings", "hardware-support"]
description = "FFI linkage for the `sgx_dcap_ql` library."
Expand All @@ -16,11 +16,11 @@ rust-version = "1.62.1"
doctest = false

[dependencies]
mc-sgx-core-sys-types = { path = "../../../core/sys/types", version = "=0.6.0" }
mc-sgx-dcap-ql-sys-types = { path = "types", version = "=0.6.0" }
mc-sgx-dcap-sys-types = { path = "../../sys/types", version = "=0.6.0" }
mc-sgx-core-sys-types = { path = "../../../core/sys/types", version = "=0.6.1" }
mc-sgx-dcap-ql-sys-types = { path = "types", version = "=0.6.1" }
mc-sgx-dcap-sys-types = { path = "../../sys/types", version = "=0.6.1" }

[build-dependencies]
bindgen = "0.65.1"
cargo-emit = "0.2.1"
mc-sgx-core-build = { path = "../../../core/build", version = "=0.6.0" }
mc-sgx-core-build = { path = "../../../core/build", version = "=0.6.1" }
4 changes: 2 additions & 2 deletions dcap/ql/sys/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ FFI linkage for the `sgx_dcap_ql` library.
[crate-link]: https://crates.io/crates/mc-sgx-dcap-ql-sys
[docs-image]: https://img.shields.io/docsrs/mc-sgx-dcap-ql-sys?style=flat-square
[docs-link]: https://docs.rs/crate/mc-sgx-dcap-ql-sys
[deps-image]: https://deps.rs/crate/mc-sgx-dcap-ql-sys/0.6.0/status.svg?style=flat-square
[deps-link]: https://deps.rs/crate/mc-sgx-dcap-ql-sys/0.6.0
[deps-image]: https://deps.rs/crate/mc-sgx-dcap-ql-sys/0.6.1/status.svg?style=flat-square
[deps-link]: https://deps.rs/crate/mc-sgx-dcap-ql-sys/0.6.1
4 changes: 2 additions & 2 deletions dcap/ql/sys/types/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mc-sgx-dcap-ql-sys-types"
version = "0.6.0"
version = "0.6.1"
authors = ["MobileCoin"]
categories = ["external-ffi-bindings", "hardware-support", "no-std"]
description = "FFI type definitions for the `sgx_dcap_ql` library."
Expand All @@ -17,4 +17,4 @@ doctest = false
[build-dependencies]
bindgen = "0.65.1"
cargo-emit = "0.2.1"
mc-sgx-core-build = { path = "../../../../core/build", version = "=0.6.0" }
mc-sgx-core-build = { path = "../../../../core/build", version = "=0.6.1" }
4 changes: 2 additions & 2 deletions dcap/ql/sys/types/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ FFI type definitions used by the `sgx_dcap_ql` library.
[chat-link]: https://mobilecoin.chat
[docs-image]: https://img.shields.io/docsrs/mc-sgx-dcap-ql-sys-types?style=flat-square
[docs-link]: https://docs.rs/crate/mc-sgx-dcap-ql-sys-types
[deps-image]: https://deps.rs/crate/mc-sgx-dcap-ql-sys-types/0.6.0/status.svg?style=flat-square
[deps-link]: https://deps.rs/crate/mc-sgx-dcap-ql-sys-types/0.6.0
[deps-image]: https://deps.rs/crate/mc-sgx-dcap-ql-sys-types/0.6.1/status.svg?style=flat-square
[deps-link]: https://deps.rs/crate/mc-sgx-dcap-ql-sys-types/0.6.1
6 changes: 3 additions & 3 deletions dcap/ql/types/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mc-sgx-dcap-ql-types"
version = "0.6.0"
version = "0.6.1"
authors = ["MobileCoin"]
categories = ["api-bindings", "hardware-support"]
description = "Rust wrapper for SGX DCAP QuoteLibrary types."
Expand All @@ -12,8 +12,8 @@ repository = "https://github.com/mobilecoinfoundation/sgx"
rust-version = "1.62.1"

[dependencies]
mc-sgx-core-types = { path = "../../../core/types", version = "=0.6.0" }
mc-sgx-dcap-ql-sys-types = { path = "../sys/types", version = "=0.6.0" }
mc-sgx-core-types = { path = "../../../core/types", version = "=0.6.1" }
mc-sgx-dcap-ql-sys-types = { path = "../sys/types", version = "=0.6.1" }

[dev-dependencies]
yare = "1.0.2"
Loading

0 comments on commit 29a2b99

Please sign in to comment.