Skip to content

Commit

Permalink
Fix run all for new rust-cli target & add rerun-web alias for quick r…
Browse files Browse the repository at this point in the history
…unning of the web player (#2203)

* Fix run_all script to work with new rerun-cli

* Add rerun-web alias for quick running of the web player

---------

Co-authored-by: Emil Ernerfeldt <[email protected]>
  • Loading branch information
Wumpf and emilk committed May 25, 2023
1 parent d0fea3e commit 817aa61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[alias]
# `cargo rerun` is short a convenient shorthand, skipping the web viewer.
rerun = "run --package rerun-cli --no-default-features --features native_viewer --"
# `cargo rerun-web` is short a convenient shorthand for building & starting the web viewer.
rerun-web = "run --package rerun-cli --no-default-features --features web_viewer -- --web-viewer"

# To easily run examples on the web, see https://github.com/rukai/cargo-run-wasm.
# Temporary solution while we wait for our own xtasks!
Expand Down
4 changes: 2 additions & 2 deletions scripts/run_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def run_py_example(path: str, viewer_port: Optional[int] = None, wait: bool = Tr

def run_saved_example(path: str, wait: bool = True) -> Any:
return start_process(
["cargo", "run", "-p", "rerun", "--all-features", "--", "out.rrd"],
["cargo", "run", "-p", "rerun-cli", "--all-features", "--", "out.rrd"],
cwd=path,
wait=wait,
)
Expand Down Expand Up @@ -149,7 +149,7 @@ def run_viewer_build() -> None:
"cargo",
"build",
"-p",
"rerun",
"rerun-cli",
"--all-features",
"--quiet",
]
Expand Down

0 comments on commit 817aa61

Please sign in to comment.