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

Fix run all for new rust-cli target & add rerun-web alias for quick running of the web player #2203

Merged
merged 3 commits into from
May 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
@@ -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