I created a project with the command: anchor init solanasc
and I receive this error when I run anchor build
ERROR cargo_build_sbf] Failed to obtain package metadata: `cargo metadata` exited with an error: error: failed to load manifest for workspace member `\\?\C:\Users\user\Desktop\Projects\Rust_projects\solanasc\programs\*`
Caused by:
failed to read `\\?\C:\Users\user\Desktop\Projects\Rust_projects\solanasc\programs\*\Cargo.toml`
Caused by:
The filename, directory name, or volume label syntax is incorrect. (os error 123)
I have tried the solutions here: `anchor build` fails with error, "failed to load manifest for workspace member", to no avail.
I am currently using Windows 10, and git bash. Here is my cargo.toml:
[package]
name = "solanasc"
version = "0.1.0"
description = "Created with Anchor"
edition = "2021"
[lib]
crate-type = ["cdylib", "lib"]
name = "solanasc"
[features]
no-entrypoint = []
no-idl = []
no-log-ix-name = []
cpi = ["no-entrypoint"]
default = []
[dependencies]
anchor-lang = "0.29.0"
cargo build-sbf
from your program's directory? Since there's only one program, that might resolve the issue