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

[cargo] Import dependencies from git instead of local path #4

Closed
southerntofu opened this issue Mar 21, 2020 · 4 comments
Closed

[cargo] Import dependencies from git instead of local path #4

southerntofu opened this issue Mar 21, 2020 · 4 comments

Comments

@southerntofu
Copy link

I just built rusty-shooter on my machine. I think the setup could be simpler if the Cargo.toml file referenced a git repository (in addition to the version from crates.io) for dependencies instead of a path.

If all rg3d crates did this, we could just:

git clone https://github.com/mrDIMAS/rusty-shooter
cd rusty-shooter
cargo run --release

See cargo docs about multiple locations for a crate.

@mrDIMAS
Copy link
Owner

mrDIMAS commented Mar 21, 2020

I'm afraid this won't work for development - I'm changing other rg3d-x libraries at the same time while I'm writing engine or game. The docs clearly tells that you can't have path and git at the same time. Correct me if I'm wrong.

@Eragonfr
Copy link

We can add a simple shell/bat file for the of setup all repository, or using the git native function of subrepository ?
That can make it more simple to use

@mcuelenaere
Copy link

You could setup a workspace and override the dependencies, eg like done at rust-lang/cargo#6126

@mrDIMAS
Copy link
Owner

mrDIMAS commented Oct 29, 2020

Closing this because I added workspace for rg3d and now there is no need to manually download 4 deps, just rg3d is enough.

@mrDIMAS mrDIMAS closed this as completed Oct 29, 2020
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

4 participants