forked from use-ink/cargo-contract
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Rust specific build info to metadata (use-ink#680)
* Write (slightly-hardcoded) build info to metadata * Add `channel-date` formatted rustc version to metadata * Remove `features` from `BuildInfo` Since we hardcode these into `cargo-contract` we shouldn't need to track these manually * Add `wasm-opt` version to metadata * Move `BuildInfo` construction to `build` closure * Add `build_info` field to tests * Improve conversion between `BuildInfo` and `serde_json::Map` * Add `version` getter to `WasmOptHandler` * Move code which indicates current toolchain to `utils` * Handle case where `cargo-contract` version can't be parsed * Use a stable `rustc` version * Add `keep_debug_symbols` to metadata * Add `CHANGELOG` entry * Remove `version` from `WasmOptSettings` Since we're using the `wasm-opt` library from crates.io we'll assume that every matching version of `cargo-contract` contains the same version of `wasm-opt`. This doesn't hold if a user installs without the `--locked` flag though, so we may want to add this back in the future to warn users if there are mismatching `wasm-opt` versions. * Add target triple to `build_info` * Move `CARGO_PKG_VERSION` into a const * Appease Clippy * Rename field to more accurate `rust_toolchain`
- Loading branch information
Showing
6 changed files
with
146 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters