Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upSet target using config file #2335
Conversation
rust-highfive
assigned
alexcrichton
Jan 30, 2016
This comment has been minimized.
This comment has been minimized.
rust-highfive
commented
Jan 30, 2016
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
This comment has been minimized.
This comment has been minimized.
|
Thanks for the PR! This implementation all looks good to me, I'm just not sure if we want to implement it just yet. I'll bring this up with the @rust-lang/tools team to see if others have opinions as well. While that happens, can you be sure to update the documentation as well to reflect that this option exists? |
This comment has been minimized.
This comment has been minimized.
|
Makes sense to me. |
This comment has been minimized.
This comment has been minimized.
Would you mind pointing me at the documentation that needs to be updated? This pull request already updates |
This comment has been minimized.
This comment has been minimized.
|
Oh oops sorry I overlooked that by accident, |
alexcrichton
added
the
relnotes
label
Feb 5, 2016
This comment has been minimized.
This comment has been minimized.
|
Thanks again @fpgaminer! |
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Feb 5, 2016
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
VikingMew
commented
Oct 26, 2017
|
Can we set this as a crate specific parameter? |
This comment has been minimized.
This comment has been minimized.
andrewdavidmackenzie
commented
Jan 27, 2019
|
Looks like this is not going in? Any alternative (similar) option progressing or already added? |
This comment has been minimized.
This comment has been minimized.
|
@andrewdavidmackenzie I'm not sure what you mean. This was added a few years ago. Are you having some kind of issue? If so, it would be probably be best to open a new issue. |
This comment has been minimized.
This comment has been minimized.
andrewdavidmackenzie
commented
Jan 28, 2019
|
Well, Alex commented: I didn't see any merge for it and when I tried it I got an "unused key" warning from cargo. I'm on mobile now, but will check again later. |
This comment has been minimized.
This comment has been minimized.
andrewdavidmackenzie
commented
Jan 28, 2019
|
Is this intended only for binary builds in Cargo? I can't find any mention of it in the Cargo manifest book: When I try what's described in this issue: Here is my Cargo.toml of a library with functions I want compiled to wasm:
When I build it cargo tells me:
|
This comment has been minimized.
This comment has been minimized.
|
The value goes into the config file |
This comment has been minimized.
This comment has been minimized.
andrewdavidmackenzie
commented
Jan 28, 2019
|
OK, I understand now. I guess it makes more sense there than in the manifest? |
fpgaminer commentedJan 30, 2016
Fixed #2332.
This PR adds
build.targetto the Cargo config file, which behaves in the same way as passing--targetto Cargo. Example.cargo/config:Similar to how
--jobsoverridesbuild.jobs,--targetwill overridebuild.target.I added documentation to
config.md, and a test totest_cargo_cross_compile.rs. I couldn't get cross compile working on my machine forcargo test. Hopefully travis passes it.This is my first PR against Cargo; sorry if I missed any procedures.