This is an automated email from the ASF dual-hosted git repository.
yuanz pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/incubator-teaclave-trustzone-sdk.git
The following commit(s) were added to refs/heads/main by this push:
new 29972a9 Doc: update rust information of STD
29972a9 is described below
commit 29972a959f50cd82ab5283ce0d6fa4f98b71da67
Author: ivila <[email protected]>
AuthorDate: Mon Jan 20 11:06:38 2025 +0800
Doc: update rust information of STD
Signed-off-by: ivila <[email protected]>
Reviewed-by: Sumit Garg <[email protected]>
Reviewed-by: Yuan Zhuang <[email protected]>
---
README.md | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/README.md b/README.md
index 8a0b00c..7a13199 100644
--- a/README.md
+++ b/README.md
@@ -14,7 +14,8 @@ TrustZone applications with Rust's standard library (std) and
many third-party
libraries (i.e., crates). Teaclave TrustZone SDK is a sub-project of [Apache
Teaclave (incubating)](https://teaclave.apache.org/).
-Teaclave TrustZone SDK provides two development modes for Rust TAs: `no-std`
and `std`.
+Teaclave TrustZone SDK provides two development modes for Rust TAs: `no-std`
+and `std`.
We recommend using `no-std` by default. For a detailed comparison, please refer
to [Comparison](#comparison).
@@ -60,18 +61,20 @@ branch (`main`), please refer to the
- Substantial reduction in binary size.
- **Cons**:
- - Limited support for third-party crates. In the no-std mode, Trusted
Applications
- (TAs) are unable to utilize crates dependent on the standard library (std).
+ - Limited support for third-party crates. In the no-std mode, Trusted
+ Applications (TAs) are unable to utilize crates dependent on the standard
+ library (std).
#### `std`
- **Pros**:
- - Enables the utilization of more third-party crates, including those
requiring
- `std`, such as `serde_json` and `rustls`, which are essential for
functionality.
+ - Enables the utilization of more third-party crates, including those
+ requiring `std`, such as `rustls`, which are essential for functionality.
- **Cons**:
- - Manual porting of `std` with infrequent updates. Currently using `std`
version
- `1.56.1` and `Rust` version `nightly-2021-09-20`. (Planned to update)
+ - Manual porting of `std` with infrequent updates. Currently using `std`
+ version `1.80.0` and `Rust` version `nightly-2024-05-14`, which might not
+ meet the MSRV requirements of some crates.
### Supported Examples
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]