Skip to content

Commit ef71890

Browse files
committed
mod: introduce cass_inet_types module
1 parent 10a7123 commit ef71890

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

scylla-rust-wrapper/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ fn main() {
117117
&out_path,
118118
);
119119
prepare_cppdriver_data(
120-
"cppdriver_data_inet.rs",
120+
"cppdriver_inet_types.rs",
121121
&["CassInet_", "CassInet"],
122122
&out_path,
123123
);

scylla-rust-wrapper/src/inet.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![allow(non_camel_case_types, non_snake_case)]
21
use crate::argconv::*;
32
use crate::cass_error::CassError;
43
use crate::types::*;
@@ -11,7 +10,7 @@ use std::os::raw::c_char;
1110
use std::slice::from_raw_parts;
1211
use std::str::FromStr;
1312

14-
include!(concat!(env!("OUT_DIR"), "/cppdriver_data_inet.rs"));
13+
pub(crate) use crate::cass_inet_types::CassInet;
1514

1615
#[repr(u8)] // address_length field in CassInet is cass_uint8_t
1716
#[allow(non_camel_case_types)]

scylla-rust-wrapper/src/lib.rs

+7
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,13 @@ pub mod cass_collection_types {
7777
include!(concat!(env!("OUT_DIR"), "/cppdriver_collection_types.rs"));
7878
}
7979

80+
/// CassInet
81+
pub mod cass_inet_types {
82+
#![allow(non_camel_case_types, non_snake_case)]
83+
84+
include!(concat!(env!("OUT_DIR"), "/cppdriver_inet_types.rs"));
85+
}
86+
8087
lazy_static! {
8188
pub static ref RUNTIME: Runtime = Runtime::new().unwrap();
8289
pub static ref LOGGER: RwLock<Logger> = RwLock::new(Logger {

0 commit comments

Comments
 (0)