Skip to content

Commit e88fd2a

Browse files
committed
[aurora/src] Remove requirement on nightly experimental features
https://doc.rust-lang.org/beta/core/ffi/type.c_size_t.html > This type is currently always usize, however in the future there may > be platforms where this is not the case. It seems rust-lang/rust#88345 has stalled for over a year now. For now let's assume this is `usize`
1 parent 177bff6 commit e88fd2a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

aurora/src/osslparams.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,16 @@ pub const OSSL_PARAM_END: ossl_param_st = ossl_param_st {
173173
return_size: 0,
174174
};
175175

176-
const OSSL_PARAM_UNMODIFIED: usize = core::ffi::c_size_t::MAX;
176+
/*
177+
* core::ffi:c_size_t is only in nightly, and unstable
178+
*
179+
* https://github.com/rust-lang/rust/issues/88345 seems to have stalled,
180+
* so for now we just assume c_size_t and usize are the same.
181+
*
182+
* TODO: revisit if c_size_t goes stable
183+
*/
184+
// const OSSL_PARAM_UNMODIFIED: usize = core::ffi::c_size_t::MAX;
185+
const OSSL_PARAM_UNMODIFIED: usize = usize::MAX;
177186

178187
pub fn ossl_param_locate<'a>(params: &'a mut [OSSLParam], key: &KeyType) -> Option<&'a mut OSSLParam> {
179188
params.iter_mut().find(|p| {

0 commit comments

Comments
 (0)