Skip to content

Commit

Permalink
explicitly import bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
erer1243 authored and r12f committed Jan 11, 2025
1 parent 9665ba2 commit 6cae18a
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 14 deletions.
1 change: 0 additions & 1 deletion crates/swss-common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ mod bindings {
}
mod types;

use bindings::*;
pub use types::*;

/// Rust wrapper around `swss::SonicDBConfig::initialize`.
Expand Down
2 changes: 1 addition & 1 deletion crates/swss-common/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub use zmqconsumerstatetable::ZmqConsumerStateTable;
pub use zmqproducerstatetable::ZmqProducerStateTable;
pub use zmqserver::ZmqServer;

use crate::*;
use crate::bindings::*;
use cxxstring::RawMutableSWSSString;
use std::{
any::Any,
Expand Down
2 changes: 1 addition & 1 deletion crates/swss-common/src/types/consumerstatetable.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use super::*;
use crate::*;
use crate::bindings::*;
use std::{os::fd::BorrowedFd, ptr::null, time::Duration};

/// Rust wrapper around `swss::ConsumerStateTable`.
Expand Down
2 changes: 1 addition & 1 deletion crates/swss-common/src/types/cxxstring.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::*;
use crate::bindings::*;
use std::{
borrow::{Borrow, Cow},
fmt::Debug,
Expand Down
2 changes: 1 addition & 1 deletion crates/swss-common/src/types/dbconnector.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use super::*;
use crate::*;
use crate::bindings::*;
use std::collections::HashMap;

/// Rust wrapper around `swss::DBConnector`.
Expand Down
2 changes: 1 addition & 1 deletion crates/swss-common/src/types/producerstatetable.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use super::*;
use crate::*;
use crate::bindings::*;

/// Rust wrapper around `swss::ProducerStateTable`.
#[derive(Debug)]
Expand Down
2 changes: 1 addition & 1 deletion crates/swss-common/src/types/subscriberstatetable.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use super::*;
use crate::*;
use crate::bindings::*;
use std::{os::fd::BorrowedFd, ptr::null, time::Duration};

/// Rust wrapper around `swss::SubscriberStateTable`.
Expand Down
5 changes: 2 additions & 3 deletions crates/swss-common/src/types/table.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use std::ptr;

use super::*;
use crate::*;
use crate::bindings::*;
use std::ptr;

#[derive(Debug)]
pub struct Table {
Expand Down
2 changes: 1 addition & 1 deletion crates/swss-common/src/types/zmqclient.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use super::*;
use crate::*;
use crate::bindings::*;

/// Rust wrapper around `swss::ZmqClient`.
#[derive(Debug)]
Expand Down
2 changes: 1 addition & 1 deletion crates/swss-common/src/types/zmqconsumerstatetable.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use super::*;
use crate::*;
use crate::bindings::*;
use std::{os::fd::BorrowedFd, ptr::null, sync::Arc, time::Duration};

/// Rust wrapper around `swss::ZmqConsumerStateTable`.
Expand Down
2 changes: 1 addition & 1 deletion crates/swss-common/src/types/zmqproducerstatetable.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use super::*;
use crate::*;
use crate::bindings::*;

/// Rust wrapper around `swss::ZmqProducerStateTable`.
#[derive(Debug)]
Expand Down
2 changes: 1 addition & 1 deletion crates/swss-common/src/types/zmqserver.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use super::*;
use crate::*;
use crate::bindings::*;
use std::sync::Arc;

/// Rust wrapper around `swss::ZmqServer`.
Expand Down

0 comments on commit 6cae18a

Please sign in to comment.