rust-lang / wg-cargo-std-aware

Repo for working on "std aware cargo"
137 stars 8 forks source link

Deps: proc-macro #18

Closed ehuss closed 5 years ago

ehuss commented 5 years ago

This issue is for working through the implementation issues for compiling the proc-macro crate.

Usually proc-macro is built for the host compiler, and thus isn't much of a concern for std-aware cargo. However, some crates like proc-macro2 link against it to provide the same facility to normal code.

There may also be issues with how dependencies on proc-macro are expressed. If there is an explicit dependency listed on proc-macro, Cargo will need to be careful to consider if it is a host or target dependency.

alexcrichton commented 5 years ago

@ehuss do you think there's remaining issues here? I think that this is largely solved modulo https://github.com/rust-lang/wg-cargo-std-aware/issues/5 myself

ehuss commented 5 years ago

I can't think of any potential issues right now, so I'll go ahead and close.