Open sontixyou opened 1 day ago
workers-rs
0.4.2
wrangler
3.81.0
Failed to compile wasm-bindgen-cli v0.2.95 when I exec npx wrangler dev command on mac OS14.6.1
npx wrangler dev
npx wrangler dev ⛅️ wrangler 3.81.0 ------------------- Running custom build: cargo install -q worker-build && worker-build --release ╭──────────────────────────────────────────────────────────────────────────────────────────────────╮ │ [b] open a browser, [d] open devtools, [l] turn off local mode, [c] clear console, [x] to exit │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ [INFO]: 🎯 Checking for the Wasm target... [INFO]: 🌀 Compiling to Wasm... Compiling wasm-bindgen-shared v0.2.93 Compiling wasm-bindgen v0.2.93 Compiling wasm-bindgen-backend v0.2.93 Compiling wasm-bindgen-macro-support v0.2.93 Compiling wasm-bindgen-macro v0.2.93 Compiling js-sys v0.3.70 Compiling console_error_panic_hook v0.1.7 Compiling web-sys v0.3.70 Compiling wasm-bindgen-futures v0.4.43 Compiling worker-sys v0.4.2 Compiling serde-wasm-bindgen v0.5.0 Compiling serde-wasm-bindgen v0.6.5 Compiling chrono v0.4.38 Compiling worker-kv v0.7.0 Compiling worker-macros v0.4.2 Compiling wasm-streams v0.4.1 Compiling worker v0.4.2 Compiling webtip-poc v0.1.0 (/Users/kengo/projects/rust-projects/webtip-poc) Finished `release` profile [optimized] target(s) in 8.78s [INFO]: ⬇️ Installing wasm-bindgen... [INFO]: Optional fields missing from Cargo.toml: 'description', 'repository', and 'license'. These are not necessary, but recommended [INFO]: ✨ Done in 8.97s [INFO]: 📦 Your wasm pkg is ready to publish at /Users/kengo/projects/rust-projects/webtip-poc/build. The file src changed, restarting build... Running custom build: cargo install -q worker-build && worker-build --release [wrangler:inf] Ready on http://localhost:56841 ╭──────────────────────────────────────────────────────────────────────────────────────────────────╮ │ [b] open a browser, [d] open devtools, [l] turn off local mode, [c] clear console, [x] to exit │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ [INFO]: 🎯 Checking for the Wasm target... [INFO]: 🌀 Compiling to Wasm... Finished `release` profile [optimized] target(s) in 0.03s [INFO]: ⬇️ Installing wasm-bindgen... [INFO]: Optional fields missing from Cargo.toml: 'description', 'repository', and 'license'. These are not necessary, but recommended [INFO]: ✨ Done in 0.21s [INFO]: 📦 Your wasm pkg is ready to publish at /Users/kengo/projects/rust-projects/webtip-poc/build. ⎔ Starting local server...
I exec cargo generate cloudflare/workers-rs. There files are generated.
cargo generate cloudflare/workers-rs
Cargo.toml
[package] name = "hoge" version = "0.1.0" edition = "2021" authors = [""] [package.metadata.release] release = false # https://github.com/rustwasm/wasm-pack/issues/1247 [package.metadata.wasm-pack.profile.release] wasm-opt = false [lib] crate-type = ["cdylib"] [dependencies] worker = { version = "0.4.2", features = ['http', 'axum'] } worker-macros = { version = "0.4.2", features = ['http'] } axum = { version = "0.7", default-features = false } tower-service = "0.3.2" console_error_panic_hook = { version = "0.1.1" }
Wrangler.toml
name = "webtip-poc" main = "build/worker/shim.mjs" compatibility_date = "2024-10-19" [build] command = "cargo install -q worker-build && worker-build --release"
src/lib.rs
use axum::{routing::get, Router}; use tower_service::Service; use worker::*; fn router() -> Router { Router::new().route("/", get(root)) } #[event(fetch)] async fn fetch( req: HttpRequest, _env: Env, _ctx: Context, ) -> Result<axum::http::Response<axum::body::Body>> { console_error_panic_hook::set_once(); Ok(router().call(req).await?) } pub async fn root() -> &'static str { "Hello Axum!" }
Next, I exec npx wrangler dev. Failed to compile wasm-bindgen-cli v0.2.95.
npx wrangler dev ⛅️ wrangler 3.81.0 ------------------- Running custom build: cargo install -q worker-build && worker-build --release ╭──────────────────────────────────────────────────────────────────────────────────────────────────╮ │ [b] open a browser, [d] open devtools, [l] turn off local mode, [c] clear console, [x] to exit │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ [INFO]: 🎯 Checking for the Wasm target... [INFO]: 🌀 Compiling to Wasm... Compiling webtip-poc v0.1.0 (/Users/user_name/projects/rust-projects/webtip-poc) Finished `release` profile [optimized] target(s) in 0.33s [INFO]: ⬇️ Installing wasm-bindgen... Updating crates.io index Installing wasm-bindgen-cli v0.2.95 Updating crates.io index Locking 164 packages to latest compatible versions Adding base64 v0.13.1 (latest: v0.22.1) Adding fallible-iterator v0.2.0 (latest: v0.3.0) Adding gimli v0.26.2 (latest: v0.31.1) Adding hashbrown v0.12.3 (latest: v0.15.0) Adding hashbrown v0.14.5 (latest: v0.15.0) Adding hermit-abi v0.3.9 (latest: v0.4.0) Adding idna v0.5.0 (latest: v1.0.2) Adding indexmap v1.9.3 (latest: v2.6.0) Adding linux-raw-sys v0.4.14 (latest: v0.6.5) Adding quick-error v1.2.3 (latest: v2.0.1) Adding strsim v0.10.0 (latest: v0.11.1) Adding twoway v0.1.8 (latest: v0.2.2) Adding wasi v0.11.0+wasi-snapshot-preview1 (latest: v0.13.3+wasi-0.2.2) Adding wasm-encoder v0.212.0 (latest: v0.219.1) Adding wasmparser v0.212.0 (latest: v0.219.1) Adding windows-core v0.52.0 (latest: v0.58.0) Adding windows-sys v0.52.0 (latest: v0.59.0) Adding zerocopy v0.7.35 (latest: v0.8.6) Adding zerocopy-derive v0.7.35 (latest: v0.8.6) Compiling proc-macro2 v1.0.88 Compiling unicode-ident v1.0.13 Compiling cfg-if v1.0.0 Compiling libc v0.2.161 Compiling byteorder v1.5.0 Compiling autocfg v1.4.0 Compiling serde v1.0.210 Compiling once_cell v1.20.2 Compiling log v0.4.22 Compiling crossbeam-utils v0.8.20 Compiling memchr v2.7.4 Compiling version_check v0.9.5 Compiling bitflags v2.6.0 Compiling rayon-core v1.12.1 error: linking with `cc` failed: exit status: 1 | = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET -u XROS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rust lib/aarch64-apple-darwin/bin:/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/Users/user_name/.rustup/toolchains/stable-aarch64-apple-da rwin/lib/rustlib/aarch64-apple-darwin/bin:/Users/user_name/.npm/_npx/32026684e21afda6/node_modules/.bin:/Users/user_name/projects/rust-projects/webtip-poc/node_modules/.bin:/Users/user_name/pro jects/rust-projects/node_modules/.bin:/Users/user_name/projects/node_modules/.bin:/Users/user_name/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/user_name/.asdf/installs/ nodejs/18.17.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/user_name/.asdf/plugins/nodejs/shims:/Users/user_name/.asdf/installs/nodejs/18.17.0/bin:/opt/home brew/opt/postgresql@16/bin:/opt/homebrew/opt/llvm/bin:/opt/homebrew/opt/mysql@5.7/bin:/opt/homebrew/opt/mysql@8.0/bin:/Users/user_name/.pyenv/shims:/Users/user_name/.asdf/shims:/opt/homebre w/opt/asdf/libexec/bin:/opt/homebrew/Cellar/cmake/3.29.2/bin:/opt/homebrew/opt/gawk/libexec/gnubin:/opt/homebrew/opt/sqlite/bin:/opt/homebrew/opt/libpq/bin:/opt/homebrew/opt/openssl @1.1/bin:/Users/user_name/.zplug/repos/zplug/zplug/bin:/Users/user_name/.zplug/bin:/Users/user_name/.local/share/nvim/mason/bin:/opt/homebrew/opt/postgresql@16/bin:/opt/homebrew/opt/llvm/bin:/o pt/homebrew/opt/mysql@5.7/bin:/opt/homebrew/opt/mysql@8.0/bin:/opt/homebrew/Cellar/cmake/3.29.2/bin:/opt/homebrew/opt/gawk/libexec/gnubin:/opt/homebrew/opt/sqlite/bin:/opt/homebrew/ opt/libpq/bin:/opt/homebrew/opt/openssl@1.1/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.se curity.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/ usr/appleinternal/bin:/Library/Apple/usr/bin:/Users/user_name/.cargo/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "arm64" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/rustczpGx gV/symbols.o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/crossbeam-utils-ce03de29b1039ccb/build_script_build-ce03de29b1039ccb.build_script_b uild.90fed92e61ded4d8-cgu.0.rcgu.o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/crossbeam-utils-ce03de29b1039ccb/build_script_build-ce03de29b 1039ccb.build_script_build.90fed92e61ded4d8-cgu.1.rcgu.o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/crossbeam-utils-ce03de29b1039ccb/build_ script_build-ce03de29b1039ccb.6hn01xefba5iwch0udai3saz6.rcgu.o" "-L" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/deps" "-L" "/Users/user_name/.rustup/t oolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd- 0f9bda72675979e4.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-51773ba94f264ce4.rlib" "/Users/user_name/.rustup /toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-79130ad3ad7802b2.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustli b/aarch64-apple-darwin/lib/libmemchr-81f43cdd1f7d7095.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-12c2628c83 917178.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-34000eb5b4402af9.rlib" "/Users/user_name/.rustup/toolchains/stabl e-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-6e14ac007075e94c.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64 -apple-darwin/lib/libstd_detect-bd30e1a2296ebf34.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-44fc4705e85ac7c a.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-f11d6ba5d61218f4.rlib" "/Users/user_name/.rustup/t oolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-a1543c9c7e6c02bb.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rus tlib/aarch64-apple-darwin/lib/libadler-7efc4608b0bc96f7.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-85a6d450f72 e1aab.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-cf81a5498b42604d.rlib" "/Users/user_name/.rustup/toolchains/stabl e-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-4484e05b7089b5ef.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-dar win/lib/liballoc-3d4e98832b983b89.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-a22427de72ab363 0.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-d8cea91d43634f65.rlib" "/Users/user_name/.rustup/toolchains/stable-aarc h64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-b1f27438890f45b3.rlib" "-lSystem" "-lc" "-lm" "-L" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-d arwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/crossbeam-utils-ce03de29b1039ccb/build_script_bu ild-ce03de29b1039ccb" "-Wl,-dead_strip" "-nodefaultlibs" "-fuse-ld=/opt/homebrew/opt/llvm@18/bin/ld64.lld" = note: clang: error: invalid linker name in argument '-fuse-ld=/opt/homebrew/opt/llvm@18/bin/ld64.lld' error: linking with `cc` failed: exit status: 1 | = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET -u XROS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rust lib/aarch64-apple-darwin/bin:/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/Users/user_name/.rustup/toolchains/stable-aarch64-apple-da rwin/lib/rustlib/aarch64-apple-darwin/bin:/Users/user_name/.npm/_npx/32026684e21afda6/node_modules/.bin:/Users/user_name/projects/rust-projects/webtip-poc/node_modules/.bin:/Users/user_name/pro jects/rust-projects/node_modules/.bin:/Users/user_name/projects/node_modules/.bin:/Users/user_name/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/user_name/.asdf/installs/ nodejs/18.17.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/user_name/.asdf/plugins/nodejs/shims:/Users/user_name/.asdf/installs/nodejs/18.17.0/bin:/opt/home brew/opt/postgresql@16/bin:/opt/homebrew/opt/llvm/bin:/opt/homebrew/opt/mysql@5.7/bin:/opt/homebrew/opt/mysql@8.0/bin:/Users/user_name/.pyenv/shims:/Users/user_name/.asdf/shims:/opt/homebre w/opt/asdf/libexec/bin:/opt/homebrew/Cellar/cmake/3.29.2/bin:/opt/homebrew/opt/gawk/libexec/gnubin:/opt/homebrew/opt/sqlite/bin:/opt/homebrew/opt/libpq/bin:/opt/homebrew/opt/openssl @1.1/bin:/Users/user_name/.zplug/repos/zplug/zplug/bin:/Users/user_name/.zplug/bin:/Users/user_name/.local/share/nvim/mason/bin:/opt/homebrew/opt/postgresql@16/bin:/opt/homebrew/opt/llvm/bin:/o pt/homebrew/opt/mysql@5.7/bin:/opt/homebrew/opt/mysql@8.0/bin:/opt/homebrew/Cellar/cmake/3.29.2/bin:/opt/homebrew/opt/gawk/libexec/gnubin:/opt/homebrew/opt/sqlite/bin:/opt/homebrew/ opt/libpq/bin:/opt/homebrew/opt/openssl@1.1/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.se curity.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/ usr/appleinternal/bin:/Library/Apple/usr/bin:/Users/user_name/.cargo/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "arm64" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/rustcnHzC Nk/symbols.o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/serde-f1a4924a62f72a9e/build_script_build-f1a4924a62f72a9e.build_script_build.ab8f8 942fd234f67-cgu.0.rcgu.o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/serde-f1a4924a62f72a9e/build_script_build-f1a4924a62f72a9e.6km3lcc3etzz 2lugen69b1l65.rcgu.o" "-L" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/deps" "-L" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/ rustlib/aarch64-apple-darwin/lib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-0f9bda72675979e4.rlib" "/Users/user_name/.rust up/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-51773ba94f264ce4.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/li b/rustlib/aarch64-apple-darwin/lib/libobject-79130ad3ad7802b2.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-81f43 cdd1f7d7095.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-12c2628c83917178.rlib" "/Users/user_name/.rustup/toolcha ins/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-34000eb5b4402af9.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64 -apple-darwin/lib/librustc_demangle-6e14ac007075e94c.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-bd30e1a229 6ebf34.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-44fc4705e85ac7ca.rlib" "/Users/user_name/.rustup/toolchains/s table-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-f11d6ba5d61218f4.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/ rustlib/aarch64-apple-darwin/lib/libminiz_oxide-a1543c9c7e6c02bb.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libadler-7ef c4608b0bc96f7.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-85a6d450f72e1aab.rlib" "/Users/user_name/.rustup/toolchai ns/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-cf81a5498b42604d.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64 -apple-darwin/lib/liblibc-4484e05b7089b5ef.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-3d4e98832b983b89.rlib" "/ Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-a22427de72ab3630.rlib" "/Users/user_name/.rustup/toolchains/s table-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-d8cea91d43634f65.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple -darwin/lib/libcompiler_builtins-b1f27438890f45b3.rlib" "-lSystem" "-lc" "-lm" "-L" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib " "-o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/serde-f1a4924a62f72a9e/build_script_build-f1a4924a62f72a9e" "-Wl,-dead_strip" "-nodefaultl ibs" "-fuse-ld=/opt/homebrew/opt/llvm@18/bin/ld64.lld" = note: clang: error: invalid linker name in argument '-fuse-ld=/opt/homebrew/opt/llvm@18/bin/ld64.lld' error: could not compile `crossbeam-utils` (build script) due to 1 previous error warning: build failed, waiting for other jobs to finish... error: could not compile `serde` (build script) due to 1 previous error error: linking with `cc` failed: exit status: 1 | = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET -u XROS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rust lib/aarch64-apple-darwin/bin:/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/Users/user_name/.rustup/toolchains/stable-aarch64-apple-da rwin/lib/rustlib/aarch64-apple-darwin/bin:/Users/user_name/.npm/_npx/32026684e21afda6/node_modules/.bin:/Users/user_name/projects/rust-projects/webtip-poc/node_modules/.bin:/Users/user_name/pro jects/rust-projects/node_modules/.bin:/Users/user_name/projects/node_modules/.bin:/Users/user_name/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/user_name/.asdf/installs/ nodejs/18.17.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/user_name/.asdf/plugins/nodejs/shims:/Users/user_name/.asdf/installs/nodejs/18.17.0/bin:/opt/home brew/opt/postgresql@16/bin:/opt/homebrew/opt/llvm/bin:/opt/homebrew/opt/mysql@5.7/bin:/opt/homebrew/opt/mysql@8.0/bin:/Users/user_name/.pyenv/shims:/Users/user_name/.asdf/shims:/opt/homebre w/opt/asdf/libexec/bin:/opt/homebrew/Cellar/cmake/3.29.2/bin:/opt/homebrew/opt/gawk/libexec/gnubin:/opt/homebrew/opt/sqlite/bin:/opt/homebrew/opt/libpq/bin:/opt/homebrew/opt/openssl @1.1/bin:/Users/user_name/.zplug/repos/zplug/zplug/bin:/Users/user_name/.zplug/bin:/Users/user_name/.local/share/nvim/mason/bin:/opt/homebrew/opt/postgresql@16/bin:/opt/homebrew/opt/llvm/bin:/o pt/homebrew/opt/mysql@5.7/bin:/opt/homebrew/opt/mysql@8.0/bin:/opt/homebrew/Cellar/cmake/3.29.2/bin:/opt/homebrew/opt/gawk/libexec/gnubin:/opt/homebrew/opt/sqlite/bin:/opt/homebrew/ opt/libpq/bin:/opt/homebrew/opt/openssl@1.1/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.se curity.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/ usr/appleinternal/bin:/Library/Apple/usr/bin:/Users/user_name/.cargo/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "arm64" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/rustcHT9v DR/symbols.o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/proc-macro2-557667fe213f20a3/build_script_build-557667fe213f20a3.build_script_build .68f71717255b8988-cgu.0.rcgu.o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/proc-macro2-557667fe213f20a3/build_script_build-557667fe213f20a3. build_script_build.68f71717255b8988-cgu.1.rcgu.o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/proc-macro2-557667fe213f20a3/build_script_build -557667fe213f20a3.70khawmrsglw5sj5ig4op18vj.rcgu.o" "-L" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/deps" "-L" "/Users/user_name/.rustup/toolchains/st able-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-0f9bda726759 79e4.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-51773ba94f264ce4.rlib" "/Users/user_name/.rustup/toolchains/ stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-79130ad3ad7802b2.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-ap ple-darwin/lib/libmemchr-81f43cdd1f7d7095.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-12c2628c83917178.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-34000eb5b4402af9.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-ap ple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-6e14ac007075e94c.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwi n/lib/libstd_detect-bd30e1a2296ebf34.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-44fc4705e85ac7ca.rlib" "/Us ers/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-f11d6ba5d61218f4.rlib" "/Users/user_name/.rustup/toolchains/st able-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-a1543c9c7e6c02bb.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64 -apple-darwin/lib/libadler-7efc4608b0bc96f7.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-85a6d450f72e1aab.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-cf81a5498b42604d.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-ap ple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-4484e05b7089b5ef.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liba lloc-3d4e98832b983b89.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-a22427de72ab3630.rlib" "/Us ers/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-d8cea91d43634f65.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-da rwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-b1f27438890f45b3.rlib" "-lSystem" "-lc" "-lm" "-L" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/ru stlib/aarch64-apple-darwin/lib" "-o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/proc-macro2-557667fe213f20a3/build_script_build-557667fe213f 20a3" "-Wl,-dead_strip" "-nodefaultlibs" "-fuse-ld=/opt/homebrew/opt/llvm@18/bin/ld64.lld" = note: clang: error: invalid linker name in argument '-fuse-ld=/opt/homebrew/opt/llvm@18/bin/ld64.lld' error: could not compile `proc-macro2` (build script) due to 1 previous error error: linking with `cc` failed: exit status: 1 | = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET -u XROS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rust lib/aarch64-apple-darwin/bin:/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/Users/user_name/.rustup/toolchains/stable-aarch64-apple-da rwin/lib/rustlib/aarch64-apple-darwin/bin:/Users/user_name/.npm/_npx/32026684e21afda6/node_modules/.bin:/Users/user_name/projects/rust-projects/webtip-poc/node_modules/.bin:/Users/user_name/pro jects/rust-projects/node_modules/.bin:/Users/user_name/projects/node_modules/.bin:/Users/user_name/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/user_name/.asdf/installs/ nodejs/18.17.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/user_name/.asdf/plugins/nodejs/shims:/Users/user_name/.asdf/installs/nodejs/18.17.0/bin:/opt/home brew/opt/postgresql@16/bin:/opt/homebrew/opt/llvm/bin:/opt/homebrew/opt/mysql@5.7/bin:/opt/homebrew/opt/mysql@8.0/bin:/Users/user_name/.pyenv/shims:/Users/user_name/.asdf/shims:/opt/homebre w/opt/asdf/libexec/bin:/opt/homebrew/Cellar/cmake/3.29.2/bin:/opt/homebrew/opt/gawk/libexec/gnubin:/opt/homebrew/opt/sqlite/bin:/opt/homebrew/opt/libpq/bin:/opt/homebrew/opt/openssl @1.1/bin:/Users/user_name/.zplug/repos/zplug/zplug/bin:/Users/user_name/.zplug/bin:/Users/user_name/.local/share/nvim/mason/bin:/opt/homebrew/opt/postgresql@16/bin:/opt/homebrew/opt/llvm/bin:/o pt/homebrew/opt/mysql@5.7/bin:/opt/homebrew/opt/mysql@8.0/bin:/opt/homebrew/Cellar/cmake/3.29.2/bin:/opt/homebrew/opt/gawk/libexec/gnubin:/opt/homebrew/opt/sqlite/bin:/opt/homebrew/ opt/libpq/bin:/opt/homebrew/opt/openssl@1.1/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.se curity.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/ usr/appleinternal/bin:/Library/Apple/usr/bin:/Users/user_name/.cargo/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "arm64" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/rustcRERi IZ/symbols.o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/libc-5d341d1f0acfce50/build_script_build-5d341d1f0acfce50.build_script_build.84ba15 bb91f7b96c-cgu.0.rcgu.o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/libc-5d341d1f0acfce50/build_script_build-5d341d1f0acfce50.build_script_b uild.84ba15bb91f7b96c-cgu.1.rcgu.o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/libc-5d341d1f0acfce50/build_script_build-5d341d1f0acfce50.bui ld_script_build.84ba15bb91f7b96c-cgu.2.rcgu.o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/libc-5d341d1f0acfce50/build_script_build-5d341d1f0 acfce50.build_script_build.84ba15bb91f7b96c-cgu.3.rcgu.o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/libc-5d341d1f0acfce50/build_script_buil d-5d341d1f0acfce50.202acsqsxh2e4pakgu1ajca0e.rcgu.o" "-L" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/deps" "-L" "/Users/user_name/.rustup/toolchains/s table-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-0f9bda72675 979e4.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-51773ba94f264ce4.rlib" "/Users/user_name/.rustup/toolchains /stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-79130ad3ad7802b2.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-a pple-darwin/lib/libmemchr-81f43cdd1f7d7095.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-12c2628c83917178.rlib " "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-34000eb5b4402af9.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-a pple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-6e14ac007075e94c.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darw in/lib/libstd_detect-bd30e1a2296ebf34.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-44fc4705e85ac7ca.rlib" "/U sers/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-f11d6ba5d61218f4.rlib" "/Users/user_name/.rustup/toolchains/s table-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-a1543c9c7e6c02bb.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch6 4-apple-darwin/lib/libadler-7efc4608b0bc96f7.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-85a6d450f72e1aab.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-cf81a5498b42604d.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-a pple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-4484e05b7089b5ef.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/lib alloc-3d4e98832b983b89.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-a22427de72ab3630.rlib" "/U sers/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-d8cea91d43634f65.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-d arwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-b1f27438890f45b3.rlib" "-lSystem" "-lc" "-lm" "-L" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/r ustlib/aarch64-apple-darwin/lib" "-o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/libc-5d341d1f0acfce50/build_script_build-5d341d1f0acfce50" "-Wl,-dead_strip" "-nodefaultlibs" "-fuse-ld=/opt/homebrew/opt/llvm@18/bin/ld64.lld" = note: clang: error: invalid linker name in argument '-fuse-ld=/opt/homebrew/opt/llvm@18/bin/ld64.lld' error: could not compile `libc` (build script) due to 1 previous error error: linking with `cc` failed: exit status: 1 | = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET -u XROS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rust lib/aarch64-apple-darwin/bin:/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/Users/user_name/.rustup/toolchains/stable-aarch64-apple-da rwin/lib/rustlib/aarch64-apple-darwin/bin:/Users/user_name/.npm/_npx/32026684e21afda6/node_modules/.bin:/Users/user_name/projects/rust-projects/webtip-poc/node_modules/.bin:/Users/user_name/pro jects/rust-projects/node_modules/.bin:/Users/user_name/projects/node_modules/.bin:/Users/user_name/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/user_name/.asdf/installs/ nodejs/18.17.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/user_name/.asdf/plugins/nodejs/shims:/Users/user_name/.asdf/installs/nodejs/18.17.0/bin:/opt/home brew/opt/postgresql@16/bin:/opt/homebrew/opt/llvm/bin:/opt/homebrew/opt/mysql@5.7/bin:/opt/homebrew/opt/mysql@8.0/bin:/Users/user_name/.pyenv/shims:/Users/user_name/.asdf/shims:/opt/homebre w/opt/asdf/libexec/bin:/opt/homebrew/Cellar/cmake/3.29.2/bin:/opt/homebrew/opt/gawk/libexec/gnubin:/opt/homebrew/opt/sqlite/bin:/opt/homebrew/opt/libpq/bin:/opt/homebrew/opt/openssl @1.1/bin:/Users/user_name/.zplug/repos/zplug/zplug/bin:/Users/user_name/.zplug/bin:/Users/user_name/.local/share/nvim/mason/bin:/opt/homebrew/opt/postgresql@16/bin:/opt/homebrew/opt/llvm/bin:/o pt/homebrew/opt/mysql@5.7/bin:/opt/homebrew/opt/mysql@8.0/bin:/opt/homebrew/Cellar/cmake/3.29.2/bin:/opt/homebrew/opt/gawk/libexec/gnubin:/opt/homebrew/opt/sqlite/bin:/opt/homebrew/ opt/libpq/bin:/opt/homebrew/opt/openssl@1.1/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.se curity.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/ usr/appleinternal/bin:/Library/Apple/usr/bin:/Users/user_name/.cargo/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "arm64" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/rustcvrWC 4m/symbols.o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/rayon-core-db46057cf6f0772f/build_script_build-db46057cf6f0772f.build_script_build. 8d0fd6f8d607189f-cgu.0.rcgu.o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/rayon-core-db46057cf6f0772f/build_script_build-db46057cf6f0772f.0s tqj1qaxsji2xk0cm7pgs43k.rcgu.o" "-L" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/deps" "-L" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-d arwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-0f9bda72675979e4.rlib" "/Users/k engo/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-51773ba94f264ce4.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple -darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-79130ad3ad7802b2.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libme mchr-81f43cdd1f7d7095.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-12c2628c83917178.rlib" "/Users/user_name/.rust up/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-34000eb5b4402af9.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustl ib/aarch64-apple-darwin/lib/librustc_demangle-6e14ac007075e94c.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect- bd30e1a2296ebf34.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-44fc4705e85ac7ca.rlib" "/Users/user_name/.rustup/to olchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-f11d6ba5d61218f4.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-d arwin/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-a1543c9c7e6c02bb.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/li badler-7efc4608b0bc96f7.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-85a6d450f72e1aab.rlib" "/Users/user_name/.rustu p/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-cf81a5498b42604d.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustl ib/aarch64-apple-darwin/lib/liblibc-4484e05b7089b5ef.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-3d4e98832b983b8 9.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-a22427de72ab3630.rlib" "/Users/user_name/.rustup/to olchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-d8cea91d43634f65.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aar ch64-apple-darwin/lib/libcompiler_builtins-b1f27438890f45b3.rlib" "-lSystem" "-lc" "-lm" "-L" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple- darwin/lib" "-o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/rayon-core-db46057cf6f0772f/build_script_build-db46057cf6f0772f" "-Wl,-dead_stri p" "-nodefaultlibs" "-fuse-ld=/opt/homebrew/opt/llvm@18/bin/ld64.lld" = note: clang: error: invalid linker name in argument '-fuse-ld=/opt/homebrew/opt/llvm@18/bin/ld64.lld' error: could not compile `rayon-core` (build script) due to 1 previous error error: failed to compile `wasm-bindgen-cli v0.2.95`, intermediate artifacts can be found at `/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp`. To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path. Error: Installing wasm-bindgen with cargo Caused by: Installing wasm-bindgen with cargo ✘ [ERROR] Running custom build `cargo install -q worker-build && worker-build --release` failed. There are likely more logs from your build command above. 🪵 Logs were written to "/Users/user_name/Library/Preferences/.wrangler/logs/wrangler-2024-10-19_14-38-03_432.log"
I specified the version of wasm-bindgen in Cargo.toml and executed the npx wrangler dev command and the error does not occured.
wasm-bindgen
[dependencies] wasm-bindgen = "=0.2.93"
I think this may be an issue with wasm-bindgen-cli, pinning may be the correct option for now, although I recently was able to use 0.2.95 with no issues.
wasm-bindgen-cli
0.2.95
Is there an existing issue for this?
What version of
workers-rs
are you using?0.4.2
What version of
wrangler
are you using?3.81.0
Describe the bug
what I'm experiencing
Failed to compile wasm-bindgen-cli v0.2.95 when I exec
npx wrangler dev
command on mac OS14.6.1Expected behavior
Steps To Reproduce
First Step
I exec
cargo generate cloudflare/workers-rs
. There files are generated.Cargo.toml
Wrangler.toml
src/lib.rs
Second Step
Next, I exec
npx wrangler dev
. Failed to compile wasm-bindgen-cli v0.2.95.Tried to avoid errors
I specified the version of
wasm-bindgen
in Cargo.toml and executed thenpx wrangler dev
command and the error does not occured.