solana icon indicating copy to clipboard operation
solana copied to clipboard

Inconsistent cargo build tools interface

Open ksolana opened this issue 1 year ago • 1 comments

Problem

  • [x] [wontfix working as intended] cargo-build-sbf has hard coded dependency with rustc. This often create problems when user has another rustc installed. What is the rationale behind having a rustc depenency?
~/.local/share/solana/install/active_release/bin/cargo-build-sbf --version
solana-cargo-build-sbf 1.18.1
platform-tools v1.39
rustc 1.72.0
  • [ ] No version information for cargo-build-bpf.
~/.local/share/solana/install/active_release/bin/cargo-build-bpf --version
  • [ ] cargo-test-bpf should show the version where it is at. A message that it is deprecated is helpful but users should know that version information as well.
~/.local/share/solana/install/active_release/bin/cargo-test-bpf --version
Warning: cargo-test-bpf is deprecated. Please, use cargo-test-sbf

Proposed Solution

See above.

ksolana avatar Feb 18 '24 07:02 ksolana

My understanding is that this Rust version comes from Solana's Rust fork https://github.com/solana-labs/rust

Solana has a fork of Rust so that it can compile to SBPF

kevinheavey avatar Feb 19 '24 18:02 kevinheavey