You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@teaclave.apache.org by yu...@apache.org on 2025/02/27 10:12:51 UTC

(incubator-teaclave-trustzone-sdk) 02/02: compatibility: Set certain crates to specific versions

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

commit d5349ad7f728431b5137a6c089633071b92ce5e7
Author: ivila <39...@qq.com>
AuthorDate: Thu Feb 27 10:34:12 2025 +0800

    compatibility: Set certain crates to specific versions
    
    Set these crates to specific versions for compatibility with rustc 1.80:
    - litemap@0.7.4
    - zerofrom@0.1.5
    
    Signed-off-by: Zehui Chen <iv...@apache.org>
    Reviewed-by: Yuan Zhuang <yu...@apache.org>
---
 optee-teec/macros/Cargo.toml | 7 +++++++
 optee-utee-build/Cargo.toml  | 7 +++++++
 optee-utee/macros/Cargo.toml | 7 +++++++
 3 files changed, 21 insertions(+)

diff --git a/optee-teec/macros/Cargo.toml b/optee-teec/macros/Cargo.toml
index 02e1e3d..c1cbf1d 100644
--- a/optee-teec/macros/Cargo.toml
+++ b/optee-teec/macros/Cargo.toml
@@ -30,3 +30,10 @@ proc-macro = true
 [dependencies]
 quote = "0.6"
 syn = { version = "0.15", features = ["full"] }
+
+# The newer versions of these crates require rustc 1.81, while our custom
+# patched STD version is 1.80, causing compatibility issues. To resolve this,
+# we have to set the crates to an exact compatible version.
+# Remove them after we upgrade our patched STD rustc.
+litemap = "=0.7.4"
+zerofrom = "=0.1.5"
diff --git a/optee-utee-build/Cargo.toml b/optee-utee-build/Cargo.toml
index 8c202c6..9a1a541 100644
--- a/optee-utee-build/Cargo.toml
+++ b/optee-utee-build/Cargo.toml
@@ -30,3 +30,10 @@ quote = "1.0.37"
 proc-macro2 = "1.0.92"
 syn = "2.0.90"
 prettyplease = "0.2.25"
+
+# The newer versions of these crates require rustc 1.81, while our custom
+# patched STD version is 1.80, causing compatibility issues. To resolve this,
+# we have to set the crates to an exact compatible version.
+# Remove them after we upgrade our patched STD rustc.
+litemap = "=0.7.4"
+zerofrom = "=0.1.5"
diff --git a/optee-utee/macros/Cargo.toml b/optee-utee/macros/Cargo.toml
index c143b1a..43c6a29 100644
--- a/optee-utee/macros/Cargo.toml
+++ b/optee-utee/macros/Cargo.toml
@@ -30,3 +30,10 @@ proc-macro = true
 [dependencies]
 quote = "0.6"
 syn = { version = "0.15", features = ["full"] }
+
+# The newer versions of these crates require rustc 1.81, while our custom
+# patched STD version is 1.80, causing compatibility issues. To resolve this,
+# we have to set the crates to an exact compatible version.
+# Remove them after we upgrade our patched STD rustc.
+litemap = "=0.7.4"
+zerofrom = "=0.1.5"


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