Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Inconsistent cargo build tools interface #35225

Open
1 of 3 tasks
ksolana opened this issue Feb 18, 2024 · 1 comment
Open
1 of 3 tasks

Inconsistent cargo build tools interface #35225

ksolana opened this issue Feb 18, 2024 · 1 comment

Comments

@ksolana
Copy link
Contributor

ksolana commented Feb 18, 2024

Problem

  • [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.

@kevinheavey
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants