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
Unfortunately, `cargo install` does not support workspaces yet:
rust-lang/cargo#7599
Alternatively, we use `cargo build`, which will respect the Cargo.lock
configuration. It however, does require a bit more hoop jumping
to determine which binaries were built and install them.
Introudce _install_workspace_artifacts() to install the built
executables into the correct paths. Testing has covered executables
and libraries, though dynamic linking is not quite yet supported
by the rust plugin (at least in my testing, it will have unmnet
dependencies on libstd-<id>.so). We can address that feature gap
in the future, but likely doesn't affect snap users because they
are probably using the standard linking process which doesn't require
libstd (likely due to static linking of those dependencies).
`cargo build` has an unstable flag option for `--out-dir` which
may simplifiy the install process, but is currently unavailable
for stable use:
https://doc.rust-lang.org/cargo/reference/unstable.html#out-dir
Add/update tests for coverage.
Signed-off-by: Chris Patterson <[email protected]>
0 commit comments