Skip to content

Commit

Permalink
Fix tcb feature in mc-sgx-dcap-types missing dependency
Browse files Browse the repository at this point in the history
Previously the `tcb` feature in `mc-sgx-dcap-types` was not specifying
the need for `serde/alloc`. `serde/alloc` is now a dependency of the
`tcb` feature.
  • Loading branch information
nick-mobilecoin committed Aug 8, 2023
1 parent 17486ff commit 0d29df5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,30 @@ jobs:
- uses: r7kamura/rust-problem-matchers@v1
- run: cargo +${{ matrix.rust }} build --release --locked

build-all-features:
runs-on: ubuntu-22.04
needs:
- "lint"
strategy:
matrix:
rust:
- stable
- beta
- nightly-2022-12-13
steps:
- uses: actions/checkout@v3
- uses: mobilecoinfoundation/actions/sgxsdk@main
with:
version: 2.19.100.3
- uses: mobilecoinfoundation/actions/dcap-libs@main
with:
version: 1.16.100.2-jammy1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- uses: r7kamura/rust-problem-matchers@v1
- run: cargo +${{ matrix.rust }} build --release --locked --all-features

test:
runs-on: ubuntu-22.04
needs:
Expand Down
2 changes: 1 addition & 1 deletion dcap/types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ rust-version = "1.62.1"
[features]
default = []
alloc = ["dep:x509-cert"]
tcb = ["alloc", "dep:x509-cert", "dep:const-oid", "dep:hex"]
tcb = ["alloc", "dep:x509-cert", "dep:const-oid", "dep:hex", "serde/alloc"]

[dependencies]
const-oid = { version = "0.9.2", default-features = false, optional = true }
Expand Down

0 comments on commit 0d29df5

Please sign in to comment.