Skip to content

Commit

Permalink
build(deps): address undeclared crate or module errors on Windows f…
Browse files Browse the repository at this point in the history
…or `scheduler` crate (#2411)
  • Loading branch information
SanchithHegde authored Oct 4, 2023
1 parent 099b241 commit 4225238
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 141 deletions.
109 changes: 8 additions & 101 deletions Cargo.lock

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

47 changes: 14 additions & 33 deletions crates/scheduler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,51 +9,32 @@ olap = []
kv_store = []

[dependencies]
async-bb8-diesel = { git = "https://github.com/juspay/async-bb8-diesel", rev = "9a71d142726dbc33f41c1fd935ddaa79841c7be5" }
clap = { version = "4.2.2", default-features = false, features = ["std", "derive", "help", "usage"] }
diesel = { version = "2.0.3", features = ["postgres", "serde_json", "time"] }
# Third party crates
async-trait = "0.1.68"
error-stack = "0.3.1"
frunk = "0.4.1"
frunk_core = "0.4.1"
futures = "0.3.28"
once_cell = "1.17.1"
serde = "1.0.159"
serde_json = "1.0.91"
strum = { version = "0.24.1", features = ["derive"] }
time = { version = "0.3.20", features = ["serde", "serde-well-known", "std"] }
env_logger = "0.10.0"
once_cell = "1.18.0"
rand = "0.8.5"
signal-hook = "0.3.15"
uuid = { version = "1.3.1", features = ["serde", "v4"] }
serde = "1.0.163"
serde_json = "1.0.96"
strum = { version = "0.24.1", features = ["derive"] }
thiserror = "1.0.40"
time = { version = "0.3.21", features = ["serde", "serde-well-known", "std"] }
tokio = { version = "1.28.2", features = ["macros", "rt-multi-thread"] }
uuid = { version = "1.3.3", features = ["serde", "v4"] }

# First party crates
api_models = { version = "0.1.0", path = "../api_models", features = ["errors"] }
common_utils = { version = "0.1.0", path = "../common_utils", features = ["signals", "async_ext"] }
cards = { version = "0.1.0", path = "../cards" }
diesel_models = { version = "0.1.0", path = "../diesel_models", features = ["kv_store"] }
external_services = { version = "0.1.0", path = "../external_services" }
masking = { version = "0.1.0", path = "../masking" }
redis_interface = { version = "0.1.0", path = "../redis_interface" }
router_derive = { version = "0.1.0", path = "../router_derive" }
storage_impl = { version = "0.1.0", path = "../storage_impl" , default-features = false }
router_env = { version = "0.1.0", path = "../router_env", features = ["log_extra_implicit_fields", "log_custom_entries_to_extra"] }
diesel_models = { version = "0.1.0", path = "../diesel_models", features = ["kv_store"] }
actix-multipart = "0.6.0"
aws-sdk-s3 = { version = "0.25.0", optional = true }
aws-config = {version = "0.55.1", optional = true }
infer = "0.13.0"
storage_impl = { version = "0.1.0", path = "../storage_impl", default-features = false }

[target.'cfg(not(target_os = "windows"))'.dependencies]
signal-hook-tokio = { version = "0.3.1", features = ["futures-v0_3"]}

# Third party crates
actix-rt = "2.8.0"
actix-web = "4.3.1"
thiserror = "1.0.39"
async-trait = "0.1.66"
dyn-clone = "1.0.11"
tokio = { version = "1.26.0", features = ["macros", "rt-multi-thread"] }

signal-hook-tokio = { version = "0.3.1", features = ["futures-v0_3"] }

# [[bin]]
# name = "scheduler"
# path = "src/bin/scheduler.rs"
# path = "src/bin/scheduler.rs"
7 changes: 0 additions & 7 deletions crates/scheduler/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,10 +377,3 @@ where
Ok(())
}
}

#[cfg(target_os = "windows")]
pub(crate) async fn signal_handler(
_sig: common_utils::signals::DummySignal,
_sender: oneshot::Sender<()>,
) {
}

0 comments on commit 4225238

Please sign in to comment.