Skip to content

Conversation

@DemesneGH
Copy link
Contributor

Std TAs depend on a custom port of Rust toolchain with OP-TEE targets. Currently, we manually pin the Rust version and port the Rust std accordingly.

However, third-party crates are frequently updated and may require a newer Rust version, which can break builds for std-based TAs (#188). Additionally, building reliably is also important for release stability.

To address this, this PR includes Cargo.lock file to lock crate versions for std TAs.


BTW upstreaming the optee target to Rust might resolve this issue. However, the maintenance effort are still unclear for us and needs further evaluation. For now, to prepare for the upcoming release, I'd like to propose this PR as workaround.

@ivila
Copy link
Contributor

ivila commented Jun 10, 2025

It reminds me of:
https://github.com/apache/incubator-teaclave-trustzone-sdk/blob/main/optee-teec/macros/Cargo.toml#L34-L39

Adding Cargo.lock is just a temporary workaround, ultimately, we'll need to update our version of rustc sooner or later.

@DemesneGH
Copy link
Contributor Author

It reminds me of: https://github.com/apache/incubator-teaclave-trustzone-sdk/blob/main/optee-teec/macros/Cargo.toml#L34-L39

Adding Cargo.lock is just a temporary workaround, ultimately, we'll need to update our version of rustc sooner or later.

Thanks for pointing this out. I've added this to my TODO list.

@DemesneGH
Copy link
Contributor Author

@ivila Could you help to give a review or ack tag for merge? thanks!

@ivila
Copy link
Contributor

ivila commented Jun 11, 2025

@ivila Could you help to give a review or ack tag for merge? thanks!

Sure😀
Acked-by: Zehui Chen <ivila@apache.org>

Std TAs depend on a custom port of Rust toolchain with OP-TEE
targets. However, third-party crates are frequently updated and
may require a newer Rust version, which can break builds for
std-based TAs.

Add Cargo.lock file to lock crate versions as workaround.

Signed-off-by: Yuan Zhuang <yuanz@apache.org>
Acked-by: Zehui Chen <ivila@apache.org>
@DemesneGH DemesneGH merged commit 1e49335 into apache:main Jun 11, 2025
27 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants