-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure to parse .x.["y.z"] notation #1168
Comments
Trials with 2-part ("z.y") versus 3-part ("z.y.x") key
|
The syntax is either
So, you may be wondering: how come |
Great, that completely addresses my question, thank you. Good to close. For the sake of completeness, it looks like the dot must be elided.
|
Yes, that is correct: the dot must be elided. I misspoke in my earlier comment. |
This seems to be a documentation issue. The reference documentation
This appears to be true only if the dot is at the start. There |
I'll agree that it's a documentation issue, but the real issue is that we
may not be properly explaining what the dot is doing there. The dot means
"the input", and then you're indexing with [], so subsequent indexes in a
chain don't need to have a dot, since they're indexing off of the result.
In fact, as you've noticed, using the dot results in a syntax error. :)
…On Thu, May 11, 2017, 07:31 Roger Peppe ***@***.***> wrote:
This seems to be a documentation issue. The reference documentation
describes the operator as .[0] and says:
When the index value is an integer, .[<value>] can index arrays
This appears to be true only if the dot is at the start. There
are no examples of an array index not at the start, and no
indications that I've found that the dot is not allowed in that
case.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1168 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ADQ4V0NFWrbe-Lw4XpL8ivJLHBBeqoSWks5r4vGBgaJpZM4I7A3Y>
.
|
My question is: should we add |
This is something I recently ran into, as well. Simplified examples using JQPlay: With dot (syntax error): Without dot (happy): Is this something that there is a concrete reason behind disallowing? Or is it just a limitation of the current implementation? Wording my question another way: Is there any reason that supporting this in the future would be explicitly unwanted? |
@MondayHopscotch There is no limitation of the current implementation that makes this difficult to support. As to reasons not to support this, I don't think there are any, and this is a very very FAQ. This trivial patch adds support for this:
|
@wtlangford any objections to pushing that patch? |
Perhaps the real issue here is that the documentation doesn't explain the grammar clearly. I can't see anything in the documentation that mentions that
AFAICS One other thing: |
There is certainly a bug in the manual...
|
I've pushed 3e0a118 to allow |
ubuntu-22.04 runners use jq 1.6 which doesn't recognize a dot for `[]` value iterator. See: jqlang/jq#1168.
ubuntu-22.04 runners use jq 1.6 which doesn't recognize a dot for `[]` value iterator. See: jqlang/jq#1168.
ubuntu-22.04 runners use jq 1.6 which doesn't recognize a dot for `[]` value iterator. See: jqlang/jq#1168.
* build: Get Read the Docs release number from Cargo manifest This avoids hardcoding the release number in the documentation build config, making it easier to bump the version by only modifying the manifest. * build: Require Python 3.11 in Read the Docs configuration Python 3.11 is needed to access tomllib; useful for parsing the Cargo manifest file. * feat: Create branch, bump version and tag in release workflow * feat: Add publish-github job * fix: Broken tag dependencies * chore: Remove enforce-linking-issues workflow * fix: Bump version in pyproject.toml * chore: Upgrade artifact actions from v3 to v4 * fix: Typo in git-commit command * fix: Support jq 1.6 ubuntu-22.04 runners use jq 1.6 which doesn't recognize a dot for `[]` value iterator. See: jqlang/jq#1168. * Revert "chore: Upgrade artifact actions from v3 to v4" This reverts commit a535971. * fix: Build wheels from release branch * fix: Switch to pypa/gh-action-pypi-publish@release/v1 The older actions doesn't recognize the pyproject.toml metadata fields.
* feat: Store project version in version.txt * fix: Remove cargo-deb metadata section in `zenoh-jni` * feat: Add `bump-and-tag.bash` script * chore: Rename release workflow to pre-release * chore: Disable release event on publish workflows * fix: Typo in ci/scripts * feat: Automate Release * chore: Remove enforce-linking-issues workflow * fix: Set permissions for publishing jobs * feat: Add publish-dokka to release workflow * fix: Set release branch in publishing jobs * fix: Make `branch` input unrequired in publishing jobs * style: Uniformize publishing workflow names * fix: Unecessary use of `BOT_TOKEN_WORKFLOW` * fix: Incorrect Cargo manifest/lockfile path * fix: Add missing `live-run` input for publish-dokka job * fix: Typo in pre-release workflow name * fix: Remove `if: always()` in publish-github job * fix: Remove unecessary SSH passphrase/privatekey inputs * chore: Retrigger CI * fix: Support jq 1.6 ubuntu-22.04 runners use jq 1.6 which doesn't recognize a dot for `[]` value iterator. See: jqlang/jq#1168.
* build: Get Read the Docs release number from Cargo manifest This avoids hardcoding the release number in the documentation build config, making it easier to bump the version by only modifying the manifest. * build: Require Python 3.11 in Read the Docs configuration Python 3.11 is needed to access tomllib; useful for parsing the Cargo manifest file. * feat: Create branch, bump version and tag in release workflow * feat: Add publish-github job * fix: Broken tag dependencies * chore: Remove enforce-linking-issues workflow * fix: Bump version in pyproject.toml * chore: Upgrade artifact actions from v3 to v4 * fix: Typo in git-commit command * fix: Support jq 1.6 ubuntu-22.04 runners use jq 1.6 which doesn't recognize a dot for `[]` value iterator. See: jqlang/jq#1168. * Revert "chore: Upgrade artifact actions from v3 to v4" This reverts commit a535971. * fix: Build wheels from release branch * fix: Switch to pypa/gh-action-pypi-publish@release/v1 The older actions doesn't recognize the pyproject.toml metadata fields.
ubuntu-22.04 runners use jq 1.6 which doesn't recognize a dot for `[]` value iterator. See: jqlang/jq#1168.
* chore: bump pyo3 to 0.21 (#175) Roughly adapt the code to the new PyO3 API, with a few warning fixes. * fix(examples): fix commented parts of z_put.py (#176) * fix(examples): fix commented parts of z_put.py * fix: apply PR reviews * fix: apply PR reviews * Correct the syntax of pyproject.toml (#181) * feat: Automate Release (#165) * build: Get Read the Docs release number from Cargo manifest This avoids hardcoding the release number in the documentation build config, making it easier to bump the version by only modifying the manifest. * build: Require Python 3.11 in Read the Docs configuration Python 3.11 is needed to access tomllib; useful for parsing the Cargo manifest file. * feat: Create branch, bump version and tag in release workflow * feat: Add publish-github job * fix: Broken tag dependencies * chore: Remove enforce-linking-issues workflow * fix: Bump version in pyproject.toml * chore: Upgrade artifact actions from v3 to v4 * fix: Typo in git-commit command * fix: Support jq 1.6 ubuntu-22.04 runners use jq 1.6 which doesn't recognize a dot for `[]` value iterator. See: jqlang/jq#1168. * Revert "chore: Upgrade artifact actions from v3 to v4" This reverts commit a535971. * fix: Build wheels from release branch * fix: Switch to pypa/gh-action-pypi-publish@release/v1 The older actions doesn't recognize the pyproject.toml metadata fields. * Force sphinx version to 7.2.6 (#185) * fix: Install maturin according to requirements-dev.txt (#186) * fix: fix scout deadlock (#188) Releasing GIL in Scout destructor prevents the deadlock. * fix(uhlc): bump uhlc version (#173) Signed-off-by: gabrik <gabriele.baldoni@gmail.com> Co-authored-by: Luca Cominardi <luca.cominardi@gmail.com> * feat(tracing): using zenoh-util function for log initialization (#172) * feat(tracing): using zenoh-util function for log initialization Signed-off-by: gabrik <gabriele.baldoni@gmail.com> * chore: adding Cargo.lock Signed-off-by: gabrik <gabriele.baldoni@gmail.com> * feat(tracing): using zenoh main Signed-off-by: gabrik <gabriele.baldoni@gmail.com> * chore: using new try_init_log_from_env Signed-off-by: gabrik <gabriele.baldoni@gmail.com> * chore: sync Cargo.lock Signed-off-by: gabrik <gabriele.baldoni@gmail.com> --------- Signed-off-by: gabrik <gabriele.baldoni@gmail.com> Co-authored-by: Luca Cominardi <luca.cominardi@gmail.com> * feat: add Attachment to API (#189) * feat: add Attachment to API * fix: make attachment a CLI arg in z_put example * Update zenoh/session.py Co-authored-by: Luca Cominardi <luca.cominardi@gmail.com> * Apply suggestions from code review Co-authored-by: Luca Cominardi <luca.cominardi@gmail.com> * test: add test for attachment --------- Co-authored-by: Luca Cominardi <luca.cominardi@gmail.com> * build: Sync with eclipse-zenoh/zenoh@81217c7 from 2024-04-22 (#190) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * fix: Create virtual environment for armv6 build (#191) * build: Sync with eclipse-zenoh/zenoh@2fdddae from 2024-04-23 (#192) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@9a9832a from 2024-04-24 (#193) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@7c64d99 from 2024-04-26 (#194) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@ad58af6 from 2024-04-26 (#195) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@e8916bf from 2024-04-26 (#196) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@ea604b6 from 2024-04-29 (#197) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@371ca6b from 2024-04-30 (#198) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@7a47445 from 2024-05-03 (#200) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@f5195c0 from 2024-05-03 (#202) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@e53364f from 2024-05-04 (#203) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * test: add z_ping/z_pong examples (#205) * fix: make attachment API more similar to dict API (#201) * fix: make attachment API more similar to dict API * fix: fix formatting * fix: fix formatting * fix: fix typing * fix: uncomment tests 😅 * docs: add docstring for Attachment * build: Sync with eclipse-zenoh/zenoh@7e5d5e8 from 2024-05-07 (#206) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * fix: add `Encoding.with_suffix` instead of `Encoding.append` (#208) * fix: add `Encoding.with_suffix` instead of `Encoding.append` * feat: add `prefix`/`suffix` methods to `Encoding` * build: Sync with eclipse-zenoh/zenoh@b8dd01d from 2024-05-07 (#209) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * Support timeout for get in session. Signed-off-by: ChenYing Kuo <evshary@gmail.com> * Update PR based on the review. Signed-off-by: ChenYing Kuo <evshary@gmail.com> * Fix CI lint error. Signed-off-by: ChenYing Kuo <evshary@gmail.com> * Update: PyTypeError => PyValueError Signed-off-by: ChenYing Kuo <evshary@gmail.com> * build: Sync with eclipse-zenoh/zenoh@45e05f0 from 2024-05-13 (#212) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@763a05f from 2024-05-14 (#213) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@75aa273 from 2024-05-15 (#214) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@25f06bd from 2024-05-21 (#215) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@3118d31 from 2024-05-28 (#216) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@d574654 from 2024-06-03 (#217) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * chore: Update artifacts action to v4 (#218) artifacts actions v3 are deprecated * fix: give unique name for artifacts (#220) upload-artifacts/v4 has a breaking change from v3, which requires the artifacts names to be unique. Fix #219 * build: Sync with eclipse-zenoh/zenoh@c279982 from 2024-06-05 (#221) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@d8e66de from 2024-06-10 (#222) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@9d09742 from 2024-06-11 (#223) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * Fix markdown format in README. (#211) Signed-off-by: ChenYing Kuo <evshary@gmail.com> * build: Sync with eclipse-zenoh/zenoh@ed6c636 from 2024-06-12 (#225) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@8160b01 from 2024-06-13 (#228) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * Enable releasing from any branch (#227) * build: Sync with eclipse-zenoh/zenoh@7adad94 from 2024-06-14 (#230) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@93f93d2 from 2024-06-17 (#231) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@2500e5a from 2024-06-20 (#236) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * fix: remove deprecated maturin arg (#241) See PyO3/maturin#1620, `--universal2` has been deprecated * build: Sync with eclipse-zenoh/zenoh@869ace6 from 2024-07-02 (#247) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@b93ca84 from 2024-07-03 (#248) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@b3e42ce from 2024-07-08 (#252) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@b3e42ce from 2024-07-08 (#253) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@b3e42ce from 2024-07-08 (#259) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@0a969cb from 2024-07-25 (#261) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@0a969cb from 2024-07-25 (#262) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@e587aa9 from 2024-07-26 (#265) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@2d88c7b from 2024-07-29 (#268) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * chore: remove useless dependencies --------- Signed-off-by: gabrik <gabriele.baldoni@gmail.com> Signed-off-by: ChenYing Kuo <evshary@gmail.com> Co-authored-by: Yuyuan Yuan <az6980522@gmail.com> Co-authored-by: Mahmoud Mazouz <mazouz.mahmoud@outlook.com> Co-authored-by: oteffahi <70609372+oteffahi@users.noreply.github.com> Co-authored-by: Gabriele Baldoni <gabrik@users.noreply.github.com> Co-authored-by: Luca Cominardi <luca.cominardi@gmail.com> Co-authored-by: eclipse-zenoh-bot <61247838+eclipse-zenoh-bot@users.noreply.github.com> Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> Co-authored-by: ChenYing Kuo <evshary@gmail.com> Co-authored-by: kydos <kydos@protonmail.com> Co-authored-by: Diogo Matsubara <diogo.matsubara@pm.me> Co-authored-by: Diogo Matsubara <diogo.matsubara@zettascale.tech>
* fix: Rename `bump.bash` to `bump-and-tag.bash` * feat: Add `version.txt` and infer version in `bump-and-tag.bash` * fix: Clone repository using actions/checkout * fix: Add `CMakeFiles` to `.gitignore` * fix: Add `debug` and `release` to `.gitignore` * fix: Provide default release number for testing * fix: Don't bump deps when pattern is undefined * fix sizes of zcu_owned_matching_listener_t and z_owned_reply_t * build: Sync with eclipse-zenoh/zenoh@580f0b6 from 2024-04-11 (#330) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * fix: Specify git remote when pushing the tag * fix: Require `VERSION`in `bump-and-tag.bash` * fix: Override release tag if it already exists * feat(tracing): using tracing and zenoh-util init_log (#308) * feat(tracing): using tracing and zenoh-util init_log Signed-off-by: gabrik <gabriele.baldoni@gmail.com> * chore: adding Cargo.lock Signed-off-by: gabrik <gabriele.baldoni@gmail.com> * chore: updated Cargo.toml.in Signed-off-by: gabrik <gabriele.baldoni@gmail.com> * feat(tracing): using zenoh main branch Signed-off-by: gabrik <gabriele.baldoni@gmail.com> --------- Signed-off-by: gabrik <gabriele.baldoni@gmail.com> * build: Sync with eclipse-zenoh/zenoh@580f0b6 from 2024-04-11 (#335) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@23c5932 from 2024-04-16 (#337) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * fix: Support jq 1.6 ubuntu-22.04 runners use jq 1.6 which doesn't recognize a dot for `[]` value iterator. See: jqlang/jq#1168. * chore: using new try_init_log_from_env Signed-off-by: gabrik <gabriele.baldoni@gmail.com> * Align examples and remove reading from stdin (#255) * Remove reading from stdin, align example implementations * Add argument parsing implementation for examples * Add argument parsing to examples, format files * Replace getchar with sleep in z_pong example * Fix typo in include * Use null-pointers instead of empty strings, remove unnecessary mallocs * Free returned pointer after parse_pos_args usage * Add common and positional args parsing to z_ping example * Add formatting for parsed config options * Add const to function parameters * Update mode option help * Fix pos_args memory leak * Refactor parse_args, remove possible strcpy buffer overflow * Change parse_args function returns to const where applicable * Fix const initialization warning * Remove redundant const for value parameters * Fix buf variable memory leak * Update insert json-list config error message * Add usage example for -e and -l arguments in help * Update example notation in help message Co-authored-by: Alexander <sashacmc@gmail.com> * Update example notation in help message (2/2) * Fix parameter in error message Co-authored-by: Alexander <sashacmc@gmail.com> --------- Co-authored-by: Alexander <sashacmc@gmail.com> * Bugfix: Unable to build z_queryable_with_channels.c (#340) Signed-off-by: ChenYing Kuo <evshary@gmail.com> * build: Sync with eclipse-zenoh/zenoh@0283aaa from 2024-04-19 (#341) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@e8916bf from 2024-04-26 (#343) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * Update README and specify Rust version (#342) * Clean up the Markdown format. Signed-off-by: ChenYing Kuo <evshary@gmail.com> * Specify Rust version in README. Signed-off-by: ChenYing Kuo <evshary@gmail.com> --------- Signed-off-by: ChenYing Kuo <evshary@gmail.com> * build: Sync with eclipse-zenoh/zenoh@ea604b6 from 2024-04-29 (#344) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@371ca6b from 2024-04-30 (#347) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@7a47445 from 2024-05-03 (#348) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@f5195c0 from 2024-05-03 (#350) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@e53364f from 2024-05-04 (#351) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@7e5d5e8 from 2024-05-07 (#355) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@b8dd01d from 2024-05-07 (#356) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@45e05f0 from 2024-05-13 (#360) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * Fix build with CMAKE_BUILD_TYPE=None This is the default build type for debhelper (Debian). * build: Sync with eclipse-zenoh/zenoh@763a05f from 2024-05-14 (#363) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@75aa273 from 2024-05-15 (#364) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@25f06bd from 2024-05-21 (#369) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@3118d31 from 2024-05-28 (#399) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@009f666 from 2024-05-30 (#411) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@d574654 from 2024-06-03 (#420) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * chore: Update artifacts action to v4 (#421) artifacts actions v3 are deprecated * build: Sync with eclipse-zenoh/zenoh@c279982 from 2024-06-05 (#424) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@d8e66de from 2024-06-10 (#436) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@9d09742 from 2024-06-11 (#446) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@ed6c636 from 2024-06-12 (#450) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@8160b01 from 2024-06-13 (#457) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * Enable releasing from any branch (#456) * build: Sync with eclipse-zenoh/zenoh@7adad94 from 2024-06-14 (#460) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * Update to latest zenoh * Replace `-rc` with `-pre` and document versioning (#466) * build: Sync with eclipse-zenoh/zenoh@2500e5a from 2024-06-20 (#467) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * macro generation * moved types added to decl * moved type drop * switched rust to z_moved * moved closures * build macros fixed * z_move name restored * into_rust_type for moved, payloads * tests updated * cargo fmt * moved structs in some drops/undeclares * moved as separate parameter * removed asref from moved * moved unfinished * build: Sync with eclipse-zenoh/zenoh@869ace6 from 2024-07-02 (#494) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * moved type with into_rust_type trait, comiles without shm * build with shm passed * option added to some decl_c_type * clippy fix * build fix * moved types added * task moved used * build: Sync with eclipse-zenoh/zenoh@b93ca84 from 2024-07-03 (#500) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * some examples fixes * macros corrected to use auto derive loaned type from owned feature * optional comma allowed in macros where forgotten * property moved get * put options move * publisher delete options made simpler * put options with moved * delete options timestamp simplified * more moved in options, timestamp simplified * examples,tests updated * tests compile fixes * fix for test failure due to calling z_moved_xxx_t destructor on unitialized memory * cargo fmt imports * build fixes * build: Sync with eclipse-zenoh/zenoh@b3e42ce from 2024-07-08 (#508) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * Ensure that find_package(zenohc) can be called two times (#470) * Update CMakeLists.txt (#473) * Install zenohc.dll in <prefix>/bin on Windows (#471) * build: Sync with eclipse-zenoh/zenoh@0a969cb from 2024-07-25 (#546) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@e587aa9 from 2024-07-26 (#552) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * some xompile errors fixed * some build errors fixed * some build errors fixed * build fixes * cargo fmt * into_rust_type usage fixes * encoding drop fixed * restored headers * zcu renamed back to zc * zcu renamed back to zc * z_xxx_move is static inline, cpp fixes * build: Sync with eclipse-zenoh/zenoh@2d88c7b from 2024-07-29 (#556) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * clang format from start * cargo fmt * macros contains funcions now, it needs types defined * removed zenoh_macros include * zenoh_macros include returned back to place * C++ build test added, fails for now * C++ enabling correction * C++ compilation for tests added * C++ build test * cargo lock update * retrun value if not void from template functions * cargo fmt * build fixes * build fix after cargo.lock update * moved types for buffer creation functions * clippy fix * clippy fix: c_char can be i8 or u8 depending on platform * headers restored * cargo fmt * -c c++ flag for clang only * c++ build fix - brackets removed * type specific take functions added, _ptr in moved * generic_take_cpp * z_take impls at the end * take funcs before generics * take moved after null * names fix * missing null functioj added * tests fixed for c++ * explicit null calls * fix generic parameter names c compilation * null call fix * misprint fixed * return removed * Rename `close` to `undeclare` for Publication Cache and Querying Subscriber * Temporarily use original pull request branch * Update to eclipse-zenoh/zenoh@ce4e9bf * Fix `z_ref_shm_client_storage_global` * Update Cargo.toml * decl_c_type corrected * cargo check run * borrow error fix * compilation fix * parse arg fix * example compilation fix * examples compile fix * examples build fixes * removed duplicated z_config_default (it's called in parsing args later) * clang format * clang format * cargo.toml restore --------- Signed-off-by: gabrik <gabriele.baldoni@gmail.com> Signed-off-by: ChenYing Kuo <evshary@gmail.com> Co-authored-by: Mahmoud Mazouz <mazouz.mahmoud@outlook.com> Co-authored-by: Denis Biryukov <denis.biryukov@zettascale.tech> Co-authored-by: eclipse-zenoh-bot <61247838+eclipse-zenoh-bot@users.noreply.github.com> Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> Co-authored-by: Mahmoud Mazouz <hello@fuzzypixelz.com> Co-authored-by: Gabriele Baldoni <gabrik@users.noreply.github.com> Co-authored-by: gabrik <gabriele.baldoni@gmail.com> Co-authored-by: oteffahi <70609372+oteffahi@users.noreply.github.com> Co-authored-by: Alexander <sashacmc@gmail.com> Co-authored-by: ChenYing Kuo (CY) <evshary@gmail.com> Co-authored-by: Jochen Sprickerhof <git@jochen.sprickerhof.de> Co-authored-by: Diogo Matsubara <diogo.matsubara@pm.me> Co-authored-by: OlivierHecart <olivier.hecart@adlinktech.com> Co-authored-by: Silvio Traversaro <silvio@traversaro.it> Co-authored-by: Luca Cominardi <luca.cominardi@gmail.com>
* fix: Rename `bump.bash` to `bump-and-tag.bash` * feat: Add `version.txt` and infer version in `bump-and-tag.bash` * fix: Clone repository using actions/checkout * fix: Add `CMakeFiles` to `.gitignore` * fix: Add `debug` and `release` to `.gitignore` * fix: Provide default release number for testing * fix: Don't bump deps when pattern is undefined * fix sizes of zcu_owned_matching_listener_t and z_owned_reply_t * build: Sync with eclipse-zenoh/zenoh@580f0b6 from 2024-04-11 (#330) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * fix: Specify git remote when pushing the tag * fix: Require `VERSION`in `bump-and-tag.bash` * fix: Override release tag if it already exists * feat(tracing): using tracing and zenoh-util init_log (#308) * feat(tracing): using tracing and zenoh-util init_log Signed-off-by: gabrik <gabriele.baldoni@gmail.com> * chore: adding Cargo.lock Signed-off-by: gabrik <gabriele.baldoni@gmail.com> * chore: updated Cargo.toml.in Signed-off-by: gabrik <gabriele.baldoni@gmail.com> * feat(tracing): using zenoh main branch Signed-off-by: gabrik <gabriele.baldoni@gmail.com> --------- Signed-off-by: gabrik <gabriele.baldoni@gmail.com> * build: Sync with eclipse-zenoh/zenoh@580f0b6 from 2024-04-11 (#335) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@23c5932 from 2024-04-16 (#337) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * fix: Support jq 1.6 ubuntu-22.04 runners use jq 1.6 which doesn't recognize a dot for `[]` value iterator. See: jqlang/jq#1168. * chore: using new try_init_log_from_env Signed-off-by: gabrik <gabriele.baldoni@gmail.com> * Align examples and remove reading from stdin (#255) * Remove reading from stdin, align example implementations * Add argument parsing implementation for examples * Add argument parsing to examples, format files * Replace getchar with sleep in z_pong example * Fix typo in include * Use null-pointers instead of empty strings, remove unnecessary mallocs * Free returned pointer after parse_pos_args usage * Add common and positional args parsing to z_ping example * Add formatting for parsed config options * Add const to function parameters * Update mode option help * Fix pos_args memory leak * Refactor parse_args, remove possible strcpy buffer overflow * Change parse_args function returns to const where applicable * Fix const initialization warning * Remove redundant const for value parameters * Fix buf variable memory leak * Update insert json-list config error message * Add usage example for -e and -l arguments in help * Update example notation in help message Co-authored-by: Alexander <sashacmc@gmail.com> * Update example notation in help message (2/2) * Fix parameter in error message Co-authored-by: Alexander <sashacmc@gmail.com> --------- Co-authored-by: Alexander <sashacmc@gmail.com> * Bugfix: Unable to build z_queryable_with_channels.c (#340) Signed-off-by: ChenYing Kuo <evshary@gmail.com> * build: Sync with eclipse-zenoh/zenoh@0283aaa from 2024-04-19 (#341) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@e8916bf from 2024-04-26 (#343) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * Update README and specify Rust version (#342) * Clean up the Markdown format. Signed-off-by: ChenYing Kuo <evshary@gmail.com> * Specify Rust version in README. Signed-off-by: ChenYing Kuo <evshary@gmail.com> --------- Signed-off-by: ChenYing Kuo <evshary@gmail.com> * build: Sync with eclipse-zenoh/zenoh@ea604b6 from 2024-04-29 (#344) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@371ca6b from 2024-04-30 (#347) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@7a47445 from 2024-05-03 (#348) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@f5195c0 from 2024-05-03 (#350) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@e53364f from 2024-05-04 (#351) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@7e5d5e8 from 2024-05-07 (#355) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@b8dd01d from 2024-05-07 (#356) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@45e05f0 from 2024-05-13 (#360) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * Fix build with CMAKE_BUILD_TYPE=None This is the default build type for debhelper (Debian). * build: Sync with eclipse-zenoh/zenoh@763a05f from 2024-05-14 (#363) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@75aa273 from 2024-05-15 (#364) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@25f06bd from 2024-05-21 (#369) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@3118d31 from 2024-05-28 (#399) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@009f666 from 2024-05-30 (#411) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@d574654 from 2024-06-03 (#420) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * chore: Update artifacts action to v4 (#421) artifacts actions v3 are deprecated * build: Sync with eclipse-zenoh/zenoh@c279982 from 2024-06-05 (#424) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@d8e66de from 2024-06-10 (#436) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@9d09742 from 2024-06-11 (#446) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@ed6c636 from 2024-06-12 (#450) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@8160b01 from 2024-06-13 (#457) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * Enable releasing from any branch (#456) * build: Sync with eclipse-zenoh/zenoh@7adad94 from 2024-06-14 (#460) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * Update to latest zenoh * Replace `-rc` with `-pre` and document versioning (#466) * build: Sync with eclipse-zenoh/zenoh@2500e5a from 2024-06-20 (#467) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * macro generation * moved types added to decl * moved type drop * switched rust to z_moved * moved closures * build macros fixed * z_move name restored * into_rust_type for moved, payloads * tests updated * cargo fmt * moved structs in some drops/undeclares * moved as separate parameter * removed asref from moved * moved unfinished * build: Sync with eclipse-zenoh/zenoh@869ace6 from 2024-07-02 (#494) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * moved type with into_rust_type trait, comiles without shm * build with shm passed * option added to some decl_c_type * clippy fix * build fix * moved types added * task moved used * build: Sync with eclipse-zenoh/zenoh@b93ca84 from 2024-07-03 (#500) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * some examples fixes * macros corrected to use auto derive loaned type from owned feature * optional comma allowed in macros where forgotten * property moved get * put options move * publisher delete options made simpler * put options with moved * delete options timestamp simplified * more moved in options, timestamp simplified * examples,tests updated * tests compile fixes * fix for test failure due to calling z_moved_xxx_t destructor on unitialized memory * cargo fmt imports * build fixes * build: Sync with eclipse-zenoh/zenoh@b3e42ce from 2024-07-08 (#508) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * Ensure that find_package(zenohc) can be called two times (#470) * Update CMakeLists.txt (#473) * Install zenohc.dll in <prefix>/bin on Windows (#471) * build: Sync with eclipse-zenoh/zenoh@0a969cb from 2024-07-25 (#546) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@e587aa9 from 2024-07-26 (#552) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * some xompile errors fixed * some build errors fixed * some build errors fixed * build fixes * cargo fmt * into_rust_type usage fixes * encoding drop fixed * restored headers * zcu renamed back to zc * zcu renamed back to zc * z_xxx_move is static inline, cpp fixes * build: Sync with eclipse-zenoh/zenoh@2d88c7b from 2024-07-29 (#556) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * clang format from start * cargo fmt * macros contains funcions now, it needs types defined * removed zenoh_macros include * zenoh_macros include returned back to place * C++ build test added, fails for now * C++ enabling correction * C++ compilation for tests added * C++ build test * cargo lock update * retrun value if not void from template functions * cargo fmt * build fixes * build fix after cargo.lock update * moved types for buffer creation functions * clippy fix * clippy fix: c_char can be i8 or u8 depending on platform * headers restored * cargo fmt * -c c++ flag for clang only * c++ build fix - brackets removed * type specific take functions added, _ptr in moved * generic_take_cpp * z_take impls at the end * take funcs before generics * take moved after null * names fix * missing null functioj added * tests fixed for c++ * explicit null calls * fix generic parameter names c compilation * null call fix * misprint fixed * return removed * Rename `close` to `undeclare` for Publication Cache and Querying Subscriber * Temporarily use original pull request branch * Update to eclipse-zenoh/zenoh@ce4e9bf * Fix `z_ref_shm_client_storage_global` * Update Cargo.toml * decl_c_type corrected * cargo check run * borrow error fix * compilation fix * parse arg fix * example compilation fix * examples compile fix * examples build fixes * removed duplicated z_config_default (it's called in parsing args later) * clang format * clang format * cargo.toml restore * added underscore to _z_null and _z_check * missing functions updated * rename to z_internal_null/check * clang format fix * restored headers, corrected cargo.toml --------- Signed-off-by: gabrik <gabriele.baldoni@gmail.com> Signed-off-by: ChenYing Kuo <evshary@gmail.com> Co-authored-by: Mahmoud Mazouz <mazouz.mahmoud@outlook.com> Co-authored-by: Denis Biryukov <denis.biryukov@zettascale.tech> Co-authored-by: eclipse-zenoh-bot <61247838+eclipse-zenoh-bot@users.noreply.github.com> Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> Co-authored-by: Mahmoud Mazouz <hello@fuzzypixelz.com> Co-authored-by: Gabriele Baldoni <gabrik@users.noreply.github.com> Co-authored-by: gabrik <gabriele.baldoni@gmail.com> Co-authored-by: oteffahi <70609372+oteffahi@users.noreply.github.com> Co-authored-by: Alexander <sashacmc@gmail.com> Co-authored-by: ChenYing Kuo (CY) <evshary@gmail.com> Co-authored-by: Jochen Sprickerhof <git@jochen.sprickerhof.de> Co-authored-by: Diogo Matsubara <diogo.matsubara@pm.me> Co-authored-by: OlivierHecart <olivier.hecart@adlinktech.com> Co-authored-by: Silvio Traversaro <silvio@traversaro.it> Co-authored-by: Luca Cominardi <luca.cominardi@gmail.com>
* Add z_timestamp_new and tests * fix clippy warning * Add z_publisher_set_* methods * Add missing properties to z_query_reply_options_t * Add check, null, loan, drop for source info. * Move z_*_source_info_t, z_entity_global_id_t out from commons * renamed zc_liveliness_declare_subscriber_options_t -> zc_liveliness_subscriber_options_t; added zc_liveliness_token_loan function; added tests for liveliness; * fmt * test update * Add reply_del support * Add clang-format CI check * Update codebase with clang-format * Remove z_query_value * Fix default congestion_control for z_query_reply_options_t * Fix default congestion_control for z_query_reply_del_options_t * Exclude autogenerated files from clang-format * Add z_publisher_loan_mut * Add z_reply_err_t and methods * Add missing properties to z_get_options_t * Remove publisher set methods * Add z_reply_replier_id * chore: Sync Rust toolchain * Add publisher id getter (#448) * Add publisher id getter * Add z_publisher_id to docs/api.rst * Support recent zenoh (no shm renaming!) * SHM renaming support * remove unnecessary .clone() call (#437) * format tests * Fix INTERFACE includes (was incorrect when Cargo is generating to custom directory) * rename z_bytes_encode/decode into z_bytes_serialize/deserialize * format * cargo fmt * Remove unused variable * more build system fixes * Fix build with CMAKE_BUILD_TYPE=None This is the default build type for debhelper (Debian). * chore: Update artifacts action to v4 (#421) artifacts actions v3 are deprecated * Enable releasing from any branch (#456) * Replace `-rc` with `-pre` and document versioning (#466) * Update README and specify Rust version (#342) * Clean up the Markdown format. Signed-off-by: ChenYing Kuo <evshary@gmail.com> * Specify Rust version in README. Signed-off-by: ChenYing Kuo <evshary@gmail.com> --------- Signed-off-by: ChenYing Kuo <evshary@gmail.com> * chore: Update artifacts action to v4 (#421) artifacts actions v3 are deprecated * build: Sync with eclipse-zenoh/zenoh@65e5df7 from 2024-06-21 (#468) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@a6d117b from 2024-06-21 (#474) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * Align Zenoh (#476) * build: Sync with eclipse-zenoh/zenoh@fc18f90 from 2024-06-26 (#477) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@1790d59 from 2024-06-26 (#483) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * simplify transmute mod for easier understanding the code (#472) * from/into types * inplace2 for Config * z_config_default fix * separating CSlice - unfinished * slice/string rework unfinshed * collections unfinished * collections updated * clippy fix * cargo fmt * copy transmute, only a_c_type kept * clippy fix * sample converted * encoding converted * EntityGlobalId converted * sourceInfo updated * publisher updated * clippy fix * queryable updated * query updated * reply_error * querying_subscriber update * slice_map converted * string_array updated * reply updated * keyexpr updated * liveliness token updated * ZBytes updated * zbytes writer updated * zbyes reader updated * ZenohId updated * zbytesiterator updated * publication cache updated * scouting updated * session updated * subscriber updated * owned_matching_listener updated * closure hello updated * matching status closure update * cargo fmt, doc comments corrected * query channel * query_channel updated * query_closure updated * reply_closure updated * fifo_handler_reply updated * response_channel updated * sample channel updated * sample closure updated * sample channel updated * zenoh_id closure updated * zmutex updated * condvar covered * task covered * z_owned_shm_t updated * shm_mut updated * shm_client updated * owned_shm_client_list updated * shm_client_storage updated * alloc_layout, alloc_result converted * shm provider update * alloc alignment converted * memory layout updated * chunk alloc resut updated * rename transmute2 to transmute * lifetime corrected * tests fixed, uninit test updated * lib name restored * renamed "ctype" to "c_type", like "rust_type" * write empty on error * year updated * regenerated headers wihtout shm * String names normalization (#495) * fix string-related function names in docs (#496) * updated docs after pr #495 * updated docs * change order of arguments for ..._clone methods to that of zenoh-pico (#497) * fix_what_am_i_to_str name and docs (#503) * add encoding tests (#502) * add encoding tests * format * feat: bump zenoh version (#485) * chore: rebase onto dev/1.0.0 * fix: fix clippy lint * fix: comment entity_global_id... * fix: fix comment * fix: comment eid in the test * fix: fix test * fix: fix test * fix: fix test * fix: add comment * build: Sync with eclipse-zenoh/zenoh@cae8697 from 2024-07-05 (#505) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@6df74c7 from 2024-07-07 (#506) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@12b11ee from 2024-07-08 (#507) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@9e1c4a8 from 2024-07-08 (#509) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * api fixes for compatibility with zenoh-pico (#510) * api fixes for compatibility with zenoh-pico * clippy fixes * remove unneeded enumerators from z_whatami_t * fix: Rename `bump.bash` to `bump-and-tag.bash` * feat: Add `version.txt` and infer version in `bump-and-tag.bash` * fix: Clone repository using actions/checkout * fix: Don't bump deps when pattern is undefined * fix: Specify git remote when pushing the tag * fix: Require `VERSION`in `bump-and-tag.bash` * fix: Override release tag if it already exists * fix: Support jq 1.6 ubuntu-22.04 runners use jq 1.6 which doesn't recognize a dot for `[]` value iterator. See: jqlang/jq#1168. * align api with zenoh-pico (#519) * remove z_slice_map; make z_timestamp_new, use id of session and current wall clock time; * format * fix tests * format * removed z_owned_closure_owned_query_t * fix: typos of attachment (#478) * added default encoding for publisher (#520) * add default enum constants (#521) * chore: replace log by tracing (#514) * chore: replace log by tracing * fix: update Cargo.toml.in * fix: remove useless dependencies * fix: fix Cargo.toml.in * add get is_express option (#522) * chore: Sync Rust toolchain * chore: Sync Rust toolchain * support for enable/disable unstable features via #define * fmt * Encoding alignment with Zenoh-rust (#523) * add z_encoding_set_schema functions (corresponding to zenoh-rust Encoding::with_schema); add predefined encoding constants; * docs update * clippy * fmt * fmt * add zc_config_from_env function (#527) * readme update to explain how to enable optional features * move SourceInfo, liveliness, KeyExpr::relation_to and zenoh-ext functionality under unstable feature * fix: Add step to run cargo build for docs Some auto generated files (e.g. include/zenoh_opaque.h) are platform specific so they are git ignored. They contain documentation that should be published as well, so this step makes sure all the files are in the checkout before publishing them to readthedocs.io * propagate options to cmake find_package (#531) * propagate options to cmake find_package * output feature variables * Pre release SHM * Fix SHM config key and examples * Revert Cargo.toml change * Fix examples * - do not trigger error if SHARED_MEMORY enabled without UNSTABLE - fix clippy - review fixes * remove redundant compile definitions (#534) * Address review comments * Add SHM config to z_sub_thr * remove redundant compile definitions (#534) * align with recent zenoh * unstable is not default * Fix z_pub_shm_thr. Fix shm API. * Adopt keyexpr tests for new behavior * Add check in z_pub_shm_thr * Add z_bytes_serialize_from_shm check in examples * Rename z_error_t to z_result_t * Rename errors.rs to result.rs * no longer use cpp, awk and sed for cbindgen output processing * typo fix * Address review comments * refactor features usage * fix docs * add SHM examples * build: Sync with eclipse-zenoh/zenoh@4827f39 from 2024-07-24 (#540) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * typo fix (how did that compile????) * Ensure that find_package(zenohc) can be called two times (#470) * Update CMakeLists.txt (#473) * Install zenohc.dll in <prefix>/bin on Windows (#471) * Fix shm doc * fix cbindgen in ptr to const ptr case * Align SHM examples * don't need this * build: Sync with eclipse-zenoh/zenoh@0c43c08 from 2024-07-25 (#547) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * Remove legacy slice methods * build: Sync with eclipse-zenoh/zenoh@32bdded from 2024-07-26 (#550) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * simplify tests and examples with attachment * address review comments * build: Sync with eclipse-zenoh/zenoh@502d3be from 2024-07-30 (#558) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * fix queryable examples to account for an empty payload * Update dependencies to have 1.80 build * Allow providing custom delete function when serializing from pointers (#554) * remove z_serialize_xxx_copy; z_serialize_from_slice now consumes z_owned_slice_t; z_serialize_from_str is renamed into z_serialize_from_string and is now consuming z_owned_string_t introduce z_serialize_from_buf/from_str allowing to consume raw pointers by taking custom delete function; * format * clippy * add support for creating string/slice with custom deleter; align serialization functions; * intorduce z_bytes_from_static_str and z_bytes_from_static_buf * rename slice/string constructors according to zenoh-pico review comments * build: Sync with eclipse-zenoh/zenoh@5d09cf7 from 2024-08-01 (#562) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build fix after cargo.lock update (#564) * - add z_byte_writer_write_all - z_byte_writer_write now has interface that intends that it can write not all * add doxygenfunction:: z_bytes_writer_write_all * change output parameter position * Rename `close` to `undeclare` for Publication Cache and Querying Subscriber * Temporarily use original pull request branch * Update to eclipse-zenoh/zenoh@ce4e9bf * Fix `z_ref_shm_client_storage_global` * Update Cargo.toml * leave only z_bytes_writer_write_all * Kick CI * Kick CI * log error messages when failing to manipulate the config (#563) * generate panic messages only if explicitly asked (#569) * generate panic messages only if explicitly asked * doc comments restored * remove unnecessary build artifacts (#571) * build: Sync with eclipse-zenoh/zenoh@b1e4dba from 2024-08-05 (#573) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@b7d42ef from 2024-08-06 (#574) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@2d5ab7c from 2024-08-06 (#575) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * z_recv/z_try_recv without the need of z_check (#570) * make z_recv/z_try_recv return z_result_t to allow differentiating between different cases without the need to call z_check on constructed object * format * Logging (#580) * renamed zc_init_logger -> zc_init_logging; added support for providing custom callbacks for logging messages; * format * clippy * add missing dependency * z_bytes_reader and z_bytes_writer update (#583) * made z_bytes_writer non-owned; added z_bytes_writer_append(...) and z_bytes_writer append_bounded(...) (aka writer.serialize()); added z_bytes_reader_read_bounded(...); * fix initializer * fix initializer * rename zc_publisher_matching_listener_callback -> zc_publisher_matching_listener_declare; (#581) added zc_publisher_get_matching_status; * docs: fix doxygen (#578) * chore: ignore docs/doxyxml * docs: update the README of doxygen * docs: fix the warnings * docs: remove the unnecessary step in macOS * chore: address the review comment * add valgrind memory leaks check (#584) * added pub sub test for memory leaks * added valgrind test * format * ci fix * ci fix * add queryable-get memory leaks test * do not copy memory leaks script * fixed memory leak in handlers * docs update * format * format * attempt to address ci no more space issue (#585) * attempt to address ci no more space issue * remove env settings * add CARGO_PROFILE_DEV_DEBUG=false * Move protection (#488) * macro generation * moved types added to decl * moved type drop * switched rust to z_moved * moved closures * build macros fixed * z_move name restored * into_rust_type for moved, payloads * tests updated * cargo fmt * moved structs in some drops/undeclares * moved as separate parameter * removed asref from moved * moved unfinished * moved type with into_rust_type trait, comiles without shm * build with shm passed * option added to some decl_c_type * clippy fix * build fix * moved types added * task moved used * some examples fixes * macros corrected to use auto derive loaned type from owned feature * optional comma allowed in macros where forgotten * property moved get * put options move * publisher delete options made simpler * put options with moved * delete options timestamp simplified * more moved in options, timestamp simplified * examples,tests updated * tests compile fixes * fix for test failure due to calling z_moved_xxx_t destructor on unitialized memory * cargo fmt imports * build fixes * some xompile errors fixed * some build errors fixed * some build errors fixed * build fixes * cargo fmt * into_rust_type usage fixes * encoding drop fixed * restored headers * zcu renamed back to zc * zcu renamed back to zc * z_xxx_move is static inline, cpp fixes * clang format from start * cargo fmt * macros contains funcions now, it needs types defined * removed zenoh_macros include * zenoh_macros include returned back to place * C++ build test added, fails for now * C++ enabling correction * C++ compilation for tests added * C++ build test * cargo lock update * retrun value if not void from template functions * cargo fmt * build fixes * build fix after cargo.lock update * moved types for buffer creation functions * clippy fix * clippy fix: c_char can be i8 or u8 depending on platform * headers restored * cargo fmt * -c c++ flag for clang only * c++ build fix - brackets removed * type specific take functions added, _ptr in moved * generic_take_cpp * z_take impls at the end * take funcs before generics * take moved after null * names fix * missing null functioj added * tests fixed for c++ * explicit null calls * fix generic parameter names c compilation * null call fix * misprint fixed * return removed * Rename `close` to `undeclare` for Publication Cache and Querying Subscriber * Temporarily use original pull request branch * Update to eclipse-zenoh/zenoh@ce4e9bf * Fix `z_ref_shm_client_storage_global` * Update Cargo.toml * build fixes * zc_ prefix for log function * zc_ prefix in example * regenerated files * cargo fmt * undeclare as drop * removed _undeclare parsing * missing drop/check funcs added. verification added to build.rs * cargo fmt * tests fix * test fix * cmake fix * null drop test same as in pico, take corrected --------- Co-authored-by: Mahmoud Mazouz <mazouz.mahmoud@outlook.com> Co-authored-by: Luca Cominardi <luca.cominardi@gmail.com> * fix: use `z_move` in shm examples (#589) * fix tests and examples for SHM (#592) * SHM is now enabled by default in the Config, so no need to set it explicitly in examples * build: Sync with eclipse-zenoh/zenoh@0e2f78a from 2024-08-14 (#596) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * update zenoh * fix clang * dropper autogeneration * dropper type * unfinished - into_rust_type approach failed * compiles * compile with all features * drop functions updated * "this" parameter name globally renamed to this_ to avoid using C++ keyword * compile fix * generic functions update * drop generic fix * clippy fix * cargo fmt * headers updated * cargo fmt fix * check in build.rs restored * fix: misuse the callback in z_info * chore: Bump version to `1.0.0.0` * chore: Bump libzenohc-dev version to `1.0.0~dev-1` * chore: Bump `/zenoh.*/` dependencies to `1.0.0-dev` * chore: Update Cargo.lock to `1.0.0-dev` * chore: Bump build-resources/opaque-types version to `1.0.0-dev` * merge main branch into dev/1.0.0 (after "moved_as_ptr" update) (#600) * fix: Rename `bump.bash` to `bump-and-tag.bash` * feat: Add `version.txt` and infer version in `bump-and-tag.bash` * fix: Clone repository using actions/checkout * fix: Add `CMakeFiles` to `.gitignore` * fix: Add `debug` and `release` to `.gitignore` * fix: Provide default release number for testing * fix: Don't bump deps when pattern is undefined * fix sizes of zcu_owned_matching_listener_t and z_owned_reply_t * build: Sync with eclipse-zenoh/zenoh@580f0b6 from 2024-04-11 (#330) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * fix: Specify git remote when pushing the tag * fix: Require `VERSION`in `bump-and-tag.bash` * fix: Override release tag if it already exists * feat(tracing): using tracing and zenoh-util init_log (#308) * feat(tracing): using tracing and zenoh-util init_log Signed-off-by: gabrik <gabriele.baldoni@gmail.com> * chore: adding Cargo.lock Signed-off-by: gabrik <gabriele.baldoni@gmail.com> * chore: updated Cargo.toml.in Signed-off-by: gabrik <gabriele.baldoni@gmail.com> * feat(tracing): using zenoh main branch Signed-off-by: gabrik <gabriele.baldoni@gmail.com> --------- Signed-off-by: gabrik <gabriele.baldoni@gmail.com> * build: Sync with eclipse-zenoh/zenoh@580f0b6 from 2024-04-11 (#335) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@23c5932 from 2024-04-16 (#337) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * fix: Support jq 1.6 ubuntu-22.04 runners use jq 1.6 which doesn't recognize a dot for `[]` value iterator. See: jqlang/jq#1168. * chore: using new try_init_log_from_env Signed-off-by: gabrik <gabriele.baldoni@gmail.com> * Align examples and remove reading from stdin (#255) * Remove reading from stdin, align example implementations * Add argument parsing implementation for examples * Add argument parsing to examples, format files * Replace getchar with sleep in z_pong example * Fix typo in include * Use null-pointers instead of empty strings, remove unnecessary mallocs * Free returned pointer after parse_pos_args usage * Add common and positional args parsing to z_ping example * Add formatting for parsed config options * Add const to function parameters * Update mode option help * Fix pos_args memory leak * Refactor parse_args, remove possible strcpy buffer overflow * Change parse_args function returns to const where applicable * Fix const initialization warning * Remove redundant const for value parameters * Fix buf variable memory leak * Update insert json-list config error message * Add usage example for -e and -l arguments in help * Update example notation in help message Co-authored-by: Alexander <sashacmc@gmail.com> * Update example notation in help message (2/2) * Fix parameter in error message Co-authored-by: Alexander <sashacmc@gmail.com> --------- Co-authored-by: Alexander <sashacmc@gmail.com> * Bugfix: Unable to build z_queryable_with_channels.c (#340) Signed-off-by: ChenYing Kuo <evshary@gmail.com> * build: Sync with eclipse-zenoh/zenoh@0283aaa from 2024-04-19 (#341) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@e8916bf from 2024-04-26 (#343) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * Update README and specify Rust version (#342) * Clean up the Markdown format. Signed-off-by: ChenYing Kuo <evshary@gmail.com> * Specify Rust version in README. Signed-off-by: ChenYing Kuo <evshary@gmail.com> --------- Signed-off-by: ChenYing Kuo <evshary@gmail.com> * build: Sync with eclipse-zenoh/zenoh@ea604b6 from 2024-04-29 (#344) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@371ca6b from 2024-04-30 (#347) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@7a47445 from 2024-05-03 (#348) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@f5195c0 from 2024-05-03 (#350) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@e53364f from 2024-05-04 (#351) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@7e5d5e8 from 2024-05-07 (#355) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@b8dd01d from 2024-05-07 (#356) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@45e05f0 from 2024-05-13 (#360) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * Fix build with CMAKE_BUILD_TYPE=None This is the default build type for debhelper (Debian). * build: Sync with eclipse-zenoh/zenoh@763a05f from 2024-05-14 (#363) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@75aa273 from 2024-05-15 (#364) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@25f06bd from 2024-05-21 (#369) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@3118d31 from 2024-05-28 (#399) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@009f666 from 2024-05-30 (#411) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@d574654 from 2024-06-03 (#420) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * chore: Update artifacts action to v4 (#421) artifacts actions v3 are deprecated * build: Sync with eclipse-zenoh/zenoh@c279982 from 2024-06-05 (#424) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@d8e66de from 2024-06-10 (#436) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@9d09742 from 2024-06-11 (#446) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@ed6c636 from 2024-06-12 (#450) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@8160b01 from 2024-06-13 (#457) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * Enable releasing from any branch (#456) * build: Sync with eclipse-zenoh/zenoh@7adad94 from 2024-06-14 (#460) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * Update to latest zenoh * Replace `-rc` with `-pre` and document versioning (#466) * build: Sync with eclipse-zenoh/zenoh@2500e5a from 2024-06-20 (#467) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * macro generation * moved types added to decl * moved type drop * switched rust to z_moved * moved closures * build macros fixed * z_move name restored * into_rust_type for moved, payloads * tests updated * cargo fmt * moved structs in some drops/undeclares * moved as separate parameter * removed asref from moved * moved unfinished * build: Sync with eclipse-zenoh/zenoh@869ace6 from 2024-07-02 (#494) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * moved type with into_rust_type trait, comiles without shm * build with shm passed * option added to some decl_c_type * clippy fix * build fix * moved types added * task moved used * build: Sync with eclipse-zenoh/zenoh@b93ca84 from 2024-07-03 (#500) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * some examples fixes * macros corrected to use auto derive loaned type from owned feature * optional comma allowed in macros where forgotten * property moved get * put options move * publisher delete options made simpler * put options with moved * delete options timestamp simplified * more moved in options, timestamp simplified * examples,tests updated * tests compile fixes * fix for test failure due to calling z_moved_xxx_t destructor on unitialized memory * cargo fmt imports * build fixes * build: Sync with eclipse-zenoh/zenoh@b3e42ce from 2024-07-08 (#508) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * Ensure that find_package(zenohc) can be called two times (#470) * Update CMakeLists.txt (#473) * Install zenohc.dll in <prefix>/bin on Windows (#471) * build: Sync with eclipse-zenoh/zenoh@0a969cb from 2024-07-25 (#546) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@e587aa9 from 2024-07-26 (#552) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * some xompile errors fixed * some build errors fixed * some build errors fixed * build fixes * cargo fmt * into_rust_type usage fixes * encoding drop fixed * restored headers * zcu renamed back to zc * zcu renamed back to zc * z_xxx_move is static inline, cpp fixes * build: Sync with eclipse-zenoh/zenoh@2d88c7b from 2024-07-29 (#556) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * clang format from start * cargo fmt * macros contains funcions now, it needs types defined * removed zenoh_macros include * zenoh_macros include returned back to place * C++ build test added, fails for now * C++ enabling correction * C++ compilation for tests added * C++ build test * cargo lock update * retrun value if not void from template functions * cargo fmt * build fixes * build fix after cargo.lock update * moved types for buffer creation functions * clippy fix * clippy fix: c_char can be i8 or u8 depending on platform * headers restored * cargo fmt * -c c++ flag for clang only * c++ build fix - brackets removed * type specific take functions added, _ptr in moved * generic_take_cpp * z_take impls at the end * take funcs before generics * take moved after null * names fix * missing null functioj added * tests fixed for c++ * explicit null calls * fix generic parameter names c compilation * null call fix * misprint fixed * return removed * Rename `close` to `undeclare` for Publication Cache and Querying Subscriber * Temporarily use original pull request branch * Update to eclipse-zenoh/zenoh@ce4e9bf * Fix `z_ref_shm_client_storage_global` * Update Cargo.toml * decl_c_type corrected * cargo check run * borrow error fix * compilation fix * parse arg fix * example compilation fix * examples compile fix * examples build fixes * removed duplicated z_config_default (it's called in parsing args later) * clang format * clang format * cargo.toml restore --------- Signed-off-by: gabrik <gabriele.baldoni@gmail.com> Signed-off-by: ChenYing Kuo <evshary@gmail.com> Co-authored-by: Mahmoud Mazouz <mazouz.mahmoud@outlook.com> Co-authored-by: Denis Biryukov <denis.biryukov@zettascale.tech> Co-authored-by: eclipse-zenoh-bot <61247838+eclipse-zenoh-bot@users.noreply.github.com> Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> Co-authored-by: Mahmoud Mazouz <hello@fuzzypixelz.com> Co-authored-by: Gabriele Baldoni <gabrik@users.noreply.github.com> Co-authored-by: gabrik <gabriele.baldoni@gmail.com> Co-authored-by: oteffahi <70609372+oteffahi@users.noreply.github.com> Co-authored-by: Alexander <sashacmc@gmail.com> Co-authored-by: ChenYing Kuo (CY) <evshary@gmail.com> Co-authored-by: Jochen Sprickerhof <git@jochen.sprickerhof.de> Co-authored-by: Diogo Matsubara <diogo.matsubara@pm.me> Co-authored-by: OlivierHecart <olivier.hecart@adlinktech.com> Co-authored-by: Silvio Traversaro <silvio@traversaro.it> Co-authored-by: Luca Cominardi <luca.cominardi@gmail.com> * `z_check` and `z_null` made internal (#605) * fix: Rename `bump.bash` to `bump-and-tag.bash` * feat: Add `version.txt` and infer version in `bump-and-tag.bash` * fix: Clone repository using actions/checkout * fix: Add `CMakeFiles` to `.gitignore` * fix: Add `debug` and `release` to `.gitignore` * fix: Provide default release number for testing * fix: Don't bump deps when pattern is undefined * fix sizes of zcu_owned_matching_listener_t and z_owned_reply_t * build: Sync with eclipse-zenoh/zenoh@580f0b6 from 2024-04-11 (#330) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * fix: Specify git remote when pushing the tag * fix: Require `VERSION`in `bump-and-tag.bash` * fix: Override release tag if it already exists * feat(tracing): using tracing and zenoh-util init_log (#308) * feat(tracing): using tracing and zenoh-util init_log Signed-off-by: gabrik <gabriele.baldoni@gmail.com> * chore: adding Cargo.lock Signed-off-by: gabrik <gabriele.baldoni@gmail.com> * chore: updated Cargo.toml.in Signed-off-by: gabrik <gabriele.baldoni@gmail.com> * feat(tracing): using zenoh main branch Signed-off-by: gabrik <gabriele.baldoni@gmail.com> --------- Signed-off-by: gabrik <gabriele.baldoni@gmail.com> * build: Sync with eclipse-zenoh/zenoh@580f0b6 from 2024-04-11 (#335) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@23c5932 from 2024-04-16 (#337) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * fix: Support jq 1.6 ubuntu-22.04 runners use jq 1.6 which doesn't recognize a dot for `[]` value iterator. See: jqlang/jq#1168. * chore: using new try_init_log_from_env Signed-off-by: gabrik <gabriele.baldoni@gmail.com> * Align examples and remove reading from stdin (#255) * Remove reading from stdin, align example implementations * Add argument parsing implementation for examples * Add argument parsing to examples, format files * Replace getchar with sleep in z_pong example * Fix typo in include * Use null-pointers instead of empty strings, remove unnecessary mallocs * Free returned pointer after parse_pos_args usage * Add common and positional args parsing to z_ping example * Add formatting for parsed config options * Add const to function parameters * Update mode option help * Fix pos_args memory leak * Refactor parse_args, remove possible strcpy buffer overflow * Change parse_args function returns to const where applicable * Fix const initialization warning * Remove redundant const for value parameters * Fix buf variable memory leak * Update insert json-list config error message * Add usage example for -e and -l arguments in help * Update example notation in help message Co-authored-by: Alexander <sashacmc@gmail.com> * Update example notation in help message (2/2) * Fix parameter in error message Co-authored-by: Alexander <sashacmc@gmail.com> --------- Co-authored-by: Alexander <sashacmc@gmail.com> * Bugfix: Unable to build z_queryable_with_channels.c (#340) Signed-off-by: ChenYing Kuo <evshary@gmail.com> * build: Sync with eclipse-zenoh/zenoh@0283aaa from 2024-04-19 (#341) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@e8916bf from 2024-04-26 (#343) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * Update README and specify Rust version (#342) * Clean up the Markdown format. Signed-off-by: ChenYing Kuo <evshary@gmail.com> * Specify Rust version in README. Signed-off-by: ChenYing Kuo <evshary@gmail.com> --------- Signed-off-by: ChenYing Kuo <evshary@gmail.com> * build: Sync with eclipse-zenoh/zenoh@ea604b6 from 2024-04-29 (#344) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@371ca6b from 2024-04-30 (#347) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@7a47445 from 2024-05-03 (#348) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@f5195c0 from 2024-05-03 (#350) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@e53364f from 2024-05-04 (#351) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@7e5d5e8 from 2024-05-07 (#355) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@b8dd01d from 2024-05-07 (#356) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@45e05f0 from 2024-05-13 (#360) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * Fix build with CMAKE_BUILD_TYPE=None This is the default build type for debhelper (Debian). * build: Sync with eclipse-zenoh/zenoh@763a05f from 2024-05-14 (#363) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@75aa273 from 2024-05-15 (#364) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@25f06bd from 2024-05-21 (#369) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@3118d31 from 2024-05-28 (#399) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@009f666 from 2024-05-30 (#411) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@d574654 from 2024-06-03 (#420) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * chore: Update artifacts action to v4 (#421) artifacts actions v3 are deprecated * build: Sync with eclipse-zenoh/zenoh@c279982 from 2024-06-05 (#424) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@d8e66de from 2024-06-10 (#436) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@9d09742 from 2024-06-11 (#446) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@ed6c636 from 2024-06-12 (#450) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@8160b01 from 2024-06-13 (#457) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * Enable releasing from any branch (#456) * build: Sync with eclipse-zenoh/zenoh@7adad94 from 2024-06-14 (#460) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * Update to latest zenoh * Replace `-rc` with `-pre` and document versioning (#466) * build: Sync with eclipse-zenoh/zenoh@2500e5a from 2024-06-20 (#467) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * macro generation * moved types added to decl * moved type drop * switched rust to z_moved * moved closures * build macros fixed * z_move name restored * into_rust_type for moved, payloads * tests updated * cargo fmt * moved structs in some drops/undeclares * moved as separate parameter * removed asref from moved * moved unfinished * build: Sync with eclipse-zenoh/zenoh@869ace6 from 2024-07-02 (#494) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * moved type with into_rust_type trait, comiles without shm * build with shm passed * option added to some decl_c_type * clippy fix * build fix * moved types added * task moved used * build: Sync with eclipse-zenoh/zenoh@b93ca84 from 2024-07-03 (#500) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * some examples fixes * macros corrected to use auto derive loaned type from owned feature * optional comma allowed in macros where forgotten * property moved get * put options move * publisher delete options made simpler * put options with moved * delete options timestamp simplified * more moved in options, timestamp simplified * examples,tests updated * tests compile fixes * fix for test failure due to calling z_moved_xxx_t destructor on unitialized memory * cargo fmt imports * build fixes * build: Sync with eclipse-zenoh/zenoh@b3e42ce from 2024-07-08 (#508) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * Ensure that find_package(zenohc) can be called two times (#470) * Update CMakeLists.txt (#473) * Install zenohc.dll in <prefix>/bin on Windows (#471) * build: Sync with eclipse-zenoh/zenoh@0a969cb from 2024-07-25 (#546) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * build: Sync with eclipse-zenoh/zenoh@e587aa9 from 2024-07-26 (#552) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * some xompile errors fixed * some build errors fixed * some build errors fixed * build fixes * cargo fmt * into_rust_type usage fixes * encoding drop fixed * restored headers * zcu renamed back to zc * zcu renamed back to zc * z_xxx_move is static inline, cpp fixes * build: Sync with eclipse-zenoh/zenoh@2d88c7b from 2024-07-29 (#556) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * clang format from start * cargo fmt * macros contains funcions now, it needs types defined * removed zenoh_macros include * zenoh_macros include returned back to place * C++ build test added, fails for now * C++ enabling correction * C++ compilation for tests added * C++ build test * cargo lock update * retrun value if not void from template functions * cargo fmt * build fixes * build fix after cargo.lock update * moved types for buffer creation functions * clippy fix * clippy fix: c_char can be i8 or u8 depending on platform * headers restored * cargo fmt * -c c++ flag for clang only * c++ build fix - brackets removed * type specific take functions added, _ptr in moved * generic_take_cpp * z_take impls at the end * take funcs before generics * take moved after null * names fix * missing null functioj added * tests fixed for c++ * explicit null calls * fix generic parameter names c compilation * null call fix * misprint fixed * return removed * Rename `close` to `undeclare` for Publication Cache and Querying Subscriber * Temporarily use original pull request branch * Update to eclipse-zenoh/zenoh@ce4e9bf * Fix `z_ref_shm_client_storage_global` * Update Cargo.toml * decl_c_type corrected * cargo check run * borrow error fix * compilation fix * parse arg fix * example compilation fix * examples compile fix * examples build fixes * removed duplicated z_config_default (it's called in parsing args later) * clang format * clang format * cargo.toml restore * added underscore to _z_null and _z_check * missing functions updated * rename to z_internal_null/check * clang format fix * restored headers, corrected cargo.toml --------- Signed-off-by: gabrik <gabriele.baldoni@gmail.com> Signed-off-by: ChenYing Kuo <evshary@gmail.com> Co-authored-by: Mahmoud Mazouz <mazouz.mahmoud@outlook.com> Co-authored-by: Denis Biryukov <denis.biryukov@zettascale.tech> Co-authored-by: eclipse-zenoh-bot <61247838+eclipse-zenoh-bot@users.noreply.github.com> Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> Co-authored-by: Mahmoud Mazouz <hello@fuzzypixelz.com> Co-authored-by: Gabriele Baldoni <gabrik@users.noreply.github.com> Co-authored-by: gabrik <gabriele.baldoni@gmail.com> Co-authored-by: oteffahi <70609372+oteffahi@users.noreply.github.com> Co-authored-by: Alexander <sashacmc@gmail.com> Co-authored-by: ChenYing Kuo (CY) <evshary@gmail.com> Co-authored-by: Jochen Sprickerhof <git@jochen.sprickerhof.de> Co-authored-by: Diogo Matsubara <diogo.matsubara@pm.me> Co-authored-by: OlivierHecart <olivier.hecart@adlinktech.com> Co-authored-by: Silvio Traversaro <silvio@traversaro.it> Co-authored-by: Luca Cominardi <luca.cominardi@gmail.com> * made reliability option unstable (#612) * Update api.rst (#613) * Adopt SHM for recent API changes (#615) * Ensure build directory contains a copy of rust-toolchain.toml. When building using cargo's --manifest-path option the toolchain configuration file within the manifest directory is ignored. Ensuring a copy of the rust-toolchain.toml file is in the build directory ensures the toolchain settings are pciked up when building via cmake. * Shm ci (#593) * fix tests and examples for SHM * Add feature tests in CI * Adopt SHM for recent API changes * Update ci.yml and CMakeLists.txt * fix build for windows * build in separate directory failure fix (#617) * test for build in separate directory * builds dir from ci variable * using CI_PROJECT_DIR variable * relarive build examples * updated "time" version, suppressed "unused trait" warnings * build: Sync with eclipse-zenoh/zenoh@8b027e9 from 2024-08-22 (#619) Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> * cargo.lock update * fix: properly apply `z_get_options_t` in `ze_querying_subscriber_get` (#621) * Revert "Merge dev1.0.0 into main" * merging error fix * build: Sync Cargo lockfile with Zenoh's --------- Signed-off-by: ChenYing Kuo <evshary@gmail.com> Signed-off-by: gabrik <gabriele.baldoni@gmail.com> Co-authored-by: Alexander Bushnev <Alexander@Bushnev.pro> Co-authored-by: yellowhatter <bannov.dy@gmail.com> Co-authored-by: Michael Ilyin <milyin@gmail.com> Co-authored-by: Denis Biryukov <denis.biryukov@zettascale.tech> Co-authored-by: eclipse-zenoh-bot <eclipse-zenoh-bot@users.noreply.github.com> Co-authored-by: yellowhatter <104833606+yellowhatter@users.noreply.github.com> Co-authored-by: Jochen Sprickerhof <git@jochen.sprickerhof.de> Co-authored-by: Diogo Matsubara <diogo.matsubara@pm.me> Co-authored-by: Mahmoud Mazouz <mazouz.mahmoud@outlook.com> Co-authored-by: ChenYing Kuo (CY) <evshary@gmail.com> Co-authored-by: Luca Cominardi <luca.cominardi@gmail.com> Co-authored-by: DenisBiryukov91 <155981813+DenisBiryukov91@users.noreply.github.com> Co-authored-by: Joseph Perez <joperez@hotmail.fr> Co-authored-by: Mahmoud Mazouz <hello@fuzzypixelz.com> Co-authored-by: Yuyuan Yuan <az6980522@gmail.com> Co-authored-by: Diogo Mendes Matsubara <diogo.matsubara@zettascale.tech> Co-authored-by: Silvio Traversaro <silvio@traversaro.it> Co-authored-by: Gabriele Baldoni <gabrik@users.noreply.github.com> Co-authored-by: gabrik <gabriele.baldoni@gmail.com> Co-authored-by: oteffahi <70609372+oteffahi@users.noreply.github.com> Co-authored-by: Alexander <sashacmc@gmail.com> Co-authored-by: OlivierHecart <olivier.hecart@adlinktech.com> Co-authored-by: Geoff Martin <geoff.martin@zettascale.tech>
mcint@work MINGW64 /c/git
The document
The complex key
One naive approach
Solution proposed by the docs
Work-around
Boundaries of quoted key solution
The text was updated successfully, but these errors were encountered: