refactor: Divide common crate into small crates

This commit is contained in:
evenyag
2022-04-25 17:03:05 +08:00
parent 7f075d2c0f
commit 49081d818c
8 changed files with 10 additions and 10 deletions
Generated
+5 -5
View File
@@ -33,6 +33,10 @@ version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
[[package]]
name = "base"
version = "0.1.0"
[[package]]
name = "bytemuck"
version = "1.9.1"
@@ -69,10 +73,6 @@ dependencies = [
"num-traits",
]
[[package]]
name = "common"
version = "0.1.0"
[[package]]
name = "datanode"
version = "0.1.0"
@@ -85,7 +85,7 @@ name = "datatypes"
version = "0.1.0"
dependencies = [
"arrow2",
"common",
"base",
"paste",
]
+1 -1
View File
@@ -1,6 +1,6 @@
[workspace]
members = [
"src/common",
"src/common/base",
"src/datanode",
"src/datatypes",
"src/log-store",
@@ -1,5 +1,5 @@
[package]
name = "common"
name = "base"
version = "0.1.0"
edition = "2021"
+1 -1
View File
@@ -6,6 +6,6 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
common = { path = "../common" }
base = { path = "../common/base" }
arrow2 = "0.10"
paste = "1.0"
+1 -1
View File
@@ -1,7 +1,7 @@
use std::sync::Arc;
use arrow2::datatypes::DataType as ArrowDataType;
use common::bytes::StringBytes;
use base::bytes::StringBytes;
use crate::data_type::{DataType, DataTypeRef};
use crate::type_id::LogicalTypeId;
+1 -1
View File
@@ -1,4 +1,4 @@
use common::bytes::{Bytes, StringBytes};
use base::bytes::{Bytes, StringBytes};
/// Value holds a single arbitrary value of any [DataType](crate::data_type::DataType).
#[derive(Debug)]