Skip to content
  1. Aug 03, 2021
    • Michael Müller's avatar
      Fix path issue for Windows (#313) · c76ffc6a
      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
      c76ffc6a
  2. Jul 22, 2021
    • Michael Müller's avatar
      Implement `BuildMode` (#298) · b5f241f8
      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
      b5f241f8
    • Hernando Castano's avatar
      Change default optimizations pass to focus on code size (#305) · f165b8c4
      Hernando Castano authored
      * Change default opitmization pass to focus on code size
      
      * Change default optimization level from `-Os` to `-Oz`
      
      * Update CHANGELOG
      f165b8c4
  3. Jul 20, 2021
  4. Jul 03, 2021
  5. Jun 17, 2021
  6. May 25, 2021
  7. May 12, 2021
  8. Apr 21, 2021
  9. Apr 20, 2021
    • Michael Müller's avatar
      Fix flaky CI test (#263) · 307de23e
      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
      307de23e
  10. Apr 13, 2021
    • Michael Müller's avatar
      Fix `clippy:wrong_self_convention` (#256) · a8c85897
      Michael Müller authored
      error: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value
        --> src/workspace/profile.rs:75:22
         |
      75 |     fn to_toml_value(&self) -> value::Value {
         |                      ^^^^^
         |
         = note: `-D clippy::wrong-self-convention` implied by `-D warnings`
         = help: consider choosing a less ambiguous name
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention
      
      error: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value
         --> src/workspace/profile.rs:102:22
          |
      102 |     fn to_toml_value(&self) -> value::Value {
          |                      ^^^^^
          |
          = help: consider choosing a less ambiguous name
          = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention
      
      error: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value
         --> src/workspace/profile.rs:121:22
          |
      121 |     fn to_toml_value(&self) -> value::Value {
          |                      ^^^^^
          |
          = help: consider choosing a less ambiguous name
          = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention
      a8c85897
  11. Apr 12, 2021
  12. Apr 06, 2021
  13. Apr 01, 2021
    • Aten's avatar
      Add git commit hash in cargo-contract version (#189) · cacf2d54
      Aten authored
      * add git commit hash in cargo-contract version
      
      * remove todo and add version for `cargo contract` command
      
      * It seems that I misunderstand the requirements. recover the old modify
      
      * remove `pub`
      cacf2d54
  14. Mar 31, 2021
  15. Mar 30, 2021
  16. Mar 26, 2021
  17. Mar 24, 2021
    • Michael Müller's avatar
      Support `optimization-passes` in the release profile (#231) · 3454c125
      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`
      3454c125
  18. Mar 18, 2021
  19. Mar 10, 2021
    • Michael Müller's avatar
      Bring `test-ci-only` back (#180) · 4111385f
      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: default avatarAndrew Jones <[email protected]>
      4111385f
  20. Mar 09, 2021
  21. Feb 24, 2021
  22. Feb 22, 2021
    • Michael Müller's avatar
      Fix `wasm-opt` regression (#187) · 95c5ee85
      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
      95c5ee85
  23. Feb 18, 2021
  24. Feb 11, 2021
    • Michael Müller's avatar
      Implement Wasm validation for known issues/markers (#171) · 4f7356b7
      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
      4f7356b7
  25. Feb 04, 2021
    • Michael Müller's avatar
      Use either `binaryen-rs` dep or `wasm-opt` binary (#168) · 0e80763c
      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
      0e80763c
  26. Feb 03, 2021
  27. Jan 22, 2021
  28. Jan 18, 2021