-
Notifications
You must be signed in to change notification settings - Fork 705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 |
Cargo.toml
Outdated
@@ -297,6 +297,9 @@ name = "ring" | |||
[dependencies] | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's too bad.
I hope it will be soon
apache/incubator-teaclave-sgx-sdk#48
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.