DanielKeep/cargo-script

Non-version-string dependencies in short-hand?

ErichDonGubler opened this issue · 2 comments

I'm currently trying something like this, which doesn't seem supported:

//! cargo-deps: some_local_dep = { path = "../some_local_dep" }

Normally, I'd consider using a Cargo workspace, but there are special requirements for my repo hosting solutions to Project Euler problems that make Cargo workspaces a worse fit than a myriad of scripts. Is this something cargo-script should support?

Hello, I also would like for this to be possible. Sorry to necro this issue.

I found a solution! You have to:

  • Use the full path to the local dependency (no local paths)
  • Remember to extern crate it.