Skip to content

Commit

Permalink
[eclipse-uprotocol#54] Update to latest available Zenoh and vsomeip t…
Browse files Browse the repository at this point in the history
…ransports.

Main content:

* Convert up-streamer from async-std to tokio
* Update tests to tokio from async-std
* Ensure examples work again:
  * me_service <-> ue_client
  * ue_service <-> me_client
  * ue_publisher -> me_subscriber
  * me_publisher -> ue_subscriber

Useful improvements:

* Remove 'unstable' and 'internal' features of Zenoh now that no longer needed.
* Modify build to allow optionally building with Zenoh and/or vsomeip. If building with both, reference streamers that use them both are then built.
* Move optional dependecies' version declaration into workspace Cargo.toml, flag as optional in each package.

Implements #11
Implements #29
Implements eclipse-uprotocol#53
  • Loading branch information
PLeVasseur committed Nov 14, 2024
1 parent 4c233b7 commit 556fc9f
Show file tree
Hide file tree
Showing 28 changed files with 915 additions and 922 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/bundled-lint-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,21 @@ jobs:
rustup show
rustup component add rustfmt clippy
- name: Build the project
- name: Build the project without Zenoh & vsomeip transports
working-directory: ${{github.workspace}}
run: cargo build
- name: cargo clippy without Zenoh & vsomeip transports
working-directory: ${{github.workspace}}
run: cargo clippy --all-targets -- -W warnings -D warnings
- name: Build the project with Zenoh & vsomeip transports (and thus streamer references)
working-directory: ${{github.workspace}}
run: cargo build --features vsomeip-transport,bundled-vsomeip,zenoh-transport
- name: cargo clippy with Zenoh & vsomeip transports (and thus streamer references)
working-directory: ${{github.workspace}}
run: cargo clippy --features vsomeip-transport,bundled-vsomeip,zenoh-transport --all-targets -- -W warnings -D warnings
- name: cargo fmt
working-directory: ${{github.workspace}}
run: cargo fmt -- --check
- name: cargo clippy
working-directory: ${{github.workspace}}
run: cargo clippy --all-targets -- -W warnings -D warnings

test:
name: Test
Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/unbundled-lint-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,21 @@ jobs:
rustup show
rustup component add rustfmt clippy
- name: Build the project
- name: Build the project without Zenoh & vsomeip transports
working-directory: ${{github.workspace}}
run: cargo build --no-default-features
run: cargo build
- name: cargo clippy without Zenoh & vsomeip transports
working-directory: ${{github.workspace}}
run: cargo clippy --all-targets -- -W warnings -D warnings
- name: Build the project with Zenoh & vsomeip transports (and thus streamer references)
working-directory: ${{github.workspace}}
run: cargo build --features vsomeip-transport,zenoh-transport
- name: cargo clippy with Zenoh & vsomeip transports (and thus streamer references)
working-directory: ${{github.workspace}}
run: cargo clippy --features vsomeip-transport,zenoh-transport --all-targets -- -W warnings -D warnings
- name: cargo fmt
working-directory: ${{github.workspace}}
run: cargo fmt -- --check
- name: cargo clippy
working-directory: ${{github.workspace}}
run: cargo clippy --no-default-features --all-targets -- -W warnings -D warnings

test:
name: Test
Expand Down
Loading

0 comments on commit 556fc9f

Please sign in to comment.