Skip to content

Commit 10a7123

Browse files
committed
mod: introduce cass_collection_types module
1 parent 12fbf22 commit 10a7123

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

scylla-rust-wrapper/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ fn main() {
107107
&out_path,
108108
);
109109
prepare_cppdriver_data(
110-
"cppdriver_data_collection.rs",
110+
"cppdriver_collection_types.rs",
111111
&["CassCollectionType_", "CassCollectionType"],
112112
&out_path,
113113
);

scylla-rust-wrapper/src/collection.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use crate::cass_collection_types::CassCollectionType;
12
use crate::cass_error::CassError;
23
use crate::cass_types::{CassDataType, MapDataType};
34
use crate::types::*;
@@ -6,8 +7,6 @@ use crate::{argconv::*, value};
67
use std::convert::TryFrom;
78
use std::sync::Arc;
89

9-
include!(concat!(env!("OUT_DIR"), "/cppdriver_data_collection.rs"));
10-
1110
// These constants help us to save an allocation in case user calls `cass_collection_new` (untyped collection).
1211
static UNTYPED_LIST_TYPE: CassDataType = CassDataType::List {
1312
typ: None,

scylla-rust-wrapper/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ pub mod cass_compression_types {
7272
include!(concat!(env!("OUT_DIR"), "/cppdriver_compression_types.rs"));
7373
}
7474

75+
/// CassCollectionType
76+
pub mod cass_collection_types {
77+
include!(concat!(env!("OUT_DIR"), "/cppdriver_collection_types.rs"));
78+
}
79+
7580
lazy_static! {
7681
pub static ref RUNTIME: Runtime = Runtime::new().unwrap();
7782
pub static ref LOGGER: RwLock<Logger> = RwLock::new(Logger {

0 commit comments

Comments
 (0)