diff options
| -rw-r--r-- | Cargo.lock | 12 | ||||
| -rw-r--r-- | log_db/Cargo.toml | 3 | ||||
| -rw-r--r-- | log_db/src/common.rs | 12 | ||||
| -rw-r--r-- | log_db/src/lib.rs | 8 |
4 files changed, 9 insertions, 26 deletions
@@ -618,7 +618,6 @@ dependencies = [ "fs2", "log", "once_cell", - "priority-queue", "rand", "rust_decimal", "serial_test", @@ -742,17 +741,6 @@ dependencies = [ ] [[package]] -name = "priority-queue" -version = "2.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "714c75db297bc88a63783ffc6ab9f830698a6705aa0201416931759ef4c8183d" -dependencies = [ - "autocfg", - "equivalent", - "indexmap", -] - -[[package]] name = "proc-macro-crate" version = "3.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" 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; |
