Skip to content
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

feat(wasm-builder): New approach to build demos #3602

Closed
wants to merge 85 commits into from
Closed
Show file tree
Hide file tree
Changes from 78 commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
576b56f
Initial commit
ark0f Dec 13, 2023
b9e51b9
Add tracing based on cargo and lock file
ark0f Dec 15, 2023
45c2d40
Use `wasm-dep-builder` in pallet-gear
ark0f Dec 15, 2023
5b4b12f
Use `wasm-dep-builder` in all pallet-gear demos
ark0f Dec 15, 2023
53c2744
Build packages in workspace
ark0f Dec 17, 2023
1526bf1
Fix cargo config is in wrong folder
ark0f Dec 17, 2023
df03809
Optimize binaries
ark0f Dec 17, 2023
2384b97
Merge `origin/master`
ark0f Dec 17, 2023
c7e9636
Merge remote-tracking branch 'origin/master' into al/no-wasm-builder
ark0f Dec 24, 2023
84de8f3
Fix missing `wasm_binary.rs` file error appears sometime
ark0f Dec 24, 2023
c13b7f6
Fix some demos are not rebuilt
ark0f Dec 25, 2023
ce5d39d
Make demo imports like before
ark0f Dec 25, 2023
fb310d6
Make `pallet-gear-binaries` crate optional
ark0f Dec 25, 2023
2313d74
Follow new approach in `test-syscalls`
ark0f Dec 25, 2023
6dfbc83
Make build command persistent
ark0f Dec 25, 2023
03ffa6e
Rename WASM binary consts
ark0f Dec 25, 2023
6f3a50c
Remove `test-wasm-dep`
ark0f Dec 25, 2023
fb5f2e9
Introduce `debug` feature in binaries crate
ark0f Dec 25, 2023
0a2e664
Advanced feature tracking
ark0f Dec 25, 2023
297513c
Introduce `LockFile`
ark0f Dec 25, 2023
96882c9
Introduce `from_value` constructors
ark0f Dec 25, 2023
78f0d44
Remove obsolete environment variable
ark0f Dec 25, 2023
58f6b47
Make features tracking persistent
ark0f Dec 25, 2023
4e98b52
Refactor builder
ark0f Dec 28, 2023
0c850e6
Fix clippy warnings
ark0f Dec 31, 2023
3ee9e29
Revert benchmarks.rs in fungible-token
ark0f Dec 31, 2023
c3e0a2f
Use `wasm-dep-builder` in `gtest`
ark0f Dec 31, 2023
d99ffc8
Use `wasm-dep-builder` in `gclient`
ark0f Dec 31, 2023
beb21fa
Use `wasm-dep-builder` in `gsdk`
ark0f Dec 31, 2023
0d68a2b
Use `wasm-dep-builder` in `pallet-gear-debug`
ark0f Dec 31, 2023
2218d16
Merge `origin/master`
ark0f Dec 31, 2023
8daa4b3
Use `wasm-dep-builder` in `gear-authorship`
ark0f Dec 31, 2023
0006b79
Remove redundant `lib` section in `binaries` crates
ark0f Dec 31, 2023
df6e502
Move `utils.rs` into dir to avoid build of unused binary in `demo-wai…
ark0f Dec 31, 2023
c395c86
Derive package table from workspace in `pallet-gear-binaries`
ark0f Dec 31, 2023
2fc0769
Close lock file only after build is finished
ark0f Dec 31, 2023
5b845ef
Distinguish function in loops
ark0f Dec 31, 2023
16df871
Use cargo terms for `RebuildKind`
ark0f Dec 31, 2023
b1f8f39
Support skipping WASM build
ark0f Jan 2, 2024
0136522
`rlib` -> `lib`
ark0f Jan 2, 2024
7c3ae10
Resolve features in `builder.rs`
ark0f Jan 3, 2024
55fa773
Always run `demo()`
ark0f Jan 3, 2024
e5e10b7
Introduce `manifest_dir()`
ark0f Jan 3, 2024
893f7b7
Don't enable `pallet-gear-binaries` by default
ark0f Jan 3, 2024
80cf2d8
Move lock file into lock.rs
ark0f Jan 15, 2024
324c359
Merge `origin/master`
ark0f Jan 15, 2024
125da3e
Remove `pallet-gear-debug-binaries`
ark0f Jan 15, 2024
9c91d30
Remove `optimize` and `write_configs`
ark0f Jan 15, 2024
856d72f
Remove `-v` flag in builder.rs
ark0f Jan 15, 2024
0b5da68
Fix `authorship` demo deps
ark0f Jan 15, 2024
e38e8b8
Introduce `to_unix_path()` and `cargo_profile()`
ark0f Jan 16, 2024
7846b5d
Introduce `filter_dep()` instead of 2 methods in `BuilderMetadata`
ark0f Jan 16, 2024
59e17b1
Don't use lock file in builder.rs
ark0f Jan 16, 2024
6842c23
Remap path prefixes
ark0f Jan 16, 2024
cd07158
Introduce `find_pkg`
ark0f Jan 16, 2024
8ccaa6a
Reorganize crate
ark0f Jan 16, 2024
0adc9e4
Merge remote-tracking branch 'origin/master' into al/no-wasm-builder
ark0f Jan 16, 2024
45eeb7b
Don't write config if there was no actual build
ark0f Jan 16, 2024
e45da49
Rename `demo` -> `program`, `builder` -> `binaries`
ark0f Jan 17, 2024
5e903dc
Remove `PackageMetadata`
ark0f Jan 17, 2024
109edbc
Make `skip_build()` private
ark0f Jan 17, 2024
6ea2646
Fix function name
ark0f Jan 17, 2024
c045331
Don't create lock file when builder occurred
ark0f Jan 17, 2024
8e2e0fa
Add comments
ark0f Jan 17, 2024
adb781b
Merge remote-tracking branch 'origin/master' into al/no-wasm-builder
ark0f Jan 22, 2024
b3954fc
Update Cargo.lock
ark0f Jan 22, 2024
172178c
Store WASM paths in build package
ark0f Jan 22, 2024
1845390
Write `.binpath`
ark0f Jan 22, 2024
afd9aa8
Introduce `PostPackage`
ark0f Jan 22, 2024
7888e16
Fix clippy warnings
ark0f Jan 22, 2024
9f00356
Use bloaty WASM path to write `.binpath`
ark0f Jan 22, 2024
929f77f
Use volatile write in `demo-gas-burned`
ark0f Jan 22, 2024
28b909c
Implement access to WASM binaries in benchmarks
ark0f Jan 30, 2024
00e5a0a
Merge `origin/master`
ark0f Jan 30, 2024
512e433
Add feature-gate for `WasmBinary` impl
ark0f Jan 30, 2024
4305791
Import `alloc` in `demo-reserve-gas`
ark0f Jan 30, 2024
a5ecc28
Set mtime to zero to avoid rebuilds
ark0f Feb 1, 2024
1c2dde2
Merge remote-tracking branch 'origin/master' into al/no-wasm-builder
ark0f Feb 2, 2024
42a7a33
Merge remote-tracking branch 'origin/master' into al/no-wasm-builder
ark0f Feb 5, 2024
cda85fb
Build in its crate's own directory
ark0f Feb 5, 2024
9f45efd
Rename `read` -> `read_any` for `BinariesLockFileConfig`
ark0f Feb 5, 2024
54fc69a
Remove debug warnings
ark0f Feb 5, 2024
ae89a05
Copy binaries to default directory
ark0f Feb 5, 2024
9e59065
Fix `unused imports` warning
ark0f Feb 5, 2024
943d9e4
Update copyright
ark0f Feb 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[target.wasm32-unknown-unknown]
rustflags = ["-C", "link-arg=--import-memory", "-C", "linker-plugin-lto"]
Loading
Loading