Replies: 1 comment 2 replies
-
|
Thanks for the issue. For your first point, it looks like your target isn't built into Rust (at least Rust 1.91.0). You'll want to pass in your target JSON file as the argument to For your second point, this is not currently supported directly. You'll want to try and extract the archive yourself, then use Another option is to use a wrapper script on a supported host, executing commands remotely on the target platform.
You may at least want to get Tokio working on your platform. Tokio works on several non-Tier 1 targets. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I work on a Tier-3 Rust target that does not support rust tools (no "native" rustc, no cargo, only cross-compiling from a Linux host). I can cross-compile tests using
cargo +dev-x86_64-unknown-motor test --no-run --target x86_64-unknown-motorthen hunt down test binaries (their names are randomized), copy them over to the VM running the target, and manually execute. The process is too cumbersome to be part of a normal workflow.
It looks like
cargo-nextest, with its archive feature, could be used to solve this problem, but two issues are unclear. First of all, how do I build an archive? Runningcargo-nextest nextest archive --target x86_64-unknown-motor --archive-file foo.tar.zstResulits in
and adding
+devleads toSo the first question is where should I poke at nextest source code to make cross-compiling archives for non-built-in targets work.
The second question is to how can I run binaries from an archive "manually", as cargo-nextest can't be cross-compiled for Motor OS, as the tool has many dependencies that work on Tier 1 targets only (plus a few unices, I guess).
Beta Was this translation helpful? Give feedback.
All reactions