Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 21, 2024

Bumps substreams from 0.5.20 to 0.6.0.

Release notes

Sourced from substreams's releases.

v0.6.0

List of changes

  • Enabled the 'skip_empty_output' instruction in all maps and stores by default, unless the macro is called with the keep_empty_output parameter, like this: #[substreams::handlers::map(keep_empty_output)]
  • Bumped the prost dependencies from 0.11 to 0.13.3

Upgrading 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:

  1. in buf.gen.yaml
  • bump buf.build/community/neoeinstein-prost:v0.4.0
  • bump buf.build/community/neoeinstein-prost-crate:v0.4.1
  1. in Cargo.toml, update the dependencies/build_deps only for the modules that you already have:
  • bump substreams = "0.6"
  • bump prost = "0.13"
  • bump prost-types = "0.13"
  • bump prost-build = "0.13"
  • bump substreams-ethereum = "0.10"
  • bump substreams-antelope = "0.6"
  • bump substreams-database-change = "2"
  • bump substreams-entity-change = "2"
  1. Run substreams build again

Debugging errors after the upgrade

Unimplemented prost::message::Message

10  | #[substreams::handlers::map]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `prost::message::Message` is not implemented for `MyData`

This means that you have a mismatch between the generated protobuf bindings (usually generated by the buf neoinstein-prost and neoinstein-prost-crate plugins) and the prost/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

error[E0308]: mismatched types
    --> src/lib.rs:17:36
     |
17   |     my_data.block_timestamp = Some(blk.timestamp().to_owned());
     |                               ---- ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Timestamp`, found `prost_types::protobuf::Timestamp`
     |                               |
     |                               arguments to this enum variant are incorrect
     |
</tr></table> 

... (truncated)

Changelog

Sourced from substreams's changelog.

0.6.0

List of changes

  • Enabled the 'skip_empty_output' instruction in all maps and stores by default, unless the macro is called with the keep_empty_output parameter, like this: #[substreams::handlers::map(keep_empty_output)]
  • Bumped the prost dependencies from 0.11 to 0.13.3

Upgrading 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:

  1. in buf.gen.yaml
  • bump buf.build/community/neoeinstein-prost:v0.4.0
  • bump buf.build/community/neoeinstein-prost-crate:v0.4.1
  1. in Cargo.toml, update the dependencies/build_deps only for the modules that you already have:
  • bump substreams = "0.6"
  • bump prost = "0.13"
  • bump prost-types = "0.13"
  • bump prost-build = "0.13"
  • bump substreams-ethereum = "0.10"
  • bump substreams-antelope = "0.6"
  • bump substreams-database-change = "2"
  • bump substreams-entity-change = "2"
  1. Run substreams build again

Debugging errors after the upgrade

Unimplemented prost::message::Message

10  | #[substreams::handlers::map]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `prost::message::Message` is not implemented for `MyData`

This means that you have a mismatch between the generated protobuf bindings (usually generated by the buf neoinstein-prost and neoinstein-prost-crate plugins) and the prost/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

error[E0308]: mismatched types
    --> src/lib.rs:17:36
     |
17   |     my_data.block_timestamp = Some(blk.timestamp().to_owned());
     |                               ---- ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Timestamp`, found `prost_types::protobuf::Timestamp`
     |                               |
     |                               arguments to this enum variant are incorrect
</tr></table> 

... (truncated)

Commits
  • 4e02c69 bump prost to 0.13, prep release 0.6
  • a68ee3a enable the 'skip_empty_output' instruction in all maps and stores by default
  • 0db544f Fixed store.rs get_last documentation
  • 51c0b24 Preparing release of 0.5.22
  • b3d100c Added ExprMatcher
  • 6e9e1d5 fix version in cargo.toml
  • ba446bc prepare changelog for 0.5.21
  • 4a8cb2d add skip_empty_output method to call intrinsic
  • See full diff in compare view

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Oct 21, 2024
@github-actions
Copy link

This pull request hasn't had any activity for the last 90 days. If there's no more activity over the course of the next 14 days, it will automatically be closed.

@github-actions github-actions bot added the Stale label Feb 28, 2025
@mangas mangas force-pushed the dependabot/cargo/substreams-0.6.0 branch 4 times, most recently from 866e90f to 9dc541c Compare March 5, 2025 13:25
@mangas mangas requested review from isum, lutter and zorancv March 5, 2025 13:43
@mangas mangas force-pushed the dependabot/cargo/substreams-0.6.0 branch 2 times, most recently from c2768d6 to 1399c08 Compare March 5, 2025 17:17
dependabot bot and others added 2 commits March 5, 2025 17:18
Bumps [substreams](https://github.com/streamingfast/substreams-rs) from 0.5.20 to 0.6.0.
- [Release notes](https://github.com/streamingfast/substreams-rs/releases)
- [Changelog](https://github.com/streamingfast/substreams-rs/blob/develop/CHANGELOG.md)
- [Commits](streamingfast/substreams-rs@v0.5.20...v0.6.0)

---
updated-dependencies:
- dependency-name: substreams
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@mangas mangas force-pushed the dependabot/cargo/substreams-0.6.0 branch from 1399c08 to 720b29f Compare March 5, 2025 17:20
@mangas mangas requested a review from lutter March 5, 2025 17:20
Copy link
Collaborator

@lutter lutter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@mangas mangas merged commit a633ae2 into master Mar 5, 2025
6 checks passed
@mangas mangas deleted the dependabot/cargo/substreams-0.6.0 branch March 5, 2025 19:16
encalypto added a commit that referenced this pull request Mar 28, 2025
encalypto added a commit that referenced this pull request Mar 28, 2025
encalypto added a commit that referenced this pull request Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update Rust code Stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants