Skip to content

Commit

Permalink
separate sync and async crates
Browse files Browse the repository at this point in the history
  • Loading branch information
giuseppe-g-gelardi committed Dec 7, 2024
1 parent 823cb46 commit 29a3cb9
Show file tree
Hide file tree
Showing 23 changed files with 1,562 additions and 453 deletions.
19 changes: 8 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
[package]
[workspace]
members = [
"cargobase",
"cargobase-async"
]

[workspace.package]
name = "cargobase"
version = "0.1.1"
edition = "2021"

[dependencies]
[workspae.dependencies]
serde = { version = "1.0.215", features = ["derive"] }
serde_json = { version = "1.0.132", features = ["raw_value"] }
serde_derive = "1.0.188"
base64 = "0.22.1"
# tokio = { version = "1", features = ["full"], optional = true}
tokio = { version = "1", features = ["full"] }
uuid = {version ="1.11.0", features = ["v4"] }
thiserror = "2.0.3"
Expand All @@ -17,11 +22,3 @@ serde-reflection = "0.4.0"
tracing = "0.1"
tracing-subscriber = "0.3"
tracing-test = "0.2.5"

# [features]
# default = ["sync", "async"] # for development
# default = ["sync"]
# sync = [] # synchronous features only
# async = ["tokio"] # asynchronous features only
# full = ["sync", "async"] # all features
# still need a feature for logging/tracing
21 changes: 21 additions & 0 deletions cargobase-async/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[package]
name = "cargobase-async"
version = "0.1.1"
edition = "2021"

[dependencies]
serde = { version = "1.0.215", features = ["derive"] }
serde_json = { version = "1.0.132", features = ["raw_value"] }
serde_derive = "1.0.188"
serde-reflection = "0.4.0"
base64 = "0.22.1"
tokio = { version = "1", features = ["full"] }
uuid = {version ="1.11.0", features = ["v4"] }
thiserror = "2.0.3"
tempfile = "3.14.0"
tracing = "0.1"
tracing-subscriber = "0.3"
tracing-test = "0.2.5"

[lib]
path = "src/lib.rs"
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use serde_json::Value;
use serde_reflection::{ContainerFormat, Named, Tracer, TracerConfig};
use tracing;

use super::DatabaseError;
use crate::DatabaseError;

#[derive(Debug, PartialEq, Serialize, Deserialize, Clone)]
pub struct Column {
Expand Down
Loading

0 comments on commit 29a3cb9

Please sign in to comment.