Skip to content

Cannot build with external crates dependencies #49

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

Closed
atilag opened this issue Jul 24, 2017 · 2 comments
Closed

Cannot build with external crates dependencies #49

atilag opened this issue Jul 24, 2017 · 2 comments

Comments

@atilag
Copy link

atilag commented Jul 24, 2017

If I understood correctly, external crates referenced in the Cargo.toml files are still not supported, right? So there's no way at the moment to build something that depends on external crates, am I right?

@acmcarther
Copy link
Collaborator

acmcarther commented Jul 29, 2017

There's not really a way currently .... or at least not one that has feature parity with Cargo itself. I've been making efforts to facilitate automatic BUILD generation from Cargo.toml -- but I'm doubtful that there will ever be the sort of "drop a Cargo.toml here and get going" experience that you might be imagining.

The above hacky project doesn't support many usecases, one of which is anything that depends on a pkg-config dependency. That includes openssl, and half of crates.io that depends on it, so don't get too excited yet.

Still, I'm working on it!

EDIT: I don't speak for any bazel developers (or project maintainers), by the way.

@acmcarther
Copy link
Collaborator

acmcarther commented Feb 21, 2018

A "drop and go" sort of workflow is supported with google/cargo-raze if you use the remote mode.

Toml would need to add a snippet like this:

[raze]
genmode = "Remote"

This has some deficiencies. For now, I'll close this issue as "not actionable". Feel free to reopen (or file a new issue here or @ cargo-raze) if you have any more specific issues.

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