Skip to content

Commit 6e4b1ab

Browse files
committed
mod: introduce cass_inet_types module
1 parent 3e2b010 commit 6e4b1ab

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

scylla-rust-wrapper/build.rs

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 2 deletions
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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ pub mod cass_collection_types {
8484
include_bindgen_generated!("cppdriver_collection_types.rs");
8585
}
8686

87+
/// CassInet
88+
pub mod cass_inet_types {
89+
#![allow(non_camel_case_types, non_snake_case)]
90+
91+
include_bindgen_generated!("cppdriver_inet_types.rs");
92+
}
93+
8794
lazy_static! {
8895
pub static ref RUNTIME: Runtime = Runtime::new().unwrap();
8996
pub static ref LOGGER: RwLock<Logger> = RwLock::new(Logger {

0 commit comments

Comments
 (0)