Replace libstd with spin crate in cpu::cache_detected_features. - #759
Conversation
93caa10 to
8e7c1b2
Compare
|
It seems that the failure of the test here is because of a network problem, I would just try to rerun it. |
|
@briansmith If you could use version |
| untrusted = "0.6.2" | ||
|
|
||
| [target.'cfg(not(target_os = "ios"))'.dependencies] | ||
| spin = { version = "0.5.0", default-features = false } |
There was a problem hiding this comment.
| spin = { version = "0.5.0", default-features = false } | |
| spin = "0.4.10" |
This would support @baidu/rust-sgx-sdk and there are no features in spin so that disabling default-features isn't needed
There was a problem hiding this comment.
With this:
[target.'cfg(not(target_os = "ios"))'.dependencies]
spin = { version = "0.4.10", features = ["once"] }I get:
error[E0554]: #![feature] may not be used on the stable release channel
#![cfg_attr(feature = "const_fn", feature(const_fn))]
So we have to use spin 0.5 in order for it to work on the stable channel.
IMO it would be much better to have the Baidu SGX SDK update the version of Rust it uses to a newer version. Is that not going to happen any time soon?
There was a problem hiding this comment.
That's too bad.
I hope it will be soon
apache/teaclave-sgx-sdk#48
There was a problem hiding this comment.
So this isn't relevant anymore, Sorry for the trouble.
I still don't think the default-features = false, I see no features in the toml: https://github.com/mvdnes/spin-rs/blob/master/Cargo.toml
There was a problem hiding this comment.
I still don't think the
default-features = false, I see no features in the toml: https://github.com/mvdnes/spin-rs/blob/master/Cargo.toml
Thanks! I updated the PR to remove default-features = false.
|
So, we can go ahead and do this, but if we do, this would be the first and only non- |
8e7c1b2 to
a25a0f7
Compare
Eliminate one of the two remaining problems with `#![no_std]` support and reduce platform variance.
a25a0f7 to
4925653
Compare
Eliminate one of the two remaining problems with
#![no_std]supportand reduce platform variance.