Skip to content

Commit 07e676b

Browse files
ivilaDemesneGH
authored andcommitted
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 <ivila@apache.org> Reviewed-by: Yuan Zhuang <yuanz@apache.org>
1 parent 8d42047 commit 07e676b

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

optee-teec/macros/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,10 @@ proc-macro = true
3030
[dependencies]
3131
quote = "0.6"
3232
syn = { version = "0.15", features = ["full"] }
33+
34+
# The newer versions of these crates require rustc 1.81, while our custom
35+
# patched STD version is 1.80, causing compatibility issues. To resolve this,
36+
# we have to set the crates to an exact compatible version.
37+
# Remove them after we upgrade our patched STD rustc.
38+
litemap = "=0.7.4"
39+
zerofrom = "=0.1.5"

optee-utee-build/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,10 @@ quote = "1.0.37"
3030
proc-macro2 = "1.0.92"
3131
syn = "2.0.90"
3232
prettyplease = "0.2.25"
33+
34+
# The newer versions of these crates require rustc 1.81, while our custom
35+
# patched STD version is 1.80, causing compatibility issues. To resolve this,
36+
# we have to set the crates to an exact compatible version.
37+
# Remove them after we upgrade our patched STD rustc.
38+
litemap = "=0.7.4"
39+
zerofrom = "=0.1.5"

optee-utee/macros/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,10 @@ proc-macro = true
3030
[dependencies]
3131
quote = "0.6"
3232
syn = { version = "0.15", features = ["full"] }
33+
34+
# The newer versions of these crates require rustc 1.81, while our custom
35+
# patched STD version is 1.80, causing compatibility issues. To resolve this,
36+
# we have to set the crates to an exact compatible version.
37+
# Remove them after we upgrade our patched STD rustc.
38+
litemap = "=0.7.4"
39+
zerofrom = "=0.1.5"

0 commit comments

Comments
 (0)