How do you build a cargo-leptos
project for the x86_64-unknown-linux-musl
target?
#1963
Answered
by
benwis
saikatdas0790
asked this question in
Q&A
-
I've tried the following things but they didn't work:
What am I missing? Any input is appreciated 🙂 |
Beta Was this translation helpful? Give feedback.
Answered by
benwis
Nov 9, 2023
Replies: 2 comments 15 replies
-
I just merged a PR to It adds support for two additional settings for # Pass additional parameters to the cargo process compiling to WASM
#
# Optional. No default
lib_cargo-args = ["--timings"]
# Pass additional parameters to the cargo process to build the server
#
# Optional. No default
bin_cargo-args = ["--timings"] So IIRC the command to install from git is cargo install --git https://github.com/leptos-rs/cargo-leptos |
Beta Was this translation helpful? Give feedback.
5 replies
-
Did you add the target to rustup?
``rustup target add x86_64-unknown-linux-musl``
…On Tue, Nov 7, 2023, at 8:21 PM, Saikat Das wrote:
I tried adding this to the Cargo.toml removing the entry of `bin_cargo-args` but it gives me a different error
image <https://user-images.githubusercontent.com/7412443/281259363-9166c617-6e5e-4fe1-8281-219c081ffd06.png>
image <https://user-images.githubusercontent.com/7412443/281259396-a95c2055-b2fd-4c0a-b1a5-54405c3444cb.png>
Thoughts on what I'm doing wrong or something I'm missing?
—
Reply to this email directly, view it on GitHub <#1963 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABVBTCKYYMJ2MYX55J66NALYDMCDVAVCNFSM6AAAAAA6UWNSNSVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TKMBVHEYTK>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
One more fix, you need dashes not underscores in
bin-target-triple
. I have confirmed that it works