apache / incubator-teaclave

Apache Teaclave (incubating) is an open source universal secure computing platform, making computation on privacy-sensitive data safe and simple.
https://teaclave.apache.org
Apache License 2.0
763 stars 158 forks source link

Impossible to use bulid deps from crates-io but not crates-sgx for SGX trusted lib #132

Open mssun opened 4 years ago

mssun commented 4 years ago

Because of the limitation of cargo, we cannot do source replacement only for deps but not build deps [1]. Therefore, you may see two kinds of work-around: config_gen (https://github.com/apache/incubator-mesatee/tree/bd9ca1e/mesatee_config/config_gen) and prost-build-fake (https://github.com/apache/incubator-mesatee/pull/104).

This issue relies on the upstream cargo to fix.

[1] https://users.rust-lang.org/t/source-replacement-for-dependencies-only-but-not-for-build-dependencies

mssun commented 4 years ago

Submitted an issue to cargo: https://github.com/rust-lang/cargo/issues/7679

Wish we can avoid current workaroud in the future.