-5

Trying to build a project that connects to the solana network to mint new tokens and such. I keep getting the following error:

Computer@mypc:~/projects/test_rust_functions/test_files$ rustc --version rustc 1.88.0-nightly (6bc57c6bf 2025-04-22)

Computer@mypc:~/prototype/server$ solana --version solana-cli 2.2.6 (src:e5cdee7c; feat:4066693973, client:Agave)

Computer@mypc:~/prototype/server$ bash build.sh ERROR: rustc 1.79.0-dev is not supported by the following packages: Note that this is the rustc version that ships with Solana tools and not your system's rustc version. Use solana-install update or head over to https://docs.solanalabs.com/cli/install to install a newer version. [email protected] requires rustc 1.81 [email protected] requires rustc 1.81 Either upgrade rustc or select compatible dependency versions with cargo update <name>@<current-ver> --precise <compatible-ver> where <compatible-ver> is the latest version supporting rustc 1.79.0-dev

My build.sh file is the following:

cargo build-sbf --manifest-path=./Cargo.toml --sbf-out-dir=./dist/program
solana config set --url devnet
solana program deploy dist/program/server.so --url devnet

And lastly my Cargo.toml file is the following:

[package]
name = "server"
version = "0.1.0"
edition = "2021"

[dependencies]


solana-program = "2.2.1"
spl-token = { version="8.0.0", features = [ "no-entrypoint" ] }
spl-associated-token-account = { version="6.0.0", features = [ "no-entrypoint" ] }


sys-mount = "3.0.1"
sysinfo = "0.34.2"
mountpoints = "0.2.1"
actix-rt = "1.1.0"
tokio = { version = "1.0", features = ["rt-multi-thread", "macros", "process", "io-util"] }
actix-web = "3.0.0-alpha.1"
diesel = { version = "1.4.4", features = ["postgres", "r2d2", "chrono", "uuid"] }
env_logger = "0.7.1"
r2d2 = "0.8.8"
r2d2-diesel = "1.0.0"
rand = "0.8.4"
serde = "1.0.106"
serde_json = "1.0.51"
uuid = { version = "0.6", features = ["serde", "v4"] }

[dev-dependencies]
solana-program-test = "2.2.7"
solana-sdk = "2.2.2"


[lib]
crate-type = ["cdylib", "lib"]

Not sure what I'm doing wrong or how to update the rustc devc environment. I've already attempted to redownload solana and my path is pointing to solana. This program I got from Coding&Crypto at https://github.com/Coding-and-Crypto/Rust-Solana-Tutorial/tree/master/nfts/mint-nft-raw and I'm trying to merge it with my project, other than naming conventions I haven't changed it significantly yet. Any help is appreciated.

4
  • Instead of just down voting, a reason as to why would be helpful. I dont use this platform often and this problem is unique. Commented 2 days ago
  • The error message is right there and very clear. This shows little effort from your side. You have Rust 1.79 but some crates require a newer Rust version. Please update Rust.
    – 8192K
    Commented 2 days ago
  • Sorry I thought it was obvious that I probably tried that already: Computer@mypc:~/projects/test_rust_functions/test_files$ rustc --version cargo --version rustc 1.88.0-nightly (6bc57c6bf 2025-04-22) cargo 1.88.0-nightly (d811228b1 2025-04-15) Commented 2 days ago
  • It's in the error message. Call solana-install update
    – 8192K
    Commented yesterday

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.