brandon,
@brandon@fosstodon.org avatar

Rustaceans: I'm having an issue nailing down a bug.

When I specify a crate using just cc = "1.0.73" in various cargo.toml files, the build fails saying that MSVC cannot be found.

However, when I clone the repo and use the same version but specifying the path:

cc = { path = "C:\Users\...." }

The build runs just fine.

I even tried specifying the path that cargo caches crates, and that also successfully builds.

I'm at a loss as to what to focus on next

kornel,
@kornel@mastodon.social avatar

@brandon It's weird.

Run cargo update to ensure cc is up to date (the repo may be latest version, your Cargo.lock may pick an old one).

If that doesn't help, here's the standard "turn it off and on again":

  • delete .cargo/registry (in your home dir), in case it got corrupted. It'll be redownloaded.

  • run rustup update and rustup default stable.

  • run cargo build -vvv to see what exactly gets built, and try to spot how good/broken builds differ.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • rosin
  • InstantRegret
  • everett
  • DreamBathrooms
  • ngwrru68w68
  • magazineikmin
  • thenastyranch
  • Youngstown
  • slotface
  • Durango
  • love
  • kavyap
  • ethstaker
  • khanakhh
  • megavids
  • osvaldo12
  • cisconetworking
  • mdbf
  • cubers
  • normalnudes
  • GTA5RPClips
  • modclub
  • tacticalgear
  • anitta
  • Leos
  • tester
  • provamag3
  • JUstTest
  • All magazines