Skip to content

Commit

Permalink
[eclipse-iceoryx#497] Introduce iceoryx2-fal, the framework abstracti…
Browse files Browse the repository at this point in the history
…on layer
  • Loading branch information
elfenpiff committed Nov 12, 2024
1 parent 6a6ba87 commit 2ef0b36
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ members = [
"iceoryx2-ffi/ffi-macros",

"iceoryx2-cal",
"iceoryx2-fal",
"iceoryx2",
"iceoryx2-pal/concurrency-sync",
"iceoryx2-pal/posix/",
Expand Down Expand Up @@ -60,6 +61,7 @@ iceoryx2-pal-posix = { version = "0.4.1", path = "iceoryx2-pal/posix/" }
iceoryx2-pal-configuration = { version = "0.4.1", path = "iceoryx2-pal/configuration/" }

iceoryx2-cal = { version = "0.4.1", path = "iceoryx2-cal" }
iceoryx2-fal = { version = "0.4.1", path = "iceoryx2-fal" }

iceoryx2-ffi = { version = "0.4.1", path = "iceoryx2-ffi/ffi" }
iceoryx2-ffi-macros = { version = "0.4.1", path = "iceoryx2-ffi/ffi-macros" }
Expand Down
13 changes: 13 additions & 0 deletions iceoryx2-fal/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[package]
name = "iceoryx2-fal"
description = "iceoryx2: framework abstraction layer, public API if iceoryx2 shall be integrated in other communication frameworks"
categories = { workspace = true }
edition = { workspace = true }
homepage = { workspace = true }
keywords = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
rust-version = { workspace = true }
version = { workspace = true }

[dependencies]
14 changes: 14 additions & 0 deletions iceoryx2-fal/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pub fn add(left: u64, right: u64) -> u64 {
left + right
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}
1 change: 1 addition & 0 deletions internal/scripts/crates_io_publish_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ cargo publish -p iceoryx2-bb-threadsafe
cargo publish -p iceoryx2-bb-memory
cargo publish -p iceoryx2-cal
cargo publish -p iceoryx2-bb-trait-tests
cargo publish -p iceoryx2-fal
cargo publish -p iceoryx2
cargo publish -p iceoryx2-ffi-macros
cargo publish -p iceoryx2-ffi
Expand Down

0 comments on commit 2ef0b36

Please sign in to comment.