diff --git a/Cargo.toml b/Cargo.toml index 0431ea1e..8b1bc936 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,21 @@ exclude = ["examples/coredump"] resolver = "2" [workspace.dependencies] -worker = { path="./worker" } +worker = { path = "./worker" } +async-trait = "0.1.74" +chrono = { version = "0.4.35", default-features = false, features = [ + "wasmbind", +] } +chrono-tz = { version = "0.8.4", default-features = false } +futures-channel = "0.3.29" +futures-util = { version = "0.3.29", default-features = false } +http = "1.0.0" +js-sys = "0.3.66" +wasm-bindgen = "0.2.91" +wasm-bindgen-cli-support = "0.2.91" +wasm-bindgen-futures = "0.4.39" +wasm-bindgen-macro-support = "0.2.91" +wasm-bindgen-test = "0.3.39" [profile.release] # rustc supports two "optimize for size" levels: opt-level = "s" and "z". @@ -35,4 +49,3 @@ lto = true [profile.release.package."*"] codegen-units = 1 opt-level = "z" - diff --git a/worker-build/Cargo.toml b/worker-build/Cargo.toml index fa6a8c68..574a3340 100644 --- a/worker-build/Cargo.toml +++ b/worker-build/Cargo.toml @@ -19,4 +19,4 @@ tar = "0.4.38" ureq = { version = "2.6.2", features = ["tls", "gzip"] } [dev-dependencies] -wasm-bindgen-cli-support = "0.2.87" +wasm-bindgen-cli-support.workspace = true diff --git a/worker-macros/Cargo.toml b/worker-macros/Cargo.toml index d6856d37..ee885522 100644 --- a/worker-macros/Cargo.toml +++ b/worker-macros/Cargo.toml @@ -12,14 +12,14 @@ proc-macro = true path = "src/lib.rs" [dependencies] -async-trait = "0.1.68" +async-trait.workspace = true +wasm-bindgen.workspace = true +wasm-bindgen-futures.workspace = true +wasm-bindgen-macro-support.workspace = true worker-sys = { path = "../worker-sys", version = "0.0.12" } syn = "2.0.17" proc-macro2 = "1.0.60" quote = "1.0.28" -wasm-bindgen = "0.2" -wasm-bindgen-futures = "0.4.36" -wasm-bindgen-macro-support = "0.2.87" [features] queue = [] diff --git a/worker-sandbox/Cargo.toml b/worker-sandbox/Cargo.toml index 474e5200..238be9d5 100644 --- a/worker-sandbox/Cargo.toml +++ b/worker-sandbox/Cargo.toml @@ -16,8 +16,10 @@ path = "src/lib.rs" default = ["console_error_panic_hook"] [dependencies] +futures-channel.workspace = true +futures-util.workspace = true blake2 = "0.10.6" -chrono = { version = "0.4.26", default-features = false, features = [ +chrono = { version = "0.4.35", default-features = false, features = [ "wasmbind", "clock", ] } @@ -30,16 +32,15 @@ regex = "1.8.4" serde = { version = "1.0.164", features = ["derive"] } serde_json = "1.0.96" worker = { path = "../worker", version = "0.0.20", features = ["queue", "d1"] } -futures-channel = "0.3.28" -futures-util = { version = "0.3.28", default-features = false } rand = "0.8.5" uuid = { version = "1.3.3", features = ["v4", "serde"] } serde-wasm-bindgen = "0.6.1" md5 = "0.7.0" [dev-dependencies] -futures-channel = { version = "0.3.28", features = ["sink"] } -futures-util = { version = "0.3.28", default-features = false, features = [ +wasm-bindgen-test.workspace = true +futures-channel = { version = "0.3.29", features = ["sink"] } +futures-util = { version = "0.3.29", default-features = false, features = [ "sink", ] } reqwest = { version = "0.11.18", features = [ @@ -50,5 +51,4 @@ reqwest = { version = "0.11.18", features = [ ] } tokio = { version = "1.28.2", features = ["macros", "rt", "test-util"] } tungstenite = "0.21" -wasm-bindgen-test = "0.3.36" retry = "2.0.0" diff --git a/worker-sys/Cargo.toml b/worker-sys/Cargo.toml index 26e69925..11892293 100644 --- a/worker-sys/Cargo.toml +++ b/worker-sys/Cargo.toml @@ -8,9 +8,9 @@ repository = "https://github.com/cloudflare/workers-rs/tree/main/worker-sys" description = "Low-level extern definitions / FFI bindings to the Cloudflare Workers JS Runtime." [dependencies] +js-sys.workspace = true +wasm-bindgen.workspace = true cfg-if = "1.0.0" -js-sys = "0.3.63" -wasm-bindgen = "0.2" [dependencies.web-sys] version = "0.3.63" diff --git a/worker/Cargo.toml b/worker/Cargo.toml index 8e4aee56..a5f9f0f8 100644 --- a/worker/Cargo.toml +++ b/worker/Cargo.toml @@ -12,23 +12,21 @@ readme = "../README.md" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -async-trait = "0.1.68" -chrono = { version = "0.4.26", default-features = false, features = [ - "wasmbind", -] } -chrono-tz = { version = "0.8.2", default-features = false } -futures-channel = "0.3.28" -futures-util = { version = "0.3.28", default-features = false } +async-trait.workspace = true +chrono.workspace = true +chrono-tz.workspace = true +futures-channel.workspace = true +futures-util.workspace = true +wasm-bindgen.workspace = true +wasm-bindgen-futures.workspace = true +js-sys.workspace = true http = "1" -js-sys = "0.3.63" matchit = "0.7" pin-project = "1.1.0" serde = { version = "1.0.164", features = ["derive"] } serde_json = "1.0.96" tokio = { version = "1.28", default-features = false } url = "2.4.0" -wasm-bindgen = "0.2" -wasm-bindgen-futures = "0.4.36" serde-wasm-bindgen = "0.6.1" serde_urlencoded = "0.7" wasm-streams = "0.4" @@ -47,7 +45,7 @@ features = [ [dependencies.tokio-postgres] version = "0.7" -default-features=false +default-features = false features = ["js"] optional = true