solana
solana copied to clipboard
Inconsistent cargo build tools interface
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.
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