rust-marker/marker

[Feat]: `cargo-marker` should download the pre-compiled `marker_rustc_driver` binary from GitHub releases

Opened this issue · 0 comments

Summary

This is the continuation of #193. In that issue, we already discussed the flow where cargo-marker needs to download the pre-compiled binary of marker_rustc_driver and fall back to compiling from source if that is not available for the current platform (#193 (comment)). There should also be a CLI and config flag to force compiling the driver from source even if a pre-compiled binary is available for security-conscious people.

This feature will make the installation blazingly fast ⚡. When writing code for this make sure to handle the network errors, and timeouts and retries with exponential backoff and jitter as usual for all the networking stuff. We have a safe fallback to cargo install in case GitHub servers aren't responding or the pre-compiled binaries were failed to compile on our release build CI.