- Nov 16, 2021
-
-
Green Baneling authored
* `-Clinker-plugin-lto` reduced the size of my contract From: Original wasm size: 68.6K, Optimized: 31.9K To: Original wasm size: 67.2K, Optimized: 31.0K * Compiler will use `-Clinker-plugin-lto` if `lto` is enabled
-
- Nov 08, 2021
-
-
achimcc authored
* add offline flag to build mode * add network enum and interpret --offline flag * support offline flag for metadata generation * cargo fmt * cargo clippy * fix tests
-
- Aug 12, 2021
-
-
Michael Müller authored
* Add log output * Add #326 to changelog * Bump version * Fix changelog
-
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]>
-
- Jul 03, 2021
-
-
chiefbiiko authored
-
- 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]>
-
- Mar 09, 2021
-
-
Andrew Jones authored
* 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
-
- Feb 24, 2021
-
-
trace-andreason authored
* no periods in new contract names * test for valid characters * more readable iterator
-
Michael Müller authored
* Build sub-contracts into sub-folders of `target/ink/` * Reduce code duplication with util function * Make `absolute_directory` method on `ManifestPath` * Revert unnecessary changes * Ensure workspace root is also the canonical path
-
- 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
* Generate metadata explicitly for the contract which is build * Improve naming and comments * Revert me: Hotfix for funty issue * Move path replacement logic * Revert new line change * Simplify for which package metadata is generated * Change order back * Make code clearer
-
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
-