Skip to content

Commit

Permalink
chore(ui): fix ui development env
Browse files Browse the repository at this point in the history
  • Loading branch information
DefectingCat committed Feb 10, 2025
1 parent acb9733 commit 39dfa8b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ strip = true # En
trim-paths = "all" # Removes potentially privileged information from your binaries.
rustflags = ["-Cdebuginfo=0", "-C", "target-cpu=native", "-Z", "threads=8"]

[profile.ui-dev]
inherits = "dev"
rustflags = ["-Z", "threads=8", "--cfg", 'getrandom_backend="wasm_js"']

[profile.ui]
inherits = "release"
opt-level = "s"
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ui:

ui-dev:
cd venus-ui \
&& trunk serve
&& trunk serve --cargo-profile ui-dev

ui-release: ui-clean
cd venus-ui \
Expand Down

0 comments on commit 39dfa8b

Please sign in to comment.