You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building examples for android works great cargo rustc --example NAME -- --crate-type cdylib. When trying cargo rustc --lib -- --crate-type cdylib I get crate required to be available in rlib format.
I found multiple closed issues here related to this #7339#6160, and was wondering what the correct approach is. Since the crate type can be set in the Cargo.toml I think a reasonable case can be made that overriding it from the cli is in the domain of cargo features (as opposed to it's a rustc flag we won't support it)
I'm going to close this as a duplicate of #4881. If you have additional requirements of controlling the crate-type that aren't already captured in that issue, it is probably best to just add a comment over there.
In case you hadn't noticed, #4881 is a feature request, this is a bug report. The difference is that the one requests something to be added while the other requests something to be removed.
Building examples for android works great
cargo rustc --example NAME -- --crate-type cdylib
. When tryingcargo rustc --lib -- --crate-type cdylib
I getcrate required to be available in rlib format
.I found multiple closed issues here related to this #7339 #6160, and was wondering what the correct approach is. Since the crate type can be set in the
Cargo.toml
I think a reasonable case can be made that overriding it from the cli is in the domain of cargo features (as opposed to it's a rustc flag we won't support it)Related to #4881.
The text was updated successfully, but these errors were encountered: