From 415c05bb7cc32732c2a0ba7f2d61a4a0a4d3c95e Mon Sep 17 00:00:00 2001 From: eclipse-zenoh-bot Date: Wed, 4 Sep 2024 00:12:01 +0000 Subject: [PATCH] build: Sync Cargo lockfile with Zenoh's --- Cargo.lock | 54 ++++++++++++++++++++--------------------- include/zenoh_commons.h | 6 +++++ include/zenoh_macros.h | 26 ++++++++++---------- 3 files changed, 46 insertions(+), 40 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ed43560a5..5c9fbef0e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3511,7 +3511,7 @@ dependencies = [ [[package]] name = "zenoh" version = "1.0.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#983908b35b2a5bc8830b8eccec8025e62d69dc7f" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#0a911f3a6015f613e846a5ee242e9a61b8675c96" dependencies = [ "ahash", "async-trait", @@ -3569,7 +3569,7 @@ dependencies = [ [[package]] name = "zenoh-buffers" version = "1.0.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#983908b35b2a5bc8830b8eccec8025e62d69dc7f" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#0a911f3a6015f613e846a5ee242e9a61b8675c96" dependencies = [ "zenoh-collections", ] @@ -3607,7 +3607,7 @@ dependencies = [ [[package]] name = "zenoh-codec" version = "1.0.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#983908b35b2a5bc8830b8eccec8025e62d69dc7f" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#0a911f3a6015f613e846a5ee242e9a61b8675c96" dependencies = [ "serde", "tracing", @@ -3620,12 +3620,12 @@ dependencies = [ [[package]] name = "zenoh-collections" version = "1.0.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#983908b35b2a5bc8830b8eccec8025e62d69dc7f" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#0a911f3a6015f613e846a5ee242e9a61b8675c96" [[package]] name = "zenoh-config" version = "1.0.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#983908b35b2a5bc8830b8eccec8025e62d69dc7f" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#0a911f3a6015f613e846a5ee242e9a61b8675c96" dependencies = [ "flume", "json5", @@ -3647,7 +3647,7 @@ dependencies = [ [[package]] name = "zenoh-core" version = "1.0.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#983908b35b2a5bc8830b8eccec8025e62d69dc7f" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#0a911f3a6015f613e846a5ee242e9a61b8675c96" dependencies = [ "async-global-executor", "lazy_static", @@ -3659,7 +3659,7 @@ dependencies = [ [[package]] name = "zenoh-crypto" version = "1.0.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#983908b35b2a5bc8830b8eccec8025e62d69dc7f" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#0a911f3a6015f613e846a5ee242e9a61b8675c96" dependencies = [ "aes", "hmac", @@ -3672,7 +3672,7 @@ dependencies = [ [[package]] name = "zenoh-ext" version = "1.0.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#983908b35b2a5bc8830b8eccec8025e62d69dc7f" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#0a911f3a6015f613e846a5ee242e9a61b8675c96" dependencies = [ "bincode", "flume", @@ -3691,7 +3691,7 @@ dependencies = [ [[package]] name = "zenoh-keyexpr" version = "1.0.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#983908b35b2a5bc8830b8eccec8025e62d69dc7f" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#0a911f3a6015f613e846a5ee242e9a61b8675c96" dependencies = [ "hashbrown 0.14.5", "keyed-set", @@ -3705,7 +3705,7 @@ dependencies = [ [[package]] name = "zenoh-link" version = "1.0.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#983908b35b2a5bc8830b8eccec8025e62d69dc7f" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#0a911f3a6015f613e846a5ee242e9a61b8675c96" dependencies = [ "async-trait", "zenoh-config", @@ -3723,7 +3723,7 @@ dependencies = [ [[package]] name = "zenoh-link-commons" version = "1.0.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#983908b35b2a5bc8830b8eccec8025e62d69dc7f" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#0a911f3a6015f613e846a5ee242e9a61b8675c96" dependencies = [ "async-trait", "flume", @@ -3748,7 +3748,7 @@ dependencies = [ [[package]] name = "zenoh-link-quic" version = "1.0.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#983908b35b2a5bc8830b8eccec8025e62d69dc7f" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#0a911f3a6015f613e846a5ee242e9a61b8675c96" dependencies = [ "async-trait", "base64 0.22.1", @@ -3779,7 +3779,7 @@ dependencies = [ [[package]] name = "zenoh-link-tcp" version = "1.0.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#983908b35b2a5bc8830b8eccec8025e62d69dc7f" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#0a911f3a6015f613e846a5ee242e9a61b8675c96" dependencies = [ "async-trait", "socket2 0.5.7", @@ -3798,7 +3798,7 @@ dependencies = [ [[package]] name = "zenoh-link-tls" version = "1.0.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#983908b35b2a5bc8830b8eccec8025e62d69dc7f" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#0a911f3a6015f613e846a5ee242e9a61b8675c96" dependencies = [ "async-trait", "base64 0.22.1", @@ -3829,7 +3829,7 @@ dependencies = [ [[package]] name = "zenoh-link-udp" version = "1.0.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#983908b35b2a5bc8830b8eccec8025e62d69dc7f" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#0a911f3a6015f613e846a5ee242e9a61b8675c96" dependencies = [ "async-trait", "socket2 0.5.7", @@ -3850,7 +3850,7 @@ dependencies = [ [[package]] name = "zenoh-link-unixsock_stream" version = "1.0.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#983908b35b2a5bc8830b8eccec8025e62d69dc7f" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#0a911f3a6015f613e846a5ee242e9a61b8675c96" dependencies = [ "async-trait", "futures", @@ -3870,7 +3870,7 @@ dependencies = [ [[package]] name = "zenoh-link-ws" version = "1.0.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#983908b35b2a5bc8830b8eccec8025e62d69dc7f" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#0a911f3a6015f613e846a5ee242e9a61b8675c96" dependencies = [ "async-trait", "futures-util", @@ -3891,7 +3891,7 @@ dependencies = [ [[package]] name = "zenoh-macros" version = "1.0.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#983908b35b2a5bc8830b8eccec8025e62d69dc7f" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#0a911f3a6015f613e846a5ee242e9a61b8675c96" dependencies = [ "proc-macro2", "quote", @@ -3902,7 +3902,7 @@ dependencies = [ [[package]] name = "zenoh-plugin-trait" version = "1.0.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#983908b35b2a5bc8830b8eccec8025e62d69dc7f" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#0a911f3a6015f613e846a5ee242e9a61b8675c96" dependencies = [ "libloading", "serde", @@ -3917,7 +3917,7 @@ dependencies = [ [[package]] name = "zenoh-protocol" version = "1.0.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#983908b35b2a5bc8830b8eccec8025e62d69dc7f" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#0a911f3a6015f613e846a5ee242e9a61b8675c96" dependencies = [ "const_format", "rand", @@ -3932,7 +3932,7 @@ dependencies = [ [[package]] name = "zenoh-result" version = "1.0.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#983908b35b2a5bc8830b8eccec8025e62d69dc7f" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#0a911f3a6015f613e846a5ee242e9a61b8675c96" dependencies = [ "anyhow", ] @@ -3940,7 +3940,7 @@ dependencies = [ [[package]] name = "zenoh-runtime" version = "1.0.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#983908b35b2a5bc8830b8eccec8025e62d69dc7f" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#0a911f3a6015f613e846a5ee242e9a61b8675c96" dependencies = [ "futures", "lazy_static", @@ -3955,7 +3955,7 @@ dependencies = [ [[package]] name = "zenoh-shm" version = "1.0.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#983908b35b2a5bc8830b8eccec8025e62d69dc7f" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#0a911f3a6015f613e846a5ee242e9a61b8675c96" dependencies = [ "async-trait", "bincode", @@ -3979,7 +3979,7 @@ dependencies = [ [[package]] name = "zenoh-sync" version = "1.0.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#983908b35b2a5bc8830b8eccec8025e62d69dc7f" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#0a911f3a6015f613e846a5ee242e9a61b8675c96" dependencies = [ "event-listener 5.3.1", "futures", @@ -3993,7 +3993,7 @@ dependencies = [ [[package]] name = "zenoh-task" version = "1.0.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#983908b35b2a5bc8830b8eccec8025e62d69dc7f" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#0a911f3a6015f613e846a5ee242e9a61b8675c96" dependencies = [ "futures", "tokio", @@ -4006,7 +4006,7 @@ dependencies = [ [[package]] name = "zenoh-transport" version = "1.0.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#983908b35b2a5bc8830b8eccec8025e62d69dc7f" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#0a911f3a6015f613e846a5ee242e9a61b8675c96" dependencies = [ "async-trait", "crossbeam-utils", @@ -4041,7 +4041,7 @@ dependencies = [ [[package]] name = "zenoh-util" version = "1.0.0-dev" -source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#983908b35b2a5bc8830b8eccec8025e62d69dc7f" +source = "git+https://github.com/eclipse-zenoh/zenoh.git?branch=main#0a911f3a6015f613e846a5ee242e9a61b8675c96" dependencies = [ "async-trait", "const_format", diff --git a/include/zenoh_commons.h b/include/zenoh_commons.h index 386c5582b..1b8f1a408 100644 --- a/include/zenoh_commons.h +++ b/include/zenoh_commons.h @@ -2613,6 +2613,12 @@ ZENOHC_API enum z_whatami_t z_hello_whatami(const struct z_loaned_hello_t *this_ #if defined(UNSTABLE) ZENOHC_API z_id_t z_hello_zid(const struct z_loaned_hello_t *this_); #endif +/** + * Formats the `z_id_t` into 16-digit hex string (LSB-first order) + */ +#if defined(UNSTABLE) +ZENOHC_API void z_id_to_string(const z_id_t *zid, struct z_owned_string_t *dst); +#endif /** * Fetches the Zenoh IDs of all connected peers. * diff --git a/include/zenoh_macros.h b/include/zenoh_macros.h index 8123e8af9..2919ffcc5 100644 --- a/include/zenoh_macros.h +++ b/include/zenoh_macros.h @@ -657,43 +657,43 @@ inline void z_call(const z_loaned_closure_sample_t* closure, const z_loaned_samp z_closure_sample_call(closure, sample); }; -extern "C" typedef void (*z_closure_drop_callback_t)(void*); +extern "C" using z_closure_drop_callback_t = void(void*); -extern "C" typedef void (*z_closure_hello_callback_t)(const z_loaned_hello_t*, void*); +extern "C" using z_closure_hello_callback_t = void(const z_loaned_hello_t*, void*); inline void z_closure( z_owned_closure_hello_t* closure, - z_closure_hello_callback_t call, - z_closure_drop_callback_t drop, + z_closure_hello_callback_t* call, + z_closure_drop_callback_t* drop, void *context) { closure->context = context; closure->drop = drop; closure->call = call; }; -extern "C" typedef void (*z_closure_query_callback_t)(const z_loaned_query_t*, void*); +extern "C" using z_closure_query_callback_t = void(const z_loaned_query_t*, void*); inline void z_closure( z_owned_closure_query_t* closure, - z_closure_query_callback_t call, - z_closure_drop_callback_t drop, + z_closure_query_callback_t* call, + z_closure_drop_callback_t* drop, void *context) { closure->context = context; closure->drop = drop; closure->call = call; }; -extern "C" typedef void (*z_closure_reply_callback_t)(const z_loaned_reply_t*, void*); +extern "C" using z_closure_reply_callback_t = void(const z_loaned_reply_t*, void*); inline void z_closure( z_owned_closure_reply_t* closure, - z_closure_reply_callback_t call, - z_closure_drop_callback_t drop, + z_closure_reply_callback_t* call, + z_closure_drop_callback_t* drop, void *context) { closure->context = context; closure->drop = drop; closure->call = call; }; -extern "C" typedef void (*z_closure_sample_callback_t)(const z_loaned_sample_t*, void*); +extern "C" using z_closure_sample_callback_t = void(const z_loaned_sample_t*, void*); inline void z_closure( z_owned_closure_sample_t* closure, - z_closure_sample_callback_t call, - z_closure_drop_callback_t drop, + z_closure_sample_callback_t* call, + z_closure_drop_callback_t* drop, void *context) { closure->context = context; closure->drop = drop;