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

chore: bump zenoh version #265

Merged
merged 2 commits into from
Jul 3, 2024
Merged
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
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ jobs:
rustup component add rustfmt clippy

- name: Code format check
run: cargo fmt --check

run: cargo fmt --check -- --config "unstable_features=true,imports_granularity=Crate,group_imports=StdExternalCrate"
- name: Clippy
run: cargo clippy --all --examples -- -D warnings

Expand Down
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
repos:
- repo: local
hooks:
- id: fmt
name: fmt
entry: cargo fmt -- --config "unstable_features=true,imports_granularity=Crate,group_imports=StdExternalCrate"
language: system
types: [rust]
54 changes: 27 additions & 27 deletions Cargo.lock

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

9 changes: 6 additions & 3 deletions zenoh-bridge-dds/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,18 @@
// Contributors:
// ZettaScale Zenoh Team, <[email protected]>
//
use std::{
str::FromStr,
time::{Duration, SystemTime},
};

use async_liveliness_monitor::LivelinessMonitor;
use clap::{App, Arg};
use std::str::FromStr;
use std::time::{Duration, SystemTime};
use zenoh::{
config::{Config, ModeDependentValue},
info::ZenohId,
internal::{plugins::PluginsManager, runtime::RuntimeBuilder},
prelude::*,
session::ZenohId,
};
use zenoh_plugin_dds::DDSPlugin;
use zenoh_plugin_trait::Plugin;
Expand Down
8 changes: 3 additions & 5 deletions zenoh-plugin-dds/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@
// Contributors:
// ZettaScale Zenoh Team, <[email protected]>
//
use std::{env, fmt, time::Duration};

use regex::Regex;
use serde::de::Visitor;
use serde::{de, Deserialize, Deserializer};
use std::env;
use std::fmt;
use std::time::Duration;
use serde::{de, de::Visitor, Deserialize, Deserializer};
use zenoh::key_expr::OwnedKeyExpr;

pub const DEFAULT_DOMAIN: u32 = 0;
Expand Down
29 changes: 17 additions & 12 deletions zenoh-plugin-dds/src/dds_mgt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,33 @@
// Contributors:
// ZettaScale Zenoh Team, <[email protected]>
//
use std::{
collections::HashMap,
ffi::{CStr, CString},
fmt,
mem::MaybeUninit,
slice,
sync::Arc,
time::Duration,
};

use async_std::task;
use cyclors::qos::{History, HistoryKind, Qos};
use cyclors::*;
use cyclors::{
qos::{History, HistoryKind, Qos},
*,
};
use flume::Sender;
use serde::{Deserialize, Serialize, Serializer};
use std::collections::HashMap;
use std::ffi::{CStr, CString};
use std::fmt;
use std::mem::MaybeUninit;
use std::slice;
use std::sync::Arc;
use std::time::Duration;
use tracing::{debug, error, warn};
#[cfg(feature = "dds_shm")]
use zenoh::internal::buffers::{ZBuf, ZSlice};
use zenoh::{
bytes::ZBytes,
key_expr::{KeyExpr, OwnedKeyExpr},
prelude::*,
publisher::CongestionControl,
qos::CongestionControl,
Session,
};
#[cfg(feature = "dds_shm")]
use zenoh::{internal::buffers::ZBuf, internal::buffers::ZSlice};

const MAX_SAMPLES: usize = 32;

Expand Down
Loading