aboutsummaryrefslogtreecommitdiffstats
path: root/log_db
diff options
context:
space:
mode:
Diffstat (limited to 'log_db')
-rw-r--r--log_db/Cargo.toml3
-rw-r--r--log_db/src/common.rs12
-rw-r--r--log_db/src/lib.rs8
3 files changed, 9 insertions, 14 deletions
diff --git a/log_db/Cargo.toml b/log_db/Cargo.toml
index e2fe7f5..45df64d 100644
--- a/log_db/Cargo.toml
+++ b/log_db/Cargo.toml
@@ -4,13 +4,12 @@ version = "0.1.0"
edition = "2021"
[lib]
-crate-type = ["lib"]
+crate-type = ["lib", "cdylib", "staticlib"]
[dependencies]
fs2 = "0.4.3"
log = "0.4.22"
once_cell = "1.20.2"
-priority-queue = "2.1.1"
rust_decimal = { version = "1.36.0", features = [] }
tempfile = "3.13.0"
thiserror = "2.0.1"
diff --git a/log_db/src/common.rs b/log_db/src/common.rs
index 9a41074..3a5fbfe 100644
--- a/log_db/src/common.rs
+++ b/log_db/src/common.rs
@@ -1,14 +1,4 @@
-use fs2::{lock_contended_error, FileExt};
-use once_cell::sync::Lazy;
-use rust_decimal::Decimal;
-use std::cmp::Ordering;
-use std::collections::HashSet;
-use std::fs::{self, metadata, File};
-use std::io::{self, Read, Seek, SeekFrom, Write};
-use std::ops::{Bound, RangeBounds};
-use std::path::{Path, PathBuf};
-use thiserror::Error;
-use uuid::Uuid;
+use super::*;
// For Unix-like systems
#[cfg(unix)]
diff --git a/log_db/src/lib.rs b/log_db/src/lib.rs
index 72e5f81..698ce64 100644
--- a/log_db/src/lib.rs
+++ b/log_db/src/lib.rs
@@ -2,15 +2,21 @@
extern crate log;
use fs2::{lock_contended_error, FileExt};
+use once_cell::sync::Lazy;
+use rust_decimal::Decimal;
+use std::cmp::Ordering;
use std::collections::BTreeMap;
+use std::collections::HashSet;
use std::fmt::Debug;
use std::fmt::Display;
-use std::fs::{self};
+use std::fs::{self, metadata, File};
use std::io::{self, Read, Seek, SeekFrom, Write};
use std::marker::PhantomData;
use std::ops::*;
use std::path::{Path, PathBuf};
use std::thread;
+use thiserror::Error;
+use uuid::Uuid;
#[macro_use]
mod common;