Skip to content

Commit 0fd6c71

Browse files
committed
mod: introduce cass_uuid_types module
1 parent 88af72b commit 0fd6c71

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

scylla-rust-wrapper/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ fn main() {
132132
&out_path,
133133
);
134134
prepare_cppdriver_data(
135-
"cppdriver_data_uuid.rs",
135+
"cppdriver_uuid_types.rs",
136136
&["CassUuid_", "CassUuid"],
137137
&out_path,
138138
);

scylla-rust-wrapper/src/lib.rs

+12
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,18 @@ pub mod cass_log_types {
9191
include!(concat!(env!("OUT_DIR"), "/cppdriver_log_types.rs"));
9292
}
9393

94+
/// CassColumnType
95+
pub mod cass_column_types {
96+
include!(concat!(env!("OUT_DIR"), "/cppdriver_column_type.rs"));
97+
}
98+
99+
/// CassUuid
100+
pub mod cass_uuid_types {
101+
#![allow(non_camel_case_types, non_snake_case)]
102+
103+
include!(concat!(env!("OUT_DIR"), "/cppdriver_uuid_types.rs"));
104+
}
105+
94106
lazy_static! {
95107
pub static ref RUNTIME: Runtime = Runtime::new().unwrap();
96108
pub static ref LOGGER: RwLock<Logger> = RwLock::new(Logger {

scylla-rust-wrapper/src/metadata.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use crate::argconv::*;
2+
use crate::cass_column_types::CassColumnType;
23
use crate::cass_types::get_column_type_from_cql_type;
34
use crate::cass_types::CassDataType;
45
use crate::types::*;
@@ -8,8 +9,6 @@ use std::os::raw::c_char;
89
use std::sync::Arc;
910
use std::sync::Weak;
1011

11-
include!(concat!(env!("OUT_DIR"), "/cppdriver_column_type.rs"));
12-
1312
pub struct CassSchemaMeta {
1413
pub keyspaces: HashMap<String, CassKeyspaceMeta>,
1514
}

scylla-rust-wrapper/src/uuid.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::sync::atomic::{AtomicU64, Ordering};
1110
use std::time::{SystemTime, UNIX_EPOCH};
1211
use uuid::Uuid;
1312

14-
include!(concat!(env!("OUT_DIR"), "/cppdriver_data_uuid.rs"));
13+
pub(crate) use crate::cass_uuid_types::CassUuid;
1514

1615
pub struct CassUuidGen {
1716
pub clock_seq_and_node: cass_uint64_t,

0 commit comments

Comments
 (0)