Skip to content
Snippets Groups Projects
Commit cd9449cb authored by ordian's avatar ordian Committed by GitHub
Browse files

companion: update wasmtime to 0.24.0 (#2625)

* update using diener

* fix zstd upgrade

* Revert "update using diener"

This reverts commit 701fdfe3822d6beac4bfda591a1dbcb99bcadb1a.

* update zstd to 0.6

* update using diener

* Revert "update using diener"

This reverts commit fc81df6355375b1328bb6126e3227f193583a61b.

* update Substrate

Co-authored-by: parity-processbot <>
parent c54f8848
Branches
No related merge requests found
This diff is collapsed.
...@@ -21,4 +21,4 @@ thiserror = "1.0.22" ...@@ -21,4 +21,4 @@ thiserror = "1.0.22"
serde = { version = "1.0.123", features = ["derive"] } serde = { version = "1.0.123", features = ["derive"] }
[target.'cfg(not(target_os = "unknown"))'.dependencies] [target.'cfg(not(target_os = "unknown"))'.dependencies]
zstd = "0.5.0" zstd = "0.6.0"
...@@ -203,8 +203,8 @@ impl CompressedPoV { ...@@ -203,8 +203,8 @@ impl CompressedPoV {
pub fn decompress(&self) -> Result<PoV, CompressedPoVError> { pub fn decompress(&self) -> Result<PoV, CompressedPoVError> {
use std::io::Read; use std::io::Read;
struct InputDecoder<'a, T: std::io::BufRead>(&'a mut zstd::Decoder<T>, usize); struct InputDecoder<'a, 'b: 'a, T: std::io::BufRead>(&'a mut zstd::Decoder<'b, T>, usize);
impl<'a, T: std::io::BufRead> parity_scale_codec::Input for InputDecoder<'a, T> { impl<'a, 'b, T: std::io::BufRead> parity_scale_codec::Input for InputDecoder<'a, 'b, T> {
fn read(&mut self, into: &mut [u8]) -> Result<(), parity_scale_codec::Error> { fn read(&mut self, into: &mut [u8]) -> Result<(), parity_scale_codec::Error> {
self.1 = self.1.saturating_add(into.len()); self.1 = self.1.saturating_add(into.len());
if self.1 > MAX_POV_SIZE as usize { if self.1 > MAX_POV_SIZE as usize {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment