Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-version-string dependencies in short-hand? #59

Open
ErichDonGubler opened this issue Aug 27, 2018 · 2 comments
Open

Non-version-string dependencies in short-hand? #59

ErichDonGubler opened this issue Aug 27, 2018 · 2 comments

Comments

@ErichDonGubler
Copy link

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?

@gamma-delta
Copy link

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

@gamma-delta
Copy link

I found a solution! You have to:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants