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

Support for Alpine #94

Closed
ghost opened this issue May 8, 2020 · 2 comments
Closed

Support for Alpine #94

ghost opened this issue May 8, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented May 8, 2020

I am trying to install a cargo binary (cargo-watch) in an Alpine Docker image, but it won't compile because darling_macro does not support Alpine targets.

error: failed to compile `cargo-watch v7.3.0`, intermediate artifacts can be found at `/tmp/cargo-installp8c4VF`

Caused by:
  cannot produce proc-macro for `darling_macro v0.10.2` as the target `x86_64-unknown-linux-musl` does not support these crate types
@TedDriggs
Copy link
Owner

darling_macro is just the proc-macro wrapper, so I'm not sure what I'd need to (or be able to) change to add support for Alpine. However, if you find out a way to make this work I'll be happy to hook it up.

@hdf1996
Copy link

hdf1996 commented Jul 11, 2020

Hi! Im just starting with Rust so I may not have enough context to do a deeper explanation than this one, but i tried to install cargo-watch in docker alpine and ran into this same issue.

After some research i found this comment hound-search/hound#238 (comment) which helped me to solve the issue.

apk add --no-cache musl-dev

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