Fix examples for renamed leaf endpoint surface

Update the remote shell examples to use unshell::leaves and the leaf_endpoint feature-gated endpoint module, and restore the local macro aliasing needed after removing the direct unshell dependency from unshell-leaves.
This commit is contained in:
Michael Mikovsky
2026-04-26 12:57:56 -06:00
parent d4100d0604
commit 4f8835bd25
10 changed files with 87 additions and 110 deletions
+9 -3
View File
@@ -44,6 +44,11 @@ description = "Pure no_std implementation of the UnShell Protocol"
default = []
log = []
log_debug = ["log", "dep:chrono"]
# Leaf features
leaf_endpoint = ["unshell-leaves/leaf_endpoint"]
leaf_tui = ["unshell-leaves/leaf_tui"]
# obfuscate_aes = ["ush-obfuscate/obfuscate_aes"]
# obfuscate_ref = ["ush-obfuscate/obfuscate_ref"]
@@ -55,9 +60,7 @@ chrono = { workspace = true, optional = true }
static_init = { workspace = true }
unshell-macros = { path = "./unshell-macros" }
unshell-protocol = { workspace = true }
[dev-dependencies]
unshell-leaves = { workspace = true, features = ["endpoint"] }
unshell-leaves = { workspace = true }
[[example]]
name = "leaf_derive"
@@ -66,14 +69,17 @@ path = "examples/protocol/leaf_derive.rs"
[[example]]
name = "remote_shell_endpoint"
path = "examples/protocol/remote_shell_endpoint.rs"
required-features = ["leaf_endpoint"]
[[example]]
name = "remote_shell_receive"
path = "examples/protocol/remote_shell_receive.rs"
required-features = ["leaf_endpoint"]
[[example]]
name = "remote_shell_single_endpoint"
path = "examples/protocol/remote_shell_single_endpoint.rs"
required-features = ["leaf_endpoint"]
[[example]]
name = "bench"