Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,16 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v7

- name: Cache Cargo downloads
uses: actions/cache@v6
with:
path: |
~/.cargo/registry/cache
~/.cargo/registry/index
key: cargo-v1-systest-${{ hashFiles('rust-toolchain.toml') }}
restore-keys: |
cargo-v1-systest-

- name: Prepare Environment
run: |
# Setup Rust and toolchains
Expand Down Expand Up @@ -97,6 +107,15 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Cache Cargo downloads
uses: actions/cache@v6
with:
path: |
/opt/teaclave/cargo/registry/cache
/opt/teaclave/cargo/registry/index
key: cargo-v1-dev-docker-${{ matrix.std }}-${{ hashFiles('rust-toolchain.toml') }}
restore-keys: |
cargo-v1-dev-docker-${{ matrix.std }}-
- name: Setup environment
run: /entrypoint.sh true
- name: Build examples
Expand All @@ -115,6 +134,23 @@ jobs:
fi


unused-dependencies:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Install cargo-machete
uses: taiki-e/install-action@v2
with:
tool: cargo-machete@0.9.2
- name: Check for unused dependencies
run: |
for dir in crates examples/ta examples/ca tools projects/web3/eth_wallet; do
echo "::group::cargo machete ($dir)"
(cd "$dir" && cargo machete)
echo "::endgroup::"
done

license:
runs-on: ubuntu-latest
steps:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/reuse_host_build_and_qemu_run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Cache Cargo downloads
uses: actions/cache@v6
with:
path: |
~/.cargo/registry/cache
~/.cargo/registry/index
key: cargo-v1-examples-${{ inputs.std }}-${{ hashFiles('rust-toolchain.toml') }}
restore-keys: |
cargo-v1-examples-${{ inputs.std }}-
# Setup Rust and toolchains
- name: Setup
run: |
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/reuse_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Cache Cargo downloads
uses: actions/cache@v6
with:
path: |
~/.cargo/registry/cache
~/.cargo/registry/index
key: cargo-v1-build-utee-teec-${{ hashFiles('rust-toolchain.toml') }}
restore-keys: |
cargo-v1-build-utee-teec-
- name: Building
run: |
# Setup Rust and toolchains
Expand Down
59 changes: 0 additions & 59 deletions examples/ca/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions examples/ca/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,12 @@ members = ["*-rs", "*-rs-plugin"]
proto = { path = "../ta/proto" }
optee-teec = { path = "../../crates/optee-teec" }
optee-teec-build = { path = "../../crates/optee-teec-build" }
libc = "0.2.191"
r2d2 = "0.8.10"
clap = "4.6.7"
anyhow = "1.0.104"
hex = "0.4.3"
mobc = "0.9.0"
tokio = "1.54.1"
strum = "0.28.0"
url = "2.5.8"
serde_json = "1.0.154"
rand = "0.10.3"
Expand All @@ -40,7 +38,6 @@ image = "0.25.10"
tiny_http = "0.12.0"
ureq = "3.5.0"
flate2 = "1.1.10"
uuid = "1.29.0"

[profile.release]
lto = true
Expand Down
1 change: 0 additions & 1 deletion examples/ca/acipher-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,5 @@ description = "An example of Rust OP-TEE TrustZone SDK."
edition = "2018"

[dependencies]
libc = { workspace = true }
proto = { workspace = true }
optee-teec = { workspace = true }
1 change: 0 additions & 1 deletion examples/ca/aes-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,5 @@ description = "An example of Rust OP-TEE TrustZone SDK."
edition = "2018"

[dependencies]
libc = { workspace = true }
proto = { workspace = true }
optee-teec = { workspace = true }
1 change: 0 additions & 1 deletion examples/ca/authentication-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,5 @@ description = "An example of Rust OP-TEE TrustZone SDK."
edition = "2018"

[dependencies]
libc = { workspace = true }
proto = { workspace = true }
optee-teec = { workspace = true }
1 change: 0 additions & 1 deletion examples/ca/big_int-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,5 @@ description = "An example of Rust OP-TEE TrustZone SDK."
edition = "2018"

[dependencies]
libc = { workspace = true }
proto = { workspace = true }
optee-teec = { workspace = true }
1 change: 0 additions & 1 deletion examples/ca/client_pool-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,3 @@ anyhow = { workspace = true }
hex = { workspace = true }
mobc = { workspace = true }
tokio = { workspace = true, features = ["rt-multi-thread", "sync"] }
strum = { workspace = true, features = ["derive"] }
1 change: 0 additions & 1 deletion examples/ca/diffie_hellman-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,5 @@ description = "An example of Rust OP-TEE TrustZone SDK."
edition = "2018"

[dependencies]
libc = { workspace = true }
proto = { workspace = true }
optee-teec = { workspace = true }
1 change: 0 additions & 1 deletion examples/ca/digest-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,5 @@ description = "An example of Rust OP-TEE TrustZone SDK."
edition = "2018"

[dependencies]
libc = { workspace = true }
proto = { workspace = true }
optee-teec = { workspace = true }
Loading
Loading