jamiebrynes7 / spatialos-sdk-rs

Rust integration of the SpatialOS C API bindings
Apache License 2.0
21 stars 6 forks source link

Download `spatialos-sdk-sys` packages at runtime #168

Closed jamiebrynes7 closed 4 years ago

jamiebrynes7 commented 4 years ago

This PR builds on the ideas in #167

If SPATIAL_LIB_DIR is not set, the spatialos-sdk-sys package will download the packages for the target OS into its OUT_DIR location.

In order to not bloat the spatialos-sdk-sys build dependencies, I've pulled out the package downloading code into its own little library.

codecov[bot] commented 4 years ago

Codecov Report

Merging #168 into master will increase coverage by 0.45%. The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #168      +/-   ##
==========================================
+ Coverage   20.99%   21.44%   +0.45%     
==========================================
  Files          41       41              
  Lines        3997     3913      -84     
==========================================
  Hits          839      839              
+ Misses       3158     3074      -84     
Impacted Files Coverage Δ
cargo-spatial/src/download.rs 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 90586c0...2ec6ad1. Read the comment docs.