-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev/1.0.0' into peers_interests
- Loading branch information
Showing
86 changed files
with
661 additions
and
582 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,14 @@ | |
// Contributors: | ||
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
use zenoh::prelude::*; | ||
use zenoh::{ | ||
prelude::*, | ||
shm::{ | ||
AllocAlignment, BlockOn, Deallocate, Defragment, GarbageCollect, | ||
PosixSharedMemoryProviderBackend, SharedMemoryProviderBuilder, POSIX_PROTOCOL_ID, | ||
}, | ||
Config, | ||
}; | ||
|
||
#[tokio::main] | ||
async fn main() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,14 @@ | |
// Contributors: | ||
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
use zenoh::prelude::*; | ||
use zenoh::{ | ||
bytes::ZBytes, | ||
prelude::*, | ||
shm::{ | ||
zshm, zshmmut, PosixSharedMemoryProviderBackend, SharedMemoryProviderBuilder, ZShm, | ||
ZShmMut, POSIX_PROTOCOL_ID, | ||
}, | ||
}; | ||
|
||
fn main() { | ||
// create an SHM backend... | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
use clap::Parser; | ||
use zenoh::prelude::*; | ||
use zenoh::{key_expr::KeyExpr, Config}; | ||
use zenoh_examples::CommonArgs; | ||
|
||
#[tokio::main] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,8 +12,7 @@ | |
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
|
||
use zenoh::prelude as zenoh; | ||
|
||
use zenoh::key_expr::keyexpr; | ||
zenoh::kedefine!( | ||
pub file_format: "user_id/${user_id:*}/file/${file:*/**}", | ||
pub(crate) settings_format: "user_id/${user_id:*}/settings/${setting:**}" | ||
|
@@ -26,8 +25,8 @@ fn main() { | |
let ke = zenoh::keformat!(formatter, user_id = 42, file).unwrap(); | ||
println!("{formatter:?} => {ke}"); | ||
// Parsing | ||
let settings_ke = zenoh::keyexpr::new("user_id/30/settings/dark_mode").unwrap(); | ||
let settings_ke = keyexpr::new("user_id/30/settings/dark_mode").unwrap(); | ||
let parsed = settings_format::parse(settings_ke).unwrap(); | ||
assert_eq!(parsed.user_id(), zenoh::keyexpr::new("30").unwrap()); | ||
assert_eq!(parsed.setting(), zenoh::keyexpr::new("dark_mode").ok()); | ||
assert_eq!(parsed.user_id(), keyexpr::new("30").unwrap()); | ||
assert_eq!(parsed.setting(), keyexpr::new("dark_mode").ok()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
use clap::Parser; | ||
use zenoh::prelude::*; | ||
use zenoh::{key_expr::KeyExpr, prelude::*, Config}; | ||
use zenoh_examples::CommonArgs; | ||
use zenoh_ext::SubscriberForward; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
use clap::Parser; | ||
use zenoh::prelude::*; | ||
use zenoh::{config::ZenohId, prelude::*}; | ||
use zenoh_examples::CommonArgs; | ||
|
||
#[tokio::main] | ||
|
@@ -43,7 +43,7 @@ struct Args { | |
common: CommonArgs, | ||
} | ||
|
||
fn parse_args() -> Config { | ||
fn parse_args() -> zenoh::Config { | ||
let args = Args::parse(); | ||
args.common.into() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
use clap::Parser; | ||
use zenoh::prelude::*; | ||
use zenoh::{key_expr::KeyExpr, prelude::*, Config}; | ||
use zenoh_examples::CommonArgs; | ||
|
||
#[tokio::main] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
use clap::Parser; | ||
use zenoh::prelude::*; | ||
use zenoh::{key_expr::keyexpr, prelude::*, publisher::CongestionControl, Config}; | ||
use zenoh_examples::CommonArgs; | ||
|
||
fn main() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,10 @@ | |
// Contributors: | ||
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
use zenoh::prelude::*; | ||
use zenoh::shm::{ | ||
AllocAlignment, MemoryLayout, PosixSharedMemoryProviderBackend, SharedMemoryProviderBuilder, | ||
POSIX_PROTOCOL_ID, | ||
}; | ||
|
||
fn main() { | ||
// Construct an SHM backend | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,15 @@ | |
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
use clap::Parser; | ||
use zenoh::prelude::*; | ||
use zenoh::{ | ||
key_expr::KeyExpr, | ||
prelude::*, | ||
shm::{ | ||
BlockOn, GarbageCollect, PosixSharedMemoryProviderBackend, SharedMemoryProviderBuilder, | ||
POSIX_PROTOCOL_ID, | ||
}, | ||
Config, | ||
}; | ||
use zenoh_examples::CommonArgs; | ||
|
||
const N: usize = 10; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,13 @@ | |
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
use clap::Parser; | ||
use zenoh::prelude::*; | ||
use zenoh::{ | ||
buffers::ZSlice, | ||
prelude::*, | ||
publisher::CongestionControl, | ||
shm::{PosixSharedMemoryProviderBackend, SharedMemoryProviderBuilder, POSIX_PROTOCOL_ID}, | ||
Config, | ||
}; | ||
use zenoh_examples::CommonArgs; | ||
|
||
#[tokio::main] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
use clap::Parser; | ||
use zenoh::prelude::*; | ||
use zenoh::{key_expr::KeyExpr, Config}; | ||
use zenoh_examples::CommonArgs; | ||
|
||
#[tokio::main] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
use clap::Parser; | ||
use zenoh::prelude::*; | ||
use zenoh::{key_expr::KeyExpr, Config}; | ||
use zenoh_examples::CommonArgs; | ||
|
||
#[tokio::main] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
use clap::Parser; | ||
use zenoh::prelude::*; | ||
use zenoh::{key_expr::KeyExpr, prelude::*, Config}; | ||
use zenoh_examples::CommonArgs; | ||
|
||
#[tokio::main] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,15 @@ | |
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
use clap::Parser; | ||
use zenoh::prelude::*; | ||
use zenoh::{ | ||
key_expr::KeyExpr, | ||
prelude::*, | ||
shm::{ | ||
zshm, BlockOn, GarbageCollect, PosixSharedMemoryProviderBackend, | ||
SharedMemoryProviderBuilder, POSIX_PROTOCOL_ID, | ||
}, | ||
Config, | ||
}; | ||
use zenoh_examples::CommonArgs; | ||
|
||
const N: usize = 10; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
// Contributors: | ||
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
use zenoh::prelude::*; | ||
use zenoh::{config::WhatAmI, scout, Config}; | ||
|
||
#[tokio::main] | ||
async fn main() { | ||
|
Oops, something went wrong.