Clarify Cross.toml usage #742
Replies: 4 comments 3 replies
-
To be clear, I still don't know how or why to use some of these features, and my guesses above may be completely wrong. |
Beta Was this translation helpful? Give feedback.
-
This is: https://github.com/cross-rs/cross#mounting-volumes-into-the-build-environment The whole situation is also bettered with #682, I'll make sure to provide more explanation for the values. basically,
good point, we could maybe clarify better/simpler how cross actually works. I'll leave a quick explanation here if anyone is interested. The |
Beta Was this translation helpful? Give feedback.
-
I've been in favor of adding The offending lines are below, and I think we can just remove them as split on the first Lines 118 to 120 in 1689de1 |
Beta Was this translation helpful? Give feedback.
-
I've extensively updated the Wiki documentation for this reason. This should make it very clear what each variable means, and why.
|
Beta Was this translation helpful? Give feedback.
-
This is a continuation of #532. At first glance, without any context, some of the comments in cross_toml.md are not very clear:
At first I thought
"VOL1_ARG"
was just a place-holder for a literal volume path. It took me a while to figure out that the capitalization is because it represents a volume that defined in an environment variable on the host. Next question is, what should"VOL1_ARG"
look like? Does it contain only the source volume, or source and destination? What can it be used for?To someone very new to cross, who may not entirely understand the implications of building inside a container, it may not be clear that these are global variables defined need to still be defined by the end-user and that will simply be redefined inside the container. Or put another way, one can't do
(I think?), but instead needs to define the following in Cross.toml
followed by something like the following when using
cross
Beta Was this translation helpful? Give feedback.
All reactions