vsomeip-proc-macro

Crates.iovsomeip-proc-macro
lib.rsvsomeip-proc-macro
version0.4.1
created_at2025-01-21 05:34:53.178923+00
updated_at2025-01-23 14:52:24.508393+00
descriptionUseful proc macros for generating necessary extern 'C' fns for use with vsomeip.
homepage
repositoryhttps://github.com/eclipse-uprotocol/up-transport-vsomeip-rust
max_upload_size
id1524584
size17,022
Pete LeVasseur (PLeVasseur)

documentation

https://github.com/eclipse-uprotocol/up-spec#readme

README

Eclipse uProtocol Rust vsomeip Client

Overview

This library implements a uTransport client for vsomeip in Rust following the uProtocol uTransport Specifications.

Getting Started

Building the Library

To build the library, setup the environment

source build/env_setup.sh

then run:

VSOMEIP_INSTALL_PATH=<path/to/where/to/install/vsomeip> cargo build

in the project root directory.

See vsomeip-sys/README.md for more details on options.

This library leverages the up-rust library for data types and models specified by uProtocol.

Running the Tests

To run the tests, run

 VSOMEIP_INSTALL_PATH= <path/to/vsomeip/install> LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<path/to/vsomeip/install>/lib cargo test -- --test-threads 1

Breaking this down:

  • Details about the environment variables can be found in vsomeip-sys/README.md. Please reference there for further detail.
  • We need to pass in -- --test-threads 1 because the tests refer to the same configurations and will fall over if they are run simultaneously. So we instruct to use a single thread, i.e. run the tests in serial.

Using the Library

The library contains the following modules:

Package uProtocol spec Purpose
transport uP-L1 Specifications Implementation of vsomeip uTransport client used for bidirectional point-2-point communication between uEs.
Commit count: 28

cargo fmt