Skip to content

Commit

Permalink
Add common crate to workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
Marzi committed May 14, 2024
1 parent 2e0b623 commit 7f6eeeb
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 7 deletions.
11 changes: 10 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ members = [
".generated-sources/emily",
"emily/lambda",
"blocklist-client"
]
, "common"]

[profile.dev]
# Disabling debug info speeds up builds a bunch,
Expand Down
6 changes: 3 additions & 3 deletions blocklist-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ path = "src/main.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
sbtc-common = { path = "../common" }
config = "0.11"
once_cell = "1.8.0"
reqwest = { version = "0.11", features = ["json"] }
sbtc-signer = { path = "../signer" }
serde.workspace = true
serde = { workspace = true, features = ["derive"] }
serde_json.workspace = true
thiserror.workspace = true
tokio = { version = "1.32.0", features = ["rt-multi-thread", "rt", "macros"] }
tracing.workspace = true
tracing-attributes.workspace = true
tracing-subscriber = { version = "0.3", default-features = false, features = ["env-filter", "fmt", "json", "time"] }
tracing-subscriber.workspace = true
warp = "0.3"

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion blocklist-client/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::config::SETTINGS;
use reqwest::Client;
use sbtc_signer::logging::setup_logging;
use sbtc_common::logging::setup_logging;
use std::net::ToSocketAddrs;
use tracing::{error, info};
use warp::Filter;
Expand Down
11 changes: 11 additions & 0 deletions common/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[package]
name = "sbtc-common"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
tracing.workspace = true
tracing-attributes.workspace = true
tracing-subscriber.workspace = true
1 change: 1 addition & 0 deletions common/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod logging;
File renamed without changes.
1 change: 0 additions & 1 deletion signer/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
pub mod codec;
pub mod ecdsa;
pub mod error;
pub mod logging;
pub mod message;
pub mod network;
pub mod packaging;
Expand Down

0 comments on commit 7f6eeeb

Please sign in to comment.