Rust-analyzer not working in integration tests

⚓ Rust    📅 2025-08-15    👤 surdeus    👁️ 4      

surdeus

image

I am new to solana and i am trying to write tests for program but rust-analyzer is not working for intitalize.rs file , i have tried various solution but none of them worked , here's my toml file :

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

[features]
no-entrypoint = []

[dependencies]
solana-program = "2.3.0"
spl-token = { version = "8.0.0", features = ["no-entrypoint"] }
thiserror = "2.0.14"

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

[dev-dependencies]
solana-program-test = "2.3.7"
solana-sdk = "2.3.1"
solana-system-interface = { version = "2.0.0", features = ["bincode"] }
tokio = { version = "1.47.1", features = ["full"] }

[[test]]
name = "integ_tests"
path = "/tests/initialize.rs"
test = true

8 posts - 2 participants

Read full topic

🏷️ Rust_feed