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

Align to v1.6.0-alpha.3 spec #26

Merged

Conversation

PLeVasseur
Copy link
Contributor

@PLeVasseur PLeVasseur commented Jul 18, 2024

  • Update to up-rust crates.io release
  • Update up-linux-streamer and up-linux-streamer-plugin
  • Update examples
  • Update to match Zenoh 1.0.0-alpha.6 API
    • Zenoh Config ListenConfig based on alpha.6 API
    • Add Zenoh plugins feature as it's now behind a feature flag
  • Update UPTransportZenoh uses since it takes a "uri" instead of a UUri
  • Made ustreamer_uuri configurable from config file

Implements [#25]

TODO:

@PLeVasseur PLeVasseur added the enhancement New feature or request label Jul 18, 2024
@PLeVasseur PLeVasseur added this to the v1.6.0-alpha.3 milestone Jul 18, 2024
@PLeVasseur PLeVasseur self-assigned this Jul 18, 2024
@PLeVasseur PLeVasseur linked an issue Aug 14, 2024 that may be closed by this pull request
* Update to up-rust crates.io release
* Update up-linux-streamer and up-linux-streamer-plugin
* Update examples
* Update to match Zenoh 1.0.0-alpha.6 API
  * Zenoh Config ListenConfig based on alpha.6 API
  * Add Zenoh plugins feature as it's now behind a feature flag
* Update UPTransportZenoh uses since it takes a "uri" instead of a UUri
* Made ustreamer_uuri configurable from config file

Implements [#25]
@PLeVasseur PLeVasseur force-pushed the feature/up-to-crates.io-up-rust branch from 39ddd8a to fcb39e1 Compare August 16, 2024 22:06
@PLeVasseur PLeVasseur changed the title Update to up-rust crates.io release Align to v1.6.0-alpha.3 spec Aug 16, 2024
@PLeVasseur PLeVasseur marked this pull request as ready for review August 16, 2024 22:17
@PLeVasseur PLeVasseur requested review from dmacattack, sophokles73 and evshary and removed request for dmacattack August 16, 2024 22:17

// Add the IPv4 endpoint to the Zenoh configuration
zenoh_config
.listen
.endpoints
.push(ipv4_endpoint.expect("FAIL"));
.set_endpoints(zenoh::config::ModeDependentValue::Unique(vec![

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a mouthful

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, maybe should import the enum to shorten the line.

Copy link

@evshary evshary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


trace!("streamer_uuri: {streamer_uuri:#?}");
let streamer_uri: String = (&streamer_uuri).into();
// TODO: Remove this once the error reporting from UPTransportZenoh no longer "hides"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got your point here.

Copy link

@sophokles73 sophokles73 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

authority: "linux",
// Determines the ue_id of the streamer
// Used when initializing host transport
ue_id: 78,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since you are using json5, you might also want to write this as a hex number (as we do all across the Rust code) ...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point

authority: "linux",
// Determines the ue_id of the streamer
// Used when initializing host transport
ue_id: 78,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see previous commment

if let Some(first_msg) = group.first() {
let mut prev_msb = first_msg.attributes.as_ref().unwrap().id.msb;
let mut prev_timestamp = first_msg.attributes.as_ref().unwrap().id.msb >> 16;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, I should use this. Will do in follow-up

@PLeVasseur PLeVasseur merged commit 96179d1 into eclipse-uprotocol:main Aug 19, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update to crates.io released up-rust
4 participants