Skip to content

Commit cb01513

Browse files
bumped up-rust to 0.5.0, fixed example service, a typo (eclipse-uprotocol#41)
1 parent edee6a1 commit cb01513

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ regex = { version = "1.10" }
5151
serde = { version = "1.0", features = ["derive"] }
5252
serde_json = { version = "1.0" }
5353
tokio = { version = "1.35.1", features = ["rt", "rt-multi-thread", "macros", "sync", "time", "tracing"] }
54-
up-rust = { version = "0.3.0" }
54+
up-rust = { version = "0.5.0" }
5555
vsomeip-proc-macro = { version = "0.4.0", path = "vsomeip-proc-macro" }
5656
vsomeip-sys = { version = "0.4.0", path = "vsomeip-sys", default-features = false }
57-

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This library implements a uTransport client for vsomeip in Rust following the uP
1111
To build the library, setup the environment
1212

1313
``` bash
14-
source build/env_setup.sh
14+
source build/envsetup.sh
1515
```
1616

1717
then run:

up-transport-vsomeip/examples/hello_service.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use up_rust::communication::{
2222
InMemoryRpcServer, RequestHandler, RpcServer, ServiceInvocationError, UPayload,
2323
};
2424
use up_rust::UPayloadFormat::UPAYLOAD_FORMAT_PROTOBUF_WRAPPED_IN_ANY;
25-
use up_rust::{UCode, UStatus, UUri};
25+
use up_rust::{UAttributes, UCode, UStatus, UUri};
2626
use up_transport_vsomeip::UPTransportVsomeip;
2727

2828
const HELLO_SERVICE_ID: u16 = 0x6000;
@@ -57,6 +57,7 @@ impl RequestHandler for ServiceRequestHandler {
5757
async fn handle_request(
5858
&self,
5959
resource_id: u16,
60+
_uattributes: &UAttributes,
6061
request_payload: Option<UPayload>,
6162
) -> Result<Option<UPayload>, ServiceInvocationError> {
6263
println!("ServiceRequestHandler: Received a resource_id: {resource_id} request_payload: {request_payload:?}");

0 commit comments

Comments
 (0)