From 8f0eead8da015ab082f65ee956f6d90f2eaec63b Mon Sep 17 00:00:00 2001 From: Bendik Aagaard Lynghaug Date: Thu, 6 Aug 2026 08:57:58 +0200 Subject: [PATCH] Cargo.toml: disambiguate bin-target for cargo-leptos The new question_lint/backfill_events [[bin]] targets left cargo-leptos unable to tell which of the three binaries is the actual app server - broke the last two deploy runs ("Several bin targets found for member portal"). bin-target = "portal" fixes it; confirmed locally that `cargo leptos build` gets past config resolution now. Co-Authored-By: Claude Sonnet 5 --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index e146c6a..dfb6775 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -121,6 +121,10 @@ codegen-units = 1 [package.metadata.leptos] output-name = "portal" +# Disambiguates the app binary from the two utility [[bin]] targets +# (question_lint, backfill_events) added alongside it - cargo-leptos +# otherwise can't tell which of the three is "the" server. +bin-target = "portal" site-root = "target/site" site-pkg-dir = "pkg" style-file = "style/main.css"