Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions score/mw/com/impl/rust/com-api/com-api-concept/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ rust_library(
"lib.rs",
"reloc.rs",
],
edition = "2024",
proc_macro_deps = [
"//score/mw/com/impl/rust/com-api/com-api-concept-macros",
"@score_communication_crate_index//:paste",
Expand All @@ -38,6 +39,7 @@ rust_library(
rust_test(
name = "com-api-concept-test",
crate = ":com-api-concept",
edition = "2024",
tags = ["manual"],
deps = [":com-api-concept"],
)
Expand Down
2 changes: 2 additions & 0 deletions score/mw/com/impl/rust/com-api/com-api-concept/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ pub enum EventFailedReason {
SendingDataFailed,
#[error("Event not available for subscription, possibly due to missing event type or incompatible service")]
EventNotAvailable,
#[error("Sample count out of bounds, expected at most {max}, but got {requested}")]
MaxSampleOutOfBounds { max: usize, requested: usize },
}

/// Error enumeration for different failure cases in the Consumer/Producer/Runtime APIs.
Expand Down
26 changes: 26 additions & 0 deletions score/mw/com/impl/rust/com-api/com-api-ffi-lola/BUILD
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please enable Rust 2024 edition for all targets.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added ffi BUILD as well as another COM-API lib related target also.

Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ cc_library(
rust_library(
name = "bridge_ffi_rs",
srcs = ["bridge_ffi.rs"],
edition = "2024",
visibility = [
"//score/mw/com:__subpackages__",
],
Expand All @@ -44,3 +45,28 @@ rust_library(
"//score/mw/com/impl/rust:mw_com",
],
)

rust_library(
name = "bridge_ffi_mock",
srcs = ["bridge_ffi_mock.rs"],
edition = "2024",
visibility = [
"//score/mw/com:__subpackages__",
],
deps = [
":bridge_ffi_rs",
"//score/mw/com/impl/plumbing/rust:sample_allocatee_ptr_rs",
],
)

rust_library(
name = "bridge_ffi_lola",
srcs = ["bridge_ffi_lola.rs"],
edition = "2024",
visibility = [
"//score/mw/com:__subpackages__",
],
deps = [
":bridge_ffi_rs",
],
)
Loading
Loading