- Aug 12, 2021
-
-
Hernando Castano authored
* Spit out JSON results at the end of a build * Mark `--output_json` as conflicting with `--verbose` * Override verbosity to `quiet` when outputting JSON * Update tests to include `OutputType` param * Temporarily please Clippy * Add some logging This is gonna fail, but I want to see what the CI has to say. * Remove TODO so that format CI step passes * Return result from `serialize_json` * Make JSON test a sanity check * Mention this PR in the CHANGELOG * Implement `Default` for a few build options * Address Clippy's `too_many_arguments` lint * Use `ExecuteArgs` in tests * Make `manifest_path` field public instead Clippy was complaining about `dead_code` when building in non-test mode, so I'm going with this instead. * Apply suggestions from code review Co-authored-by: Michael Müller <[email protected]> * Sanity check `BuildResult'` JSON serialized form * Add `execute()` test back * Import `OutputType` in tests Co-authored-by: Michael Müller <[email protected]>
-
Alexander Theißen authored
* Do not strip out panic messages in debug builds * Build code_only test in release mode
-
- Aug 04, 2021
-
-
Michael Müller authored
* Debug test * More debugging * Add debugging info * More debugging * More debugging * More debugging * More debugging * Remove debugging code * Restore workflow * Restore workflow * Test more sub-commands
-
- Aug 03, 2021
-
-
Michael Müller authored
* Run tests for Windows * Add test to reproduce error * Canonicalize paths in test * Revert me: Run only necessary tests * Join `Path`'s to avoid OS-specific separators * Revert me: Debug output * Fix workflow * Revert me: Debugging * Windows debugging * More debugging * Debugging * Debugging * Add nightly * Debugging * Debugging * Debugging * Debugging * Debugging * Fix commands * Debug path * Debug path * Debug path * Debug path * Debug path * Debug path * Debug path * Debug path * Debug path * Debug path * Debug path * Debug path * Remove eprintln's * Test should fail * Test should run * Test should run * Restore Windows testing * Apply `cargo fmt` * Fix default * Remove debug stuff * Run tests only `master` * Update changelog
-
- Jul 22, 2021
-
-
Michael Müller authored
* Implement `BuildMode` * Remove `ignore` since all tests are failing anyway * Switch to `--release` * Revert "Switch to `--release`" This reverts commit 3cb01e10. * Keep `BuildMode` enum * Improve readability * Update changelog * Make `rustfmt` always report todo's and fixme's * Remove todo comment * Fix tests
-
Hernando Castano authored
* Change default opitmization pass to focus on code size * Change default optimization level from `-Os` to `-Oz` * Update CHANGELOG
-
- Jul 20, 2021
-
-
Alexander Theißen authored
* Check all the code with clippy * Fix clippy warnings
-
Alexander Theißen authored
* Add `--keep-symbols` flag * Replace pwasm_utils::optimize by a simple export stripper * Satisfy clippy * Fix typos Co-authored-by: Michael Müller <[email protected]> * Fix test build errors * Fix tests * Rename to `--keep-debug-symbols` * Add test for `--keep-debug-symbols` * Fix typos Co-authored-by: Andrew Jones <[email protected]> Co-authored-by: Michael Müller <[email protected]> * Restore when/then Co-authored-by: Michael Müller <[email protected]> Co-authored-by: Andrew Jones <[email protected]>
-
- Jun 17, 2021
-
-
Michael Müller authored
-
- May 25, 2021
-
-
Michael Müller authored
* Always use for Wasm output file name * Use `contract_artifact_name` instead of `package_name` * Apply `cargo fmt` * Satisfy clippy
-
- May 12, 2021
-
-
Michael Müller authored
* Suggest `binaryen` installation from GitHub on outdated version * Fix tests
-
- Apr 21, 2021
-
-
Michael Müller authored
* Add CI for building contract template under Windows * Disable `unix` specific tests * Remove build warnings due to `dead_code` with default features * Remove unused `binaryen` dependency * Ensure path is always canonicalized for comparison * Apply auto-formatting to yml * CI: optimize caching Co-authored-by: Denis P <[email protected]>
-
- Apr 20, 2021
-
-
Michael Müller authored
* Add fix * Revert "Add fix" This reverts commit 5c81fee5. * Generate unique contract names for tests * Fix test * Implement comments * Implement comments
-
- Apr 12, 2021
-
-
Michael Müller authored
* Remove support for `binaryen-as-dependency` * Add to changelog
-
- Apr 06, 2021
-
-
Michael Müller authored
* Fix `wasm-opt --version` parsing * Mark stdout output and error clearer * Implement comments * Update readme * Update readme
-
- Mar 31, 2021
-
-
Michael Müller authored
* Improve error output * Add installation commands * Fix casing * Use display instead of debug
-
- Mar 30, 2021
-
-
Michael Müller authored
* Improve `wasm-opt` not found error message * Improve error message + check `wasm-opt` compatibility * Use `regex` for parsing `wasm-opt --version` * Apply suggestions from code review Co-authored-by: Andrew Jones <[email protected]> * Implement comments * Apply cargo fmt Co-authored-by: Andrew Jones <[email protected]>
-
Andrew Jones authored
* Check wasm optimized output file exists * Fmt * Add expected optimized file to error * Use display for path
-
- Mar 26, 2021
-
-
Michael Müller authored
* Detect version mismatches of `parity-scale-codec` * Detect `scale-info` mismatch as well * Improve error message * Clarify when a mismatch happens
-
Michael Müller authored
* Add missing derive * Write value actually to manifest * Add another test * Reduce code duplication * Implement comments * Derive `PartialEq` always
-
- Mar 24, 2021
-
-
Michael Müller authored
* Reduce code for `OptimizationPasses` * Fix typo: zeros ➜ zeroes * Reduce code for `OptimizationPasses` * Add log output for optimization flags * Support `optimization-passes` in the release profile * Add link to Windows binary releases to Readme * Improve failed assert message * Account for `binaryen-rs` behavior * Link GitHub issue in comment * Implement comments * Update `--help`
-
- Mar 18, 2021
-
-
Andrew Jones authored
* Refactoring build, phase 1 * Fmt * Extract local method for building, always optimize on build * Add MetadataResult type * Fmt * Create dest wasm dir * Execute build directly from metadata tests * Modify existing build test to code only, since metadata test now builds all * Fix errors after merge
-
Michael Müller authored
-
trace-andreason authored
* ink::test attributes in new template * add use ink * adding optimization-passes option * undoing unnecessary variable name change * remove fork changes * adding optimization_passes to tests * cargo fmting * switching to enum type * Update src/main.rs Co-authored-by: Michael Müller <[email protected]> * Update src/main.rs Co-authored-by: Michael Müller <[email protected]> * Update src/main.rs Co-authored-by: Michael Müller <[email protected]> * Update src/main.rs Co-authored-by: Michael Müller <[email protected]> * Update src/main.rs Co-authored-by: Michael Müller <[email protected]> * adding cli help comment * add line so default option is more visible * Update src/cmd/build.rs Co-authored-by: Michael Müller <[email protected]>
-
- Mar 10, 2021
-
-
Michael Müller authored
* Revert "Revert me: Remove `--all-features` (#114)" This reverts commit 4a0d352b. * Pass verbosity flag * Format use * Run tests without `binaryen-as-dependency` * Update to `scale-info` 0.6 * Fix `value used after move` * Do not continue processing wasm on `check` Results in `No such file` otherwise, since no *.wasm is generated on `check`. * Make casing consistent for `log` messages * Clarify behavior of `check` * Revert me: add debug output * Upgrade `cargo_metadata` to 0.13.1 * Fix assert for target path `target/ink` * Revert "Revert me: add debug output" This reverts commit d2bf1dd9. * Revert "Upgrade `cargo_metadata` to 0.13.1" This reverts commit 723c9b29. * Run tests only with `binaryen-as-dependency` * Upgrade cargo-metadata and fix usages (#210) * Only allow new contract names beginning with an alphabetic character (#219) * Only allow contract names beginning with an alphabetic character * Add test for contract name beginning with a number * Add test for contract name beginning with a number * Run tests only with `binaryen-as-dependency` * Refactor * Revert "Refactor" This reverts commit defe20db . Co-authored-by: Andrew Jones <[email protected]>
-
- Feb 22, 2021
-
-
Michael Müller authored
* Use `--zero-filled-memory` for `wasm-opt` * Assert that compiled contract template is below 3k * Apply cargo fmt * Remove superfluous comment * Improve error message on `wasm-opt` error * Specify minimum binaryen version
-
- Feb 18, 2021
-
-
Michael Müller authored
* Revert me: Hotfix for funty issue * Assert that size of resulting wasm is > 0 * Ensure optimized file is not overwritten with empty file on `not(feature = binaryen-as-dependency)` * Fix `warning: panic message is not a string literal` * Do not record debug info * Update comments
-
- Feb 11, 2021
-
-
Michael Müller authored
* Implement Wasm validation for known issues/markers * Add test for invalid panic import * Add prefix to error markers * Add test for ink! codegen error marker * Implement improved linker error protocol * Move validation into its own module * Migrate tests to new linker error protocol * Fix merge * Improve code structure * Fix formatting * Improve code structure * Remove mod indirection * Replace `contains` with `starts_with` * Add note regarding equivalent ink! type necessity * Throw an error on invalid import function * Add sunny day test * Do not panic if no import section is found * Update error message on decoding error
-
- Feb 04, 2021
-
-
Michael Müller authored
* Fix `#[warn(clippy::ptr_arg)]` * Use either `binaryen-rs` dep or `wasm-opt` binary * Implement reviewers suggestions * Rename `optimization_level` to `optimization_passes` * Revert "Rename `optimization_level` to `optimization_passes`" This reverts commit 1fd35bcd. * Update installation instructions * Update readme * Add package manager links
-
- Feb 03, 2021
-
-
Michael Müller authored
* Fix `#[warn(clippy::ptr_arg)]` * Fix `#[warn(clippy::ptr_arg)]` * Fix `#[warn(clippy::match_like_matches_macro)]` * Fix `#[warn(clippy::type_complexity)]`
-
Michael Müller authored
* Print warning to stderr * Suppress output on `--quiet` * Refactor conditional printing
-
- Jan 22, 2021
-
-
Michael Müller authored
* Do not generate artifacts under `target` for `contract check` * Add test * Use `cargo check` for `contract check` * Replace `if` with `assert` * Shorten code * Minor code improvs
-
- Jan 18, 2021
-
-
Andrew Jones authored
-
- Jan 07, 2021
-
-
honeywest authored
-
- Dec 14, 2020
-
-
Michael Müller authored
* Put build artifacts under `target/ink/` * Add test * Add new `target_directory` field on metadata struct * Remove unnecessary `push` * Remove redundant binding
-
- Dec 02, 2020
-
-
Michael Müller authored
* Make naming consistent * Fix number of steps displayed in `check` * Move base name function to utilities * Shift logic to `BuildCommand` and `CheckCommand` * Consistent naming: GenerationResult ➜ BuildResult * Consistent naming: GenerateArtifacts ➜ BuildArtifacts * Update comment * Move comment to struct * Remove Note section from comment
-
- Nov 10, 2020
-
-
Michael Müller authored
* Fix URIs * Make `generate-metadata` output consistent with `build` * Add `cargo contract pack` * Return error instead of panicking * Use blake2_hash() * Replace match with if * Pass reference instead of ownership * Generate metadata.json and <contract>.pack * Output .wasm, .json, .pack * Return result object instead of tuple * Get it to run with '--features test-ci-only' * Rename .pack to .contract * Apply suggestions from code review Co-authored-by: Alexander Theißen <[email protected]> * Introduce '--skip-packing' and '--skip-metadata' * Apply suggestions from code review Co-authored-by: Alexander Theißen <[email protected]> * Short help message * Output deprecated error for 'generate-metadata' * Rename pack ➜ bundle * Add 'cargo contract check' command * Optimize resulting Wasm file, except on 'check' * Do not make unoptimized file easily mistake for optimized one * Get it to run with * Update readme * Make unoptimized wasm not show up in target folder * Update comments * Remove 'generate-metadata' variants * Move dispatch logic into metadata * Update src/main.rs Co-authored-by: Alexander Theißen <[email protected]> * Move logic into build.rs * Improve progress output * Make clippy happy * Fix progress output * Make it work with `--features test-ci-only` * Apply cargo fmt * Always use optimized Wasm for metadata hash * Always use optimized Wasm for metadata hash * Make it work with `--features test-ci-only` * Switch naming * Fix metadata/bundle output * Use enum `BuildArtifacts` instead of boolean flags * Improve misleading fn name * Make it work with `--features test-ci-only` * Make output more concise * Print optimization result at the end * Improve output * Replace 5-tuple return value with struct * Include hash only for bundle in metadata * Make it work with `--features test-ci-only` * Fix doc test * Remove comments * Introduce wrapper type CodeHash * Make it work with `--features test-ci-only` * Display important results bold * Include size diff for `code-only` as well * Remove comment * Shorten code * Clone metadata for correct UI output * Remove unnecessary return * Fix return type * Print metadata generation in correct step Co-authored-by: Alexander Theißen <[email protected]>
-
- Nov 05, 2020
-
-
Andrew Jones authored
* Replace xbuild with cargo build-std * Comment about overridden RUSTFLAGS Co-authored-by: Michael Mueller <[email protected]>
-
- Nov 02, 2020
-
-
Michael Müller authored
* Use binaryen-rs as dep instead of manual install of wasm-opt * Get CI to build binaryen-sys * Add explanatory comment * Remove CXX export, will be set in docker instead
-
- Oct 29, 2020
-
-
Andrew Jones authored
* Add --manifest-path to build and generate-metadata * Fix up manifest path options * Fmt and use ManifestPath * Update src/main.rs Co-authored-by: Michael Müller <[email protected]> Co-authored-by: Michael Müller <[email protected]>
-