rust-rse / reed-solomon-erasure

[Looking for new owners/maintainers, see #88] Rust implementation of Reed-Solomon erasure coding
MIT License
179 stars 61 forks source link

Fix cargo 1.55+ build #87

Closed Tirka closed 2 years ago

Tirka commented 2 years ago

Environment variable RUSTFLAGS is not available within build.rs script since 1.55 version of cargo.

Currently, I'm not sure if this is a bug and waiting for clarification. Tracking issue: https://github.com/rust-lang/cargo/issues/10111.

This Pull Request fixes the problem by using the newly introduced environment variable CARGO_ENCODED_RUSTFLAGS which wraps RUSTFLAGS while keeping backward compatibility.

darrenldl commented 2 years ago

Thanks!

Tirka commented 2 years ago

Thank you for your quick response! Could you publish the updated crate to crates.io?

darrenldl commented 2 years ago

I no longer use this crate (or Rust in general) - could I add you as a repo collaborator and crate owner if you're an active user?