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

Idea: cargo edit lib #250

Open
bltavares opened this issue Oct 10, 2018 · 0 comments
Open

Idea: cargo edit lib #250

bltavares opened this issue Oct 10, 2018 · 0 comments

Comments

@bltavares
Copy link

Hi there!

First of all: Thanks for the project. It is great!

I've been working on crossgen to get support to build cross platform libs using Travis and Appveyor.

Sadly, I've come to face an issue with cargo where it is not possible to override the lib type through the command line.

One of the ideas I had was to be able to execute cargo edit lib --crate-type=staticlib and let it modify the manifest right before building. This would be added to the scripts, and would allow specifying only a single type of crate per target, without producing the rlib artifacts as well.

This would be very useful for C libs, but also WASM, as it needs to output a small library and it can't have the optimizations passed in if the manifest still have the lib.crate-type not overriden. (See)

What would you think of having this on cargo-edit? Or would you rather have this as a separate project?

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

No branches or pull requests

2 participants