Skip to content
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

Update uprotocol 1.5.6 #4

Closed

Conversation

evshary
Copy link
Contributor

@evshary evshary commented Feb 19, 2024

Update the up-client-zenoh-rust based on the PR
eclipse-uprotocol/up-rust#28

Signed-off-by: ChenYing Kuo <evshary@gmail.com>
Signed-off-by: ChenYing Kuo <evshary@gmail.com>
The PR of necessary features are all merged.
It's good to move to the official crates now.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>
Signed-off-by: ChenYing Kuo <evshary@gmail.com>
Signed-off-by: ChenYing Kuo <evshary@gmail.com>
Signed-off-by: ChenYing Kuo <evshary@gmail.com>
Signed-off-by: ChenYing Kuo <evshary@gmail.com>
@evshary
Copy link
Contributor Author

evshary commented Feb 19, 2024

Sorry I had the wrong target branch...

@evshary evshary closed this Feb 19, 2024
stevenhartley pushed a commit that referenced this pull request Feb 29, 2024
* Port the code from https://github.com/ZettaScaleLabs/uprotocol-rust-ulink-zenoh

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Update the link and the package name.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Use built-in way to transform UUID to String.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Fix the dependencies to the official crates

The PR of necessary features are all merged.
It's good to move to the official crates now.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Rename uLink to UPClient.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Update the README.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Remove unnecessary mutex since UPClientZenoh has Send + Sync.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Update up-client-zenoh-rust based on uprotocol 1.5.6 (#1)

* Update the package name for up-rust.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Able to compile the library.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Able to run pub/sub integration_test.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Update Cargo.toml.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Able to build the examples.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Update the transformation between uAttributes and Attachment.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Clean up the code

1. Remove unwrap()
2. Add log

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Fix RPC issue.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Move some functions into UPClientZenoh structure.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Update the crates.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

---------

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Update uAttributes & refactor the code (#2)

* Send the whole uAttributes instead of splitting it.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Split lib.rs into different files for better reading.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Fix the failure of the subscriber.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

---------

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Redesign utransport (#3)

* Update the way to transform UUri into Zenoh key.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Support request in uTransport.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Reorganize the code structure.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Fix clippy issue.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* initial version of uTransport.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Able to unregister the listener.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Register/unregister rpc_listener will call listener

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

---------

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Bugfix: UUri issue (#4)

* Should use UUri source to save reponse callback.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Able to register multiple listener for special UUri.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Support the special UUri for to_zenoh_key_string()

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Update the register & unregister logic.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Add the special UUri for to_zenoh_key_string()

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

---------

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Use uattr instead of attr.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Able to register response callback in register_listener (#5)

* Support register response callback in register_listener for special UUri.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Update uAttributes in invoke_method

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

---------

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Add tests for using up-l1 API (#6)

* Update test_rpc_server_client.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Support special_uri test for register_listener

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Update the comment.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

---------

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Update based on spec (#7)

* Update the transformation of UUri.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Update the way to put uAttributes into user atttachment.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Fix some clippy issues

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

---------

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* Remove the unused code and allow empty uPayload.

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

---------

Signed-off-by: ChenYing Kuo <evshary@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant