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

z_check and z_null made internal #605

Merged
merged 180 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
180 commits
Select commit Hold shift + click to select a range
8b0c2c4
fix: Rename `bump.bash` to `bump-and-tag.bash`
fuzzypixelz Apr 11, 2024
9e3abf3
feat: Add `version.txt` and infer version in `bump-and-tag.bash`
fuzzypixelz Apr 11, 2024
26d37f5
fix: Clone repository using actions/checkout
fuzzypixelz Apr 11, 2024
09dcabe
Merge pull request #326 from fuzzypixelz/fix/release-workflow
milyin Apr 11, 2024
c35e9c8
fix: Add `CMakeFiles` to `.gitignore`
fuzzypixelz Apr 11, 2024
6acb44f
fix: Add `debug` and `release` to `.gitignore`
fuzzypixelz Apr 11, 2024
2b14ccb
fix: Provide default release number for testing
fuzzypixelz Apr 11, 2024
db7024f
fix: Don't bump deps when pattern is undefined
fuzzypixelz Apr 11, 2024
2ab2248
Merge pull request #327 from fuzzypixelz/fix/release-workflow
milyin Apr 11, 2024
258fbd1
fix sizes of zcu_owned_matching_listener_t and z_owned_reply_t
DenisBiryukov91 Apr 11, 2024
58a776a
build: Sync with eclipse-zenoh/zenoh@580f0b6 from 2024-04-11 (#330)
eclipse-zenoh-bot Apr 12, 2024
b209194
fix: Specify git remote when pushing the tag
fuzzypixelz Apr 12, 2024
3c4f8c6
fix: Require `VERSION`in `bump-and-tag.bash`
fuzzypixelz Apr 12, 2024
817fe38
Merge pull request #331 from fuzzypixelz/fix/release-workflow
milyin Apr 12, 2024
4ece6dc
Merge pull request #328 from DenisBiryukov91/fix/arm32_build
milyin Apr 12, 2024
bceb62c
fix: Override release tag if it already exists
fuzzypixelz Apr 12, 2024
e929951
Merge pull request #333 from fuzzypixelz/fix/release-workflow
milyin Apr 12, 2024
09ed7c0
feat(tracing): using tracing and zenoh-util init_log (#308)
gabrik Apr 15, 2024
46e905c
build: Sync with eclipse-zenoh/zenoh@580f0b6 from 2024-04-11 (#335)
eclipse-zenoh-bot Apr 16, 2024
0571287
build: Sync with eclipse-zenoh/zenoh@23c5932 from 2024-04-16 (#337)
eclipse-zenoh-bot Apr 17, 2024
6c84a50
fix: Support jq 1.6
fuzzypixelz Apr 17, 2024
97ca227
Merge pull request #338 from fuzzypixelz/fix/release-workflow
milyin Apr 17, 2024
f63f07e
chore: using new try_init_log_from_env
gabrik Apr 18, 2024
09df4b3
Align examples and remove reading from stdin (#255)
oteffahi Apr 18, 2024
68ab0c1
Bugfix: Unable to build z_queryable_with_channels.c (#340)
evshary Apr 18, 2024
4142363
build: Sync with eclipse-zenoh/zenoh@0283aaa from 2024-04-19 (#341)
eclipse-zenoh-bot Apr 26, 2024
ea99d6b
build: Sync with eclipse-zenoh/zenoh@e8916bf from 2024-04-26 (#343)
eclipse-zenoh-bot Apr 26, 2024
df1e1bc
Update README and specify Rust version (#342)
evshary Apr 29, 2024
be60ca4
build: Sync with eclipse-zenoh/zenoh@ea604b6 from 2024-04-29 (#344)
eclipse-zenoh-bot Apr 29, 2024
bb66369
build: Sync with eclipse-zenoh/zenoh@371ca6b from 2024-04-30 (#347)
eclipse-zenoh-bot Apr 30, 2024
8ff01c8
build: Sync with eclipse-zenoh/zenoh@7a47445 from 2024-05-03 (#348)
eclipse-zenoh-bot May 3, 2024
4681f57
build: Sync with eclipse-zenoh/zenoh@f5195c0 from 2024-05-03 (#350)
eclipse-zenoh-bot May 4, 2024
4be7f24
build: Sync with eclipse-zenoh/zenoh@e53364f from 2024-05-04 (#351)
eclipse-zenoh-bot May 5, 2024
71e15dc
build: Sync with eclipse-zenoh/zenoh@7e5d5e8 from 2024-05-07 (#355)
eclipse-zenoh-bot May 7, 2024
6e161ac
build: Sync with eclipse-zenoh/zenoh@b8dd01d from 2024-05-07 (#356)
eclipse-zenoh-bot May 8, 2024
dae1768
build: Sync with eclipse-zenoh/zenoh@45e05f0 from 2024-05-13 (#360)
eclipse-zenoh-bot May 14, 2024
e031818
Fix build with CMAKE_BUILD_TYPE=None
jspricke May 13, 2024
a3fcc45
build: Sync with eclipse-zenoh/zenoh@763a05f from 2024-05-14 (#363)
eclipse-zenoh-bot May 14, 2024
390ec14
Merge pull request #358 from jspricke/build_none
milyin May 15, 2024
87c8395
build: Sync with eclipse-zenoh/zenoh@75aa273 from 2024-05-15 (#364)
eclipse-zenoh-bot May 16, 2024
f3be503
build: Sync with eclipse-zenoh/zenoh@25f06bd from 2024-05-21 (#369)
eclipse-zenoh-bot May 22, 2024
a2f8229
build: Sync with eclipse-zenoh/zenoh@3118d31 from 2024-05-28 (#399)
eclipse-zenoh-bot May 29, 2024
01490ac
build: Sync with eclipse-zenoh/zenoh@009f666 from 2024-05-30 (#411)
eclipse-zenoh-bot May 31, 2024
68ba0ad
build: Sync with eclipse-zenoh/zenoh@d574654 from 2024-06-03 (#420)
eclipse-zenoh-bot Jun 4, 2024
8f37fe5
chore: Update artifacts action to v4 (#421)
diogomatsubara Jun 4, 2024
889cee1
build: Sync with eclipse-zenoh/zenoh@c279982 from 2024-06-05 (#424)
eclipse-zenoh-bot Jun 6, 2024
3504aa5
build: Sync with eclipse-zenoh/zenoh@d8e66de from 2024-06-10 (#436)
eclipse-zenoh-bot Jun 11, 2024
e7650f8
build: Sync with eclipse-zenoh/zenoh@9d09742 from 2024-06-11 (#446)
eclipse-zenoh-bot Jun 12, 2024
5a1728e
build: Sync with eclipse-zenoh/zenoh@ed6c636 from 2024-06-12 (#450)
eclipse-zenoh-bot Jun 13, 2024
fd311d7
build: Sync with eclipse-zenoh/zenoh@8160b01 from 2024-06-13 (#457)
eclipse-zenoh-bot Jun 14, 2024
a9521bc
Enable releasing from any branch (#456)
fuzzypixelz Jun 14, 2024
3667788
build: Sync with eclipse-zenoh/zenoh@7adad94 from 2024-06-14 (#460)
eclipse-zenoh-bot Jun 15, 2024
548ee8d
Update to latest zenoh
OlivierHecart Jun 17, 2024
f9b4664
Replace `-rc` with `-pre` and document versioning (#466)
fuzzypixelz Jun 19, 2024
a98d700
build: Sync with eclipse-zenoh/zenoh@2500e5a from 2024-06-20 (#467)
eclipse-zenoh-bot Jun 21, 2024
9841d45
macro generation
milyin Jun 30, 2024
2b2b0d1
moved types added to decl
milyin Jun 30, 2024
c0fe84e
moved type drop
milyin Jun 30, 2024
2197cad
switched rust to z_moved
milyin Jun 30, 2024
4ce12e5
moved closures
milyin Jun 30, 2024
b19de8d
build macros fixed
milyin Jun 30, 2024
25d2c96
z_move name restored
milyin Jun 30, 2024
a27ea46
into_rust_type for moved, payloads
milyin Jun 30, 2024
fc54e00
tests updated
milyin Jun 30, 2024
26b6555
cargo fmt
milyin Jul 1, 2024
6a1b03c
moved structs in some drops/undeclares
milyin Jul 1, 2024
aa087ab
moved as separate parameter
milyin Jul 2, 2024
7ffc28f
removed asref from moved
milyin Jul 2, 2024
b8e5c95
moved unfinished
milyin Jul 2, 2024
9043dc6
build: Sync with eclipse-zenoh/zenoh@869ace6 from 2024-07-02 (#494)
eclipse-zenoh-bot Jul 3, 2024
1ac56fa
moved type with into_rust_type trait, comiles without shm
milyin Jul 3, 2024
2755e80
build with shm passed
milyin Jul 3, 2024
9be5468
option added to some decl_c_type
milyin Jul 3, 2024
b26d929
clippy fix
milyin Jul 3, 2024
91a7cce
Merge branch 'dev/1.0.0' into move_protection2
milyin Jul 3, 2024
036518c
build fix
milyin Jul 3, 2024
eef474a
moved types added
milyin Jul 3, 2024
da0e172
task moved used
milyin Jul 3, 2024
8552972
build: Sync with eclipse-zenoh/zenoh@b93ca84 from 2024-07-03 (#500)
eclipse-zenoh-bot Jul 4, 2024
51b51cb
some examples fixes
milyin Jul 4, 2024
52f07dd
Merge branch 'dev/1.0.0' into move_protection2
milyin Jul 4, 2024
c83f304
macros corrected to use auto derive loaned type from owned feature
milyin Jul 4, 2024
d3c36b7
optional comma allowed in macros where forgotten
milyin Jul 4, 2024
ad606ee
property moved get
milyin Jul 4, 2024
f9cf7db
put options move
milyin Jul 4, 2024
910534a
publisher delete options made simpler
milyin Jul 4, 2024
1901504
put options with moved
milyin Jul 4, 2024
949c033
delete options timestamp simplified
milyin Jul 4, 2024
a1a506d
more moved in options, timestamp simplified
milyin Jul 4, 2024
384606c
examples,tests updated
milyin Jul 4, 2024
697e769
tests compile fixes
milyin Jul 5, 2024
3656761
fix for test failure due to calling z_moved_xxx_t destructor on uniti…
milyin Jul 5, 2024
6c2c5b1
cargo fmt imports
milyin Jul 5, 2024
b302209
Merge branch 'dev/1.0.0' into move_protection2
milyin Jul 5, 2024
d32dc16
build fixes
milyin Jul 5, 2024
775e665
build: Sync with eclipse-zenoh/zenoh@b3e42ce from 2024-07-08 (#508)
eclipse-zenoh-bot Jul 9, 2024
4ea609d
Ensure that find_package(zenohc) can be called two times (#470)
traversaro Jul 17, 2024
9c25f8d
Update CMakeLists.txt (#473)
traversaro Jul 17, 2024
c75ce16
Install zenohc.dll in <prefix>/bin on Windows (#471)
traversaro Jul 18, 2024
0530a2d
build: Sync with eclipse-zenoh/zenoh@0a969cb from 2024-07-25 (#546)
eclipse-zenoh-bot Jul 26, 2024
f3c3640
build: Sync with eclipse-zenoh/zenoh@e587aa9 from 2024-07-26 (#552)
eclipse-zenoh-bot Jul 27, 2024
9555c54
Merge branch 'dev/1.0.0' into move_protection2
milyin Jul 28, 2024
f466f2a
some xompile errors fixed
milyin Jul 28, 2024
ce2de57
some build errors fixed
milyin Jul 28, 2024
bb71c4a
some build errors fixed
milyin Jul 28, 2024
4fe741e
build fixes
milyin Jul 28, 2024
a4de03c
cargo fmt
milyin Jul 28, 2024
d533dc8
into_rust_type usage fixes
milyin Jul 28, 2024
eb5839d
encoding drop fixed
milyin Jul 28, 2024
c5baf3d
restored headers
milyin Jul 28, 2024
51aa6a8
zcu renamed back to zc
milyin Jul 28, 2024
c99f1ed
zcu renamed back to zc
milyin Jul 28, 2024
485c885
z_xxx_move is static inline, cpp fixes
milyin Jul 29, 2024
6bcc17d
build: Sync with eclipse-zenoh/zenoh@2d88c7b from 2024-07-29 (#556)
eclipse-zenoh-bot Jul 30, 2024
f69ec33
clang format from start
milyin Jul 30, 2024
a5a8802
cargo fmt
milyin Jul 30, 2024
9c09c0b
Merge branch 'dev/1.0.0' into move_protection2
milyin Jul 30, 2024
6176248
macros contains funcions now, it needs types defined
milyin Jul 30, 2024
f8d2a1f
removed zenoh_macros include
milyin Jul 30, 2024
5c55758
zenoh_macros include returned back to place
milyin Jul 30, 2024
a812196
C++ build test added, fails for now
milyin Jul 30, 2024
90a45e9
C++ enabling correction
milyin Jul 30, 2024
ed5d9d7
C++ compilation for tests added
milyin Jul 31, 2024
60c01da
C++ build test
milyin Aug 1, 2024
90bb511
cargo lock update
milyin Aug 1, 2024
2920868
retrun value if not void from template functions
milyin Aug 1, 2024
1cf9569
Merge branch 'dev/1.0.0' into move_protection2
milyin Aug 1, 2024
15cf196
cargo fmt
milyin Aug 1, 2024
82f9233
build fixes
milyin Aug 1, 2024
bae3273
build fix after cargo.lock update
milyin Aug 1, 2024
4ab1965
Merge branch 'global_client_sroage_build_fix' into move_protection2
milyin Aug 1, 2024
ec153b6
moved types for buffer creation functions
milyin Aug 2, 2024
9014d82
clippy fix
milyin Aug 2, 2024
933daa1
clippy fix: c_char can be i8 or u8 depending on platform
milyin Aug 2, 2024
2428236
headers restored
milyin Aug 2, 2024
5bc1ca6
cargo fmt
milyin Aug 2, 2024
7a1d734
-c c++ flag for clang only
milyin Aug 2, 2024
ac5b6d6
c++ build fix - brackets removed
milyin Aug 2, 2024
5562413
type specific take functions added, _ptr in moved
milyin Aug 3, 2024
fa799c5
generic_take_cpp
milyin Aug 3, 2024
7f15915
z_take impls at the end
milyin Aug 3, 2024
165e81b
take funcs before generics
milyin Aug 3, 2024
05de856
take moved after null
milyin Aug 3, 2024
2e66048
names fix
milyin Aug 3, 2024
5172aae
missing null functioj added
milyin Aug 3, 2024
6ad18e7
tests fixed for c++
milyin Aug 3, 2024
d5d5775
explicit null calls
milyin Aug 4, 2024
8957e5f
fix generic parameter names c compilation
milyin Aug 4, 2024
47e7c15
null call fix
milyin Aug 4, 2024
5189daa
misprint fixed
milyin Aug 4, 2024
016ae13
return removed
milyin Aug 4, 2024
a4e5e37
Rename `close` to `undeclare` for Publication Cache and Querying Subs…
fuzzypixelz Aug 1, 2024
5cb9e26
Temporarily use original pull request branch
fuzzypixelz Aug 1, 2024
cda429f
Update to eclipse-zenoh/zenoh@ce4e9bf
fuzzypixelz Aug 2, 2024
700b522
Fix `z_ref_shm_client_storage_global`
fuzzypixelz Aug 2, 2024
c8ee1ea
Update Cargo.toml
Mallets Aug 2, 2024
d46e38d
Merge branch 'dev/1.0.0' into move_protection2
milyin Aug 4, 2024
31be258
Merge branch 'main' into merge_main
milyin Aug 12, 2024
62686ff
decl_c_type corrected
milyin Aug 12, 2024
7e4c979
Merge branch 'dev/1.0.0' into merge_main
milyin Aug 12, 2024
8dc6a0e
cargo check run
milyin Aug 12, 2024
e1b06cc
borrow error fix
milyin Aug 12, 2024
1742d26
Merge branch 'dev/1.0.0' into merge_main
milyin Aug 16, 2024
a5d0707
Merge branch 'merge_main' into moved_as_ptr_merge_main
milyin Aug 16, 2024
bf3a0f9
compilation fix
milyin Aug 17, 2024
3db136e
parse arg fix
milyin Aug 17, 2024
d2f9eea
example compilation fix
milyin Aug 17, 2024
c7fa4a0
examples compile fix
milyin Aug 17, 2024
ebe6b89
examples build fixes
milyin Aug 17, 2024
f8babaa
removed duplicated z_config_default (it's called in parsing args later)
milyin Aug 17, 2024
35a2cca
clang format
milyin Aug 17, 2024
e16ac3b
clang format
milyin Aug 17, 2024
7140a38
cargo.toml restore
milyin Aug 17, 2024
98500d8
Merge branch 'dev/1.0.0' into moved_as_ptr_merge_main2
milyin Aug 19, 2024
adf74a0
added underscore to _z_null and _z_check
milyin Aug 19, 2024
3a55c7d
missing functions updated
milyin Aug 19, 2024
086370b
rename to z_internal_null/check
milyin Aug 20, 2024
1ed10e2
clang format fix
milyin Aug 20, 2024
6ec10b9
Merge branch 'dev/1.0.0' into check_null_internal
milyin Aug 21, 2024
1529aa4
restored headers, corrected cargo.toml
milyin Aug 21, 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
14 changes: 10 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ build = "build.rs"

[features]
logger-autoinit = []
shared-memory = ["zenoh/shared-memory", "dep:zenoh-ext", "zenoh-ext/shared-memory"]
shared-memory = [
"zenoh/shared-memory",
"dep:zenoh-ext",
"zenoh-ext/shared-memory",
]
unstable = ["zenoh/unstable", "zenoh-ext/unstable", "dep:zenoh-ext"]
default = ["zenoh/default"]

Expand All @@ -52,10 +56,12 @@ rand = "0.8.5"
spin = "0.9.5"
unwrap-infallible = "0.1.5"
const_format = "0.2.32"
zenoh = { version = "1.0.0-dev", git = "https://github.com/eclipse-zenoh/zenoh.git", branch = "dev/1.0.0", default-features = false, features = ["internal"] }
zenoh-ext = { version = "1.0.0-dev", git = "https://github.com/eclipse-zenoh/zenoh.git", branch = "dev/1.0.0" , optional = true }
zenoh = { version = "1.0.0-dev", git = "https://github.com/eclipse-zenoh/zenoh.git", branch = "dev/1.0.0", default-features = false, features = [
"internal",
] }
zenoh-ext = { version = "1.0.0-dev", git = "https://github.com/eclipse-zenoh/zenoh.git", branch = "dev/1.0.0", optional = true }
zenoh-runtime = { version = "1.0.0-dev", git = "https://github.com/eclipse-zenoh/zenoh.git", branch = "dev/1.0.0" }
zenoh-util = { version = "1.0.0-dev", git = "https://github.com/eclipse-zenoh/zenoh.git", branch = "dev/1.0.0" }
zenoh-util = { version = "1.0.0-dev", git = "https://github.com/eclipse-zenoh/zenoh.git", branch = "dev/1.0.0" }
flume = "*"

[build-dependencies]
Expand Down
22 changes: 11 additions & 11 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -992,15 +992,15 @@ pub fn create_generics_header(path_in: &str, path_out: &str) {

if drops != nulls {
msgs.push(format!(
"the list of z_xxx_drop and z_xxx_null functions are different:\n missing z_xxx_null for {:?}\n missing z_xxx_drop for {:?}",
"the list of z_xxx_drop and z_internal_xxx_null functions are different:\n missing z_internal_xxx_null for {:?}\n missing z_xxx_drop for {:?}",
drops.difference(&nulls),
nulls.difference(&drops)
));
}

if drops != checks {
msgs.push(format!(
"the list of z_xxx_drop and z_xxx_check functions are different:\n missing z_xxx_check for {:?}\n missing z_xxx_drop for {:?}",
"the list of z_xxx_drop and z_internal_xxx_check functions are different:\n missing z_internal_xxx_check for {:?}\n missing z_xxx_drop for {:?}",
drops.difference(&checks),
checks.difference(&drops)
));
Expand Down Expand Up @@ -1244,15 +1244,15 @@ pub fn find_drop_functions(path_in: &str) -> Vec<FunctionSignature> {

pub fn find_null_functions(path_in: &str) -> Vec<FunctionSignature> {
let bindings = std::fs::read_to_string(path_in).unwrap();
let re = Regex::new(r"(\w+)_null\(struct (\w+) \*(\w+)\);").unwrap();
let re = Regex::new(r" (z.?_internal_\w+_null)\(struct (\w+) \*(\w+)\);").unwrap();
let mut res = Vec::<FunctionSignature>::new();

for (_, [func_name, arg_type, arg_name]) in re.captures_iter(&bindings).map(|c| c.extract()) {
let (_, _, semantic, _) = split_type_name(arg_type);
let f = FunctionSignature::new(
semantic,
"void",
func_name.to_string() + "_null",
func_name.to_string(),
vec![FuncArg::new(&(arg_type.to_string() + "*"), arg_name)],
);
res.push(f);
Expand All @@ -1262,15 +1262,15 @@ pub fn find_null_functions(path_in: &str) -> Vec<FunctionSignature> {

pub fn find_check_functions(path_in: &str) -> Vec<FunctionSignature> {
let bindings = std::fs::read_to_string(path_in).unwrap();
let re = Regex::new(r"bool (\w+)_check\(const struct (\w+) \*(\w+)\);").unwrap();
let re = Regex::new(r"bool (z.?_internal_\w+_check)\(const struct (\w+) \*(\w+)\);").unwrap();
let mut res = Vec::<FunctionSignature>::new();

for (_, [func_name, arg_type, arg_name]) in re.captures_iter(&bindings).map(|c| c.extract()) {
let (_, _, semantic, _) = split_type_name(arg_type);
let f = FunctionSignature::new(
semantic,
"bool",
func_name.to_string() + "_check",
func_name.to_string(),
vec![FuncArg::new(
&("const ".to_string() + arg_type + "*"),
arg_name,
Expand Down Expand Up @@ -1415,7 +1415,7 @@ pub fn generate_take_functions(macro_func: &[FunctionSignature]) -> String {
for sig in macro_func {
let (prefix, _, semantic, _) = split_type_name(&sig.args[0].typename.typename);
out += &format!(
"static inline void {}({} {}, {} {}) {{ *{} = {}->_this; {}_{}_null(&{}->_this); }}\n",
"static inline void {}({} {}, {} {}) {{ *{} = {}->_this; {}_internal_{}_null(&{}->_this); }}\n",
sig.func_name,
sig.args[0].typename.typename,
sig.args[0].name,
Expand Down Expand Up @@ -1460,11 +1460,11 @@ pub fn generate_move_functions_cpp(macro_func: &[FunctionSignature]) -> String {
}

pub fn generate_generic_null_c(macro_func: &[FunctionSignature]) -> String {
generate_generic_c(macro_func, "z_null", false)
generate_generic_c(macro_func, "z_internal_null", false)
}

pub fn generate_generic_check_c(macro_func: &[FunctionSignature]) -> String {
generate_generic_c(macro_func, "z_check", true)
generate_generic_c(macro_func, "z_internal_check", true)
}

pub fn generate_generic_call_c(macro_func: &[FunctionSignature]) -> String {
Expand Down Expand Up @@ -1589,11 +1589,11 @@ pub fn generate_generic_take_cpp(macro_func: &[FunctionSignature]) -> String {
}

pub fn generate_generic_null_cpp(macro_func: &[FunctionSignature]) -> String {
generate_generic_cpp(macro_func, "z_null", false)
generate_generic_cpp(macro_func, "z_internal_null", false)
}

pub fn generate_generic_check_cpp(macro_func: &[FunctionSignature]) -> String {
generate_generic_cpp(macro_func, "z_check", true)
generate_generic_cpp(macro_func, "z_internal_check", true)
}

pub fn generate_generic_call_cpp(macro_func: &[FunctionSignature]) -> String {
Expand Down
Loading