fix(deps): update rust crate substreams to 0.6 - autoclosed #1814
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.5
->0.6
Release Notes
streamingfast/substreams-rs (substreams)
v0.6.0
Compare Source
List of changes
#[substreams::handlers::map(keep_empty_output)]
prost
dependencies from 0.11 to 0.13.3Upgrading your substreams project
Because of code generated by "buf neoeinstein-prost" plugin and since Rust allows multiple versions of a dependency to be loaded, but we export public functions to the wasm interface, it is very important to align all the dependencies that may depend on this substreams library.
Here are the changes that you must perform in your substreams project to upgrade to v0.6.0:
buf.gen.yaml
buf.build/community/neoeinstein-prost:v0.4.0
buf.build/community/neoeinstein-prost-crate:v0.4.1
Cargo.toml
, update the dependencies/build_deps only for the modules that you already have:substreams = "0.6"
prost = "0.13"
prost-types = "0.13"
prost-build = "0.13"
substreams-ethereum = "0.10"
substreams-antelope = "0.6"
substreams-database-change = "2"
substreams-entity-change = "2"
substreams build
againDebugging errors after the upgrade
Unimplemented prost::message::Message
This means that you have a mismatch between the generated protobuf bindings (usually generated by the buf
neoinstein-prost
andneoinstein-prost-crate
plugins) and theprost
/prost-types
/prost-build
version in one of your Cargo.toml. Make sure that your buf.gen.yaml file exists and points to the versions specified above, as well as the versions for prost libraries in every Cargo.toml.Two different versions of crate being used
This means that one of your dependencies uses the wrong version of prost-types (0.11.9 in this example). You probably forgot to bump a dependency in one of your Cargo.toml, for example substreams-ethereum or substreams-antelope.
Symbol multiply defined
This means that the this module (
substreams
) is linked many times with different versions. This is invalid because of the global exports, make sure that only the version 0.6.0 of substreams-rs is used by any of your dependencies.v0.5.22
Compare Source
Added ExprMatcher, and constructor(s) expr_matcher and ExprMatcher::new. This can be used to parse an expression once and re-used it to run multiple matches_keys against different keys:
v0.5.21
Compare Source
v0.5.20
Compare Source
-
character in expression's parsing expect at the beginning of the expression. (Ex:-test
is failing,test-8
is not)v0.5.19
Compare Source
v0.5.18
Compare Source
-
,'
,"
,&&
,||
,)
,(
and spaces of all kind.v0.5.17
Compare Source
v0.5.16
Compare Source
v0.5.15
Compare Source
v0.5.14
Compare Source
matches_keys_in_parsed_expr
function returning abool
. It returnstrue
, if the set ofkeys
provided, matches theexpression
.(Ex:
expression: (key1 || key2)
, if the set of keys contains key1 or contains key2,matches_keys_in_parsed_expr(keys, expression)
returnstrue
, else returnsfalse
)v0.5.13
Compare Source
Added support for specifying
let mut <param>: <Type>
when using the#[substreams::handlers::map]
macros, this enables in-place trimming of received data.v0.5.12
Compare Source
Added back some lost binary operations on
BigInt
likeBigInt - BigInt
for example.v0.5.11
Compare Source
Highlights
In this release we add further arithmetics and logics operators possibilities on
BigInt
type, namely:BitAnd
BitAndAssign
BitOr
BitOrAssign
BitXor
Rem
Pow
Shl
ShlAssign
ShrAssign
The
BigInt
now also has a new methoddiv_rem
that performs division by anotherBigInt
and returns the quotient and the remainder.We also improved error messages on a variety of error cases for example
BigInt::to_u32
andBigInt::to_u64
will now print a much more useful message that should make it clear that the value is too big.Changed
.unwrap()
and replaced them with.expect(<message>)
or.unwrap_or_else(|| panic!(<message>))
improving the error message on different edge cases that can happen from time to time.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.