Is cargo build --target x86_64-unknown-linux-musl is not possible anymore with Rust 1.82?

I was trying to execute command "cargo build --target x86_64-unknown-linux-musl" but was not working and I just noticed one thing that "musl-file" exists in 2 different locations for version 1.77 and 1.82.
C:\Program Files\Rust 1.77\lib\rustlib\x86_64-unknown-linux-musl
C:\Program Files\Rust 1.82\lib\rustlib\rust-std-x86_64-unknown-linux-musl\lib\rustlib\x86_64-unknown-linux-musl
Can someone please me here?

What does that mean? Please post the full error message, well formatted.

MUSL works fine in Rust 1.82 and later.

You seem to have a non-standard installation of Rust. You need to ask whoever made your Rust package to ensure they've packaged MUSL support, and how they enable it.

Normally Rust supports cross-compilation through rustup. You could uninstall all your custom Rust versions, and then install Rust through rustup:

and then run

rustup target add x86_64-unknown-linux-musl

but you may need to also configure a linker through .cargo/config.toml:

[target.x86_64-unknown-linux-musl]
linker = "rust-lld"