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
When embedding generated targets in the cargo_build_script's data attribute, it will be embedded as runfiles for the actual script's rust_binary target. As cargo_build_script performs config transition for the script attribute, all the data dependencies will be built again using the exec configuration. This is incorrect, as the data required by the build.rs should be built into the target configuration to be linked correctly when cross-compiling.
When embedding generated targets in the
cargo_build_script
'sdata
attribute, it will be embedded as runfiles for the actual script'srust_binary
target. Ascargo_build_script
performs config transition for thescript
attribute, all thedata
dependencies will be built again using theexec
configuration. This is incorrect, as the data required by thebuild.rs
should be built into the target configuration to be linked correctly when cross-compiling.Taking
glib-sys
as an example:which expands to:
The text was updated successfully, but these errors were encountered: