Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample/Payload api rework #315

Merged
merged 33 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
a52ef72
introduce owned buffers
p-avital Feb 26, 2024
8dbbf37
privatize sample
p-avital Feb 26, 2024
3551d38
add support for owned samples
p-avital Feb 29, 2024
7148d5b
document the owned sample type itself
p-avital Feb 29, 2024
9c9f1ac
fix macro usages
p-avital Feb 29, 2024
3eb7236
fix auto-generated zenohcd
p-avital Mar 1, 2024
769d824
introduce split buffers in zenoh-c
p-avital Mar 5, 2024
1b09b30
address pr comments
p-avital Mar 8, 2024
faad2df
chore: Sync Cargo lockfile with Zenoh's
eclipse-zenoh-bot Mar 28, 2024
5b47216
Merge pull request #302 from eclipse-zenoh/eclipse-zenoh-bot/sync-loc…
eclipse-zenoh-bot Mar 28, 2024
de1f606
make impl_guarded_transmute automatically implement From, Deref and D…
DenisBiryukov91 Mar 28, 2024
5e5333f
fmt
DenisBiryukov91 Mar 28, 2024
4d1816b
merge
DenisBiryukov91 Mar 28, 2024
42823ed
Merge pull request #303 from DenisBiryukov91/qol/guarded_transmute_wi…
milyin Mar 28, 2024
a2cfa7f
merge
DenisBiryukov91 Mar 28, 2024
dbc8877
removed cargo channel parameter by default (#301)
milyin Mar 28, 2024
c1498fc
chore: Sync Cargo lockfile with Zenoh's (#307)
eclipse-zenoh-bot Apr 3, 2024
206983e
put and get with owned payload
DenisBiryukov91 Apr 3, 2024
ed3a164
reply with owned payload
DenisBiryukov91 Apr 3, 2024
6d005bb
modified payload decoding functions to return error and take value by…
DenisBiryukov91 Apr 4, 2024
b957f98
generate opaque types data inside build.rs instead of cmake
DenisBiryukov91 Apr 5, 2024
f73599f
.gitignore update
DenisBiryukov91 Apr 5, 2024
a3cc34a
extract build.rs instad of current folder to allow build outside of c…
DenisBiryukov91 Apr 5, 2024
142b752
remove println!
DenisBiryukov91 Apr 5, 2024
4932ddf
move Payload/zBuf-related functionality into separate file
DenisBiryukov91 Apr 5, 2024
90f2578
replace unsafe transmutes with safe ones
DenisBiryukov91 Apr 5, 2024
32ac0af
add payload reader
DenisBiryukov91 Apr 8, 2024
e7e657f
merge
DenisBiryukov91 Apr 8, 2024
f1cdeda
fmt and clippy
DenisBiryukov91 Apr 8, 2024
e2df814
make all references to z_buffer_t private
DenisBiryukov91 Apr 8, 2024
05401fe
remove reference to z_buffer_t
DenisBiryukov91 Apr 8, 2024
7a94a55
fmt
DenisBiryukov91 Apr 8, 2024
0275363
explicit zero-intialization
DenisBiryukov91 Apr 8, 2024
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
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,8 @@ dkms.conf
.cache

# Platform dependent generated files
include/zenoh_configure.h
include/zenoh_configure.h

# Build resources
.build_resources*
src/opaque_types/mod.rs
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ declare_cache_var_true_if_vscode(ZENOHC_BUILD_IN_SOURCE_TREE "Do build inside so
declare_cache_var(ZENOHC_BUILD_WITH_LOGGER_AUTOINIT TRUE BOOL "Enable logger-autoinit zenoh-c feature")
declare_cache_var(ZENOHC_BUILD_WITH_SHARED_MEMORY TRUE BOOL "Enable shared-memory zenoh-c feature")
declare_cache_var(ZENOHC_CUSTOM_TARGET "" STRING "Rust target for cross compilation, 'aarch64-unknown-linux-gnu' for example")
declare_cache_var(ZENOHC_CARGO_CHANNEL "stable" STRING "Cargo channel selected: stable or nightly")
declare_cache_var(ZENOHC_CARGO_CHANNEL "" STRING "Cargo channel parameter. Should be '+stable', '+nightly' or empty value")
declare_cache_var(ZENOHC_CARGO_FLAGS "" STRING "Additional cargo flags")
declare_cache_var(ZENOHC_LIB_STATIC FALSE BOOL "Alias zenohc::lib target to zenohc::static if TRUE, to zenohc::shared if FALSE")

Expand Down Expand Up @@ -198,8 +198,8 @@ file(GLOB_RECURSE rust_sources "Cargo.toml.in" "src/*.rs" "build.rs" "splitguide
add_custom_command(
OUTPUT ${libs}
COMMAND ${CMAKE_COMMAND} -E echo \"RUSTFLAGS = $$RUSTFLAGS\"
COMMAND ${CMAKE_COMMAND} -E echo \"cargo +${ZENOHC_CARGO_CHANNEL} build ${cargo_flags}\"
COMMAND cargo +${ZENOHC_CARGO_CHANNEL} build ${cargo_flags}
COMMAND ${CMAKE_COMMAND} -E echo \"cargo ${ZENOHC_CARGO_CHANNEL} build ${cargo_flags}\"
COMMAND cargo ${ZENOHC_CARGO_CHANNEL} build ${cargo_flags}
VERBATIM
COMMAND_EXPAND_LISTS
DEPENDS "${rust_sources}"
Expand Down
74 changes: 46 additions & 28 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ zenoh-ext = { version = "0.11.0-dev", git = "https://github.com/eclipse-zenoh/ze
[build-dependencies]
cbindgen = "0.24.3"
fs2 = "0.4.3"
regex = "1.7.1"
serde_yaml = "0.9.19"

[lib]
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml.in
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ zenoh-ext = { version = "0.11.0-dev", git = "https://github.com/eclipse-zenoh/ze
[build-dependencies]
cbindgen = "0.24.3"
fs2 = "0.4.3"
regex = "1.7.1"
serde_yaml = "0.9.19"

[lib]
Expand Down
Loading
Loading