Skip to content

trustzone: add rust 1.99.0 ported std and libc for std TAs - #14

Merged
ivila merged 1 commit into
apache:mainfrom
ivila:main
Aug 6, 2026
Merged

trustzone: add rust 1.99.0 ported std and libc for std TAs#14
ivila merged 1 commit into
apache:mainfrom
ivila:main

Conversation

@ivila

@ivila ivila commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

This PR adds the OP-TEE adaptation patches for Rust 1.99.0 and libc 0.2.189, enabling Rust standard library support for OP-TEE Trusted Applications.

Compared with the previous port:

  • library/std/src/thread/lifecycle.rs no longer needs to be patched. The AArch64 OP-TEE target specification has been fixed to set singlethread: true, allowing the standard library to
    select its single-threaded implementation. As a result, the multi-threaded lifecycle code is not compiled for this target.
  • The C function declarations in libc/src/optee/mod.rs have been reordered to follow the order of the corresponding OP-TEE header files. This is an organizational change and does not
    alter their signatures or behavior.
  • library/std/src/sys/alloc/optee.rs has been adapted to the latest Rust standard library allocator interface. Instead of implementing GlobalAlloc for System, the OP-TEE backend now
    provides the allocator functions expected by sys::alloc and uses realloc_fallback when the requested alignment cannot be handled directly by libc::realloc.

Signed-off-by: ivila <ivila@apache.org>
@ivila
ivila merged commit febd8d8 into apache:main Aug 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant