diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2a67eb69..e8d9ecaa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,6 +62,9 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - - run: cargo install -q worker-build + # TODO(augustoccesar)[2026-02-25]: From 0.7.0, the worker-build version is aligned + # with the version of the worker crate. When bumping the worker, it needs to also + # bump the worker-build. + - run: cargo install -q worker-build@0.1.4 - run: worker-build --release working-directory: worker diff --git a/linkup-cli/build.rs b/linkup-cli/build.rs index 7d10252e..193d7f05 100644 --- a/linkup-cli/build.rs +++ b/linkup-cli/build.rs @@ -11,7 +11,10 @@ fn main() { let worker_target_dir = Path::new(&out_dir).join("worker-target"); let install_status = Command::new("cargo") - .args(["install", "-q", "worker-build"]) + // TODO(augustoccesar)[2026-02-25]: From 0.7.0, the worker-build version is aligned + // with the version of the worker crate. When bumping the worker, it needs to also + // bump the worker-build. + .args(["install", "-q", "worker-build@0.1.4"]) .current_dir("../worker") .env("CARGO_TARGET_DIR", &worker_target_dir) .status() diff --git a/linkup-cli/src/commands/deploy/api.rs b/linkup-cli/src/commands/deploy/api.rs index 9cf3b476..a92c1cd5 100644 --- a/linkup-cli/src/commands/deploy/api.rs +++ b/linkup-cli/src/commands/deploy/api.rs @@ -179,12 +179,6 @@ struct CfBinding { // Possibly other fields like namespace_id, secret text, etc. } -#[derive(Serialize, Deserialize, Debug, Clone)] -struct CloudflareErrorInfo { - code: Option, - message: String, -} - #[derive(Deserialize, Debug)] struct KvNamespace { id: String, diff --git a/linkup-cli/src/services/cloudflare_tunnel.rs b/linkup-cli/src/services/cloudflare_tunnel.rs index f1619ac8..60b1e87e 100644 --- a/linkup-cli/src/services/cloudflare_tunnel.rs +++ b/linkup-cli/src/services/cloudflare_tunnel.rs @@ -12,7 +12,7 @@ use hickory_resolver::{ proto::rr::RecordType, TokioAsyncResolver, }; -use log::{debug, error}; +use log::debug; use serde::{Deserialize, Serialize}; use tokio::time::sleep; use url::Url; diff --git a/worker/wrangler.toml.sample b/worker/wrangler.toml.sample index 426d63f4..519a1580 100644 --- a/worker/wrangler.toml.sample +++ b/worker/wrangler.toml.sample @@ -18,4 +18,7 @@ WORKER_TOKEN = "token123" crons = [ "0 12 * * 2-6" ] [build] -command = "cargo install -q worker-build && worker-build --release" +# TODO(augustoccesar)[2026-02-25]: From 0.7.0, the worker-build version is aligned +# with the version of the worker crate. When bumping the worker, it needs to also +# bump the worker-build. +command = "cargo install -q worker-build@0.1.4 && worker-build --release"