-
Notifications
You must be signed in to change notification settings - Fork 126
Implement new commands build and check + introduce bundles (.contract files)
#97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
5d26731
Fix URIs
cmichi 806929f
Make `generate-metadata` output consistent with `build`
cmichi 7161a6d
Add `cargo contract pack`
cmichi 5e3f520
Return error instead of panicking
cmichi e7fbaba
Use blake2_hash()
cmichi 61f7261
Replace match with if
cmichi 6cc0a67
Pass reference instead of ownership
cmichi d9eb49e
Generate metadata.json and <contract>.pack
cmichi 4d1edfa
Output .wasm, .json, .pack
cmichi 0eb1949
Return result object instead of tuple
cmichi 3b3206e
Get it to run with '--features test-ci-only'
cmichi f5450d6
Rename .pack to .contract
cmichi c71639f
Apply suggestions from code review
2aa7c96
Introduce '--skip-packing' and '--skip-metadata'
cmichi 9fc63a0
Merge branch 'master' into cmichi-implement-cargo-pack
cmichi b40a82e
Apply suggestions from code review
bd6477f
Short help message
cmichi 294d206
Output deprecated error for 'generate-metadata'
cmichi bb6f5e5
Rename pack ➜ bundle
cmichi 8b7f712
Add 'cargo contract check' command
cmichi e89b6df
Optimize resulting Wasm file, except on 'check'
cmichi 0850779
Do not make unoptimized file easily mistake for optimized one
cmichi 4dc41b7
Get it to run with
cmichi 85efad8
Update readme
cmichi 44d3a85
Make unoptimized wasm not show up in target folder
cmichi 63a7131
Update comments
cmichi 54a7105
Remove 'generate-metadata' variants
cmichi 73d8e94
Move dispatch logic into metadata
cmichi 134c07a
Update src/main.rs
1e7dabb
Move logic into build.rs
cmichi c7e2ffe
Improve progress output
cmichi 8229246
Make clippy happy
cmichi 3500946
Fix progress output
cmichi d2290c4
Make it work with `--features test-ci-only`
cmichi f8246d3
Apply cargo fmt
cmichi 939a19b
Always use optimized Wasm for metadata hash
cmichi 007bb65
Always use optimized Wasm for metadata hash
cmichi c99bd37
Make it work with `--features test-ci-only`
cmichi c74e3aa
Switch naming
cmichi bc965c7
Fix metadata/bundle output
cmichi da0c4ef
Use enum `BuildArtifacts` instead of boolean flags
cmichi c521d61
Improve misleading fn name
cmichi 8b2b3d2
Make it work with `--features test-ci-only`
cmichi d08a6f1
Make output more concise
cmichi 9ed109b
Print optimization result at the end
cmichi 693f987
Improve output
cmichi 160b992
Replace 5-tuple return value with struct
cmichi c699312
Include hash only for bundle in metadata
cmichi 923cded
Make it work with `--features test-ci-only`
cmichi fcb66c6
Fix doc test
cmichi c5296ad
Remove comments
cmichi 4cdc220
Introduce wrapper type CodeHash
cmichi 930a309
Make it work with `--features test-ci-only`
cmichi 4403bd7
Display important results bold
cmichi 0c596f0
Include size diff for `code-only` as well
cmichi d9a0f10
Remove comment
cmichi 8737b9b
Shorten code
cmichi 234b45f
Clone metadata for correct UI output
cmichi 8474209
Remove unnecessary return
cmichi b6b9cad
Fix return type
cmichi 1c067d9
Print metadata generation in correct step
cmichi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Apply suggestions from code review
Co-authored-by: Alexander Theißen <alex.theissen@me.com>
- Loading branch information
commit b40a82e787f6716bcc5ad4e1a3d3021ae98b1758
There are no files selected for viewing
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.