This is an automated email from the ASF dual-hosted git repository.

DemesneGH pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/teaclave-trustzone-sdk.git

commit c61f8723fa656da594d1a93ce6cfff9ddba16f84
Author: ivila <[email protected]>
AuthorDate: Fri May 22 14:44:30 2026 +0800

    optee-teec-macros: remove cyclic dev-dependency and fix doc examples
    
    Comment out optee-teec dev-dependency to avoid cyclic dependency during
    crate publishing, and change doc code blocks from no_run to ignore since
    the examples can no longer be compiled without the dev-dependency.
---
 crates/optee-teec-macros/Cargo.toml |  6 ++++--
 crates/optee-teec-macros/src/lib.rs | 10 ++++++++--
 2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/crates/optee-teec-macros/Cargo.toml 
b/crates/optee-teec-macros/Cargo.toml
index 91a42d9..1f33b7f 100644
--- a/crates/optee-teec-macros/Cargo.toml
+++ b/crates/optee-teec-macros/Cargo.toml
@@ -32,5 +32,7 @@ quote.workspace = true
 syn.workspace = true
 optee-teec-build.workspace = true
 
-[dev-dependencies]
-optee-teec.workspace = true
+# Avoid adding `optee-teec` as a dev-dependency, since it would create a cyclic
+# dependency during crate publishing.
+# [dev-dependencies]
+# optee-teec.workspace = true
diff --git a/crates/optee-teec-macros/src/lib.rs 
b/crates/optee-teec-macros/src/lib.rs
index 02a62ae..6ccf6d8 100644
--- a/crates/optee-teec-macros/src/lib.rs
+++ b/crates/optee-teec-macros/src/lib.rs
@@ -24,7 +24,10 @@ use syn::spanned::Spanned;
 use syn::{FnArg, parse_macro_input};
 
 /// Attribute to derive the injected init function from an existing function
-/// ``` no_run
+/// ``` ignore
+/// # /// NOTE: This example uses `optee_teec`, but including it as a
+/// # /// dev-dependency would introduce a cyclic dependency when publishing 
the
+/// # /// crate. Therefore, the example is intentionally marked as `ignore`.
 /// use optee_teec_macros::plugin_init;
 ///
 /// #[plugin_init]
@@ -115,7 +118,10 @@ fn check_invoke_fn_params(item_fn: &syn::ItemFn) -> bool {
 }
 
 /// Attribute to derive the injected invoke function from an existing function
-/// ``` no_run
+/// ``` ignore
+/// # /// NOTE: This example uses `optee_teec`, but including it as a
+/// # /// dev-dependency would introduce a cyclic dependency when publishing 
the
+/// # /// crate. Therefore, the example is intentionally marked as `ignore`.
 /// use optee_teec_macros::plugin_invoke;
 ///
 /// #[plugin_invoke]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to