Skip to content

Add information for reproducible builds to metadata #525

@cmichi

Description

@cmichi

Needed to enable reproducible builds for use-ink/ink#1226.

We need:

  • rust version
  • cargo contract version
  • release vs. debug build
  • wasm-opt version

ToDo

  • Emit the information to the metadata on cargo contract build
  • Add cargo contract verify [TARGET.contract] which reads the information from the metadata, builds the current workspace according to it and compares the resulting output.contract file against the TARGET
  • Check that no environment variables are passed through from the user to rustc
  • Create follow-up issue for Solang to do the same.
  • Create follow-up issue for ask! to do the same.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions