You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@teaclave.apache.org by "m4sterchain (via GitHub)" <gi...@apache.org> on 2025/07/09 09:36:42 UTC

[PR] build-env: introduce env for building std ta. [incubator-teaclave-trustzone-sdk]

m4sterchain opened a new pull request, #207:
URL: https://github.com/apache/incubator-teaclave-trustzone-sdk/pull/207

   # Add Standard Library Development Support
   
   Introduces comprehensive support for Rust standard library (std) development alongside the existing no-std environment.
   
   ## Key Features
   - **Flexible configuration management** - Dynamic switching between std/no-std modes and architectures via `switch_config`
   - **Std-enabled Docker environment** - New development image with Rust std support
   - **Mixed development workflow** - Support for different host and TA architectures in same project
   - **Comprehensive documentation** - New guide covering std-specific differences and capabilities
   
   ## Changes
   - Add std development documentation guide (`docs/emulate-and-dev-in-docker-std.md`)
   - Implement `switch_config` tool for runtime configuration management
   - Add std-enabled Docker environment with setup scripts
   - Update configuration system to support std/no-std switching
   - Enhance hello-world example to demonstrate std vs no-std builds
   
   ## Benefits
   - Enables use of std-dependent crates (collections, networking, serialization)
   - Streamlines development workflow with unified environment
   - Maintains backward compatibility with existing no-std development
   - Provides clear migration path between development modes
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@teaclave.apache.org
For additional commands, e-mail: dev-help@teaclave.apache.org


Re: [PR] build-env: introduce env for building std ta. [incubator-teaclave-trustzone-sdk]

Posted by "m4sterchain (via GitHub)" <gi...@apache.org>.
m4sterchain merged PR #207:
URL: https://github.com/apache/incubator-teaclave-trustzone-sdk/pull/207


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@teaclave.apache.org
For additional commands, e-mail: dev-help@teaclave.apache.org


Re: [PR] build-env: introduce env for building std ta. [incubator-teaclave-trustzone-sdk]

Posted by "m4sterchain (via GitHub)" <gi...@apache.org>.
m4sterchain commented on code in PR #207:
URL: https://github.com/apache/incubator-teaclave-trustzone-sdk/pull/207#discussion_r2194896788


##########
docs/emulate-and-dev-in-docker-std.md:
##########
@@ -0,0 +1,120 @@
+---
+permalink: /trustzone-sdk-docs/dev-and-emulate-in-docker-std.md
+---
+
+# šŸš€ Standard Library Development with Docker

Review Comment:
   Will update the doc.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@teaclave.apache.org
For additional commands, e-mail: dev-help@teaclave.apache.org


Re: [PR] build-env: introduce env for building std ta. [incubator-teaclave-trustzone-sdk]

Posted by "DemesneGH (via GitHub)" <gi...@apache.org>.
DemesneGH commented on code in PR #207:
URL: https://github.com/apache/incubator-teaclave-trustzone-sdk/pull/207#discussion_r2194802231


##########
docs/emulate-and-dev-in-docker-std.md:
##########
@@ -0,0 +1,120 @@
+---
+permalink: /trustzone-sdk-docs/dev-and-emulate-in-docker-std.md
+---
+
+# šŸš€ Standard Library Development with Docker

Review Comment:
   The title is a bit confusing to me. I’d prefer something like "Developing std TAs with Docker" or another you think fits better.



##########
docs/emulate-and-dev-in-docker-std.md:
##########
@@ -0,0 +1,120 @@
+---
+permalink: /trustzone-sdk-docs/dev-and-emulate-in-docker-std.md
+---
+
+# šŸš€ Standard Library Development with Docker
+
+This guide covers the **key differences** when developing with **Rust standard library (std) support** 
+compared to the regular no-std environment documented in [emulate-and-dev-in-docker.md](emulate-and-dev-in-docker.md).
+
+> šŸ“– **Prerequisites**: Read the [original Docker development guide](emulate-and-dev-in-docker.md) 
+> first. This document focuses only on std-specific differences and capabilities.
+
+## What's Different with Std Development
+
+The std-enabled environment adds:
+- **Flexible configuration management** - Switch between std/no-std modes and architectures dynamically
+- **Rust standard library tailored for OP-TEE** - Collections, networking, serialization capabilities
+- **Mixed development support** - Combine different host and TA architectures in the same project

Review Comment:
   Is **Mixed development support** specific to std? I think it's shared design.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@teaclave.apache.org
For additional commands, e-mail: dev-help@teaclave.apache.org


Re: [PR] build-env: introduce env for building std ta. [incubator-teaclave-trustzone-sdk]

Posted by "m4sterchain (via GitHub)" <gi...@apache.org>.
m4sterchain commented on code in PR #207:
URL: https://github.com/apache/incubator-teaclave-trustzone-sdk/pull/207#discussion_r2194906360


##########
docs/emulate-and-dev-in-docker-std.md:
##########
@@ -0,0 +1,120 @@
+---
+permalink: /trustzone-sdk-docs/dev-and-emulate-in-docker-std.md
+---
+
+# šŸš€ Standard Library Development with Docker
+
+This guide covers the **key differences** when developing with **Rust standard library (std) support** 
+compared to the regular no-std environment documented in [emulate-and-dev-in-docker.md](emulate-and-dev-in-docker.md).
+
+> šŸ“– **Prerequisites**: Read the [original Docker development guide](emulate-and-dev-in-docker.md) 
+> first. This document focuses only on std-specific differences and capabilities.
+
+## What's Different with Std Development
+
+The std-enabled environment adds:
+- **Flexible configuration management** - Switch between std/no-std modes and architectures dynamically
+- **Rust standard library tailored for OP-TEE** - Collections, networking, serialization capabilities
+- **Mixed development support** - Combine different host and TA architectures in the same project

Review Comment:
   Both. You can also update the original `no-std` doc,  to illustrate switching between no-std archs using the new config system.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@teaclave.apache.org
For additional commands, e-mail: dev-help@teaclave.apache.org