-
Notifications
You must be signed in to change notification settings - Fork 443
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
Evaluate migration of SmallVec
to min_const_generics
#598
Conversation
min_const_generics
SmallVec
to min_const_generics
c4dba5f
to
b58062d
Compare
crates/storage/src/lib.rs
Outdated
@@ -20,6 +20,7 @@ | |||
//! FFI to interface with SRML contracts and a primitive blockchain | |||
//! emulator for simple off-chain testing. | |||
|
|||
#![feature(min_const_generics)] |
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.
This PR is mergable as soon as this feature is stabilizied.
Codecov Report
@@ Coverage Diff @@
## master #598 +/- ##
===========================================
- Coverage 83.76% 67.23% -16.54%
===========================================
Files 156 155 -1
Lines 6971 6915 -56
===========================================
- Hits 5839 4649 -1190
- Misses 1132 2266 +1134
Continue to review full report at Codecov.
|
@Robbepop Today I noticed that there already is a feature Yeah so overall we just need to wait until it's stabilized, remove the feature flags from this PR and are good to merge then. I've marked the PR as blocked until then. |
@@ -25,8 +25,7 @@ scale = { package = "parity-scale-codec", version = "2.0", default-features = fa | |||
derive_more = { version = "0.99", default-features = false, features = ["from", "display"] } | |||
scale-info = { version = "0.5", default-features = false, features = ["derive"], optional = true } | |||
cfg-if = "1.0" | |||
array-init = "1.0" | |||
generic-array = "0.14.1" | |||
array-init = { version = "1.0", default-features = false, features = ["const-generics"] } |
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.
We still have to pass this feature, since this dependency will only make it available be default once min_const_generics
is in a stable release.
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.
hmmm good point.
best would be to sync array-init
with us or vice versa.
good thing we no longer depend on generic-array
with its tons of unsafe
code.
We concluded to push this PR forward even though The big advantage is that as soon as |
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.
LGTM 🚀
Closes #588.