-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove `native_viewer` from the default features of `rerun` crate Closes #1997 Most of our users only use the `rerun` library as a logging library but are still paying the cost of compiling the native viewer. With this PR, the `rerun` crate will not have the `native_viewer` (not `web_viewer`) feature on by default. This halves the compilation time on my computer. The `native_viewer` feature is only for users using the `show` or `spawn` features, which will hopefully be removed soon anyay: * #2109 To install the `rerun` binary with `native_viewer` and `web_viewer`, you now have to run `cargo install rerun --features binary`. This will be improved by: * #2108 To make things nicer for us developers, I've added `cargo rerun` as a shorthand for compiling and running `rerun` with the `native_viewer` feature, but NOT the `web_viewer` feature. * Add rerun-cli Users will now install the `rerun` binary with `cargo install rerun-cli` * Add a README.md * better text about how to run examples Co-authored-by: Andreas Reich <[email protected]> * Improve docs * Update RELEASES.md * Add checking of the docs to the release process --------- Co-authored-by: Andreas Reich <[email protected]>
- Loading branch information
Showing
22 changed files
with
183 additions
and
40 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,11 @@ This is a living document. Strive to improve it on each new release. | |
* [ ] Editorialize the changelog if necessary | ||
* [ ] Make sure the changelog includes instructions for handling any breaking changes | ||
* [ ] Commit and push the changelog | ||
* [ ] Check that the [`rerun-docs`](https://github.com/rerun-io/rerun-docs) are up to date: | ||
* [ ] Python quick start | ||
* [ ] Logging Data in Python | ||
* [ ] Rust quick start | ||
* [ ] Logging Data in Rust | ||
* [ ] Create a draft PR containing: | ||
* [ ] One-line summary of the release | ||
* [ ] A multi-line summary of the release | ||
|
@@ -96,7 +101,7 @@ Before pushing the release tag: | |
|
||
After tagging and the CI has published: | ||
* [ ] Test the Python packages from PyPI: `pip install rerun_sdk==0.x.0a1` | ||
* [ ] Test rust install version: `cargo install -f [email protected] -F web_viewer && rerun --web-viewer api.rrd` | ||
* [ ] Test rust install version: `cargo install --force rerun-cli@0.x.0-alpha.1 && rerun --web-viewer api.rrd` | ||
* [ ] Test rust crate: Modify Cargo.toml of any example to not point to the workspace | ||
* [ ] run with `--serve` to test web player | ||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
[package] | ||
name = "rerun-cli" | ||
authors.workspace = true | ||
categories = ["visualization", "computer-vision"] | ||
default-run = "rerun" | ||
description = "Log images, point clouds, etc, and visualize them effortlessly" | ||
edition.workspace = true | ||
homepage.workspace = true | ||
include.workspace = true | ||
keywords = ["mesh", "plotting", "point-cloud", "robotics", "visualization"] | ||
license.workspace = true | ||
publish = true | ||
readme = "README.md" | ||
repository.workspace = true | ||
rust-version.workspace = true | ||
version.workspace = true | ||
|
||
[package.metadata.docs.rs] | ||
all-features = true | ||
targets = ["x86_64-unknown-linux-gnu", "wasm32-unknown-unknown"] | ||
|
||
|
||
[features] | ||
# The default is what the user gets when they call `cargo install rerun-cli`, | ||
# so wer have all the bells and wistles here | ||
default = ["native_viewer", "web_viewer"] | ||
|
||
## Support spawning a native viewer. | ||
## This adds a lot of extra dependencies, so only enable this feature if you need it! | ||
native_viewer = ["rerun/native_viewer"] | ||
|
||
## Support serving a web viewer over HTTP. | ||
## | ||
## Enabling this inflates the binary size quite a bit, since it embeds the viewer wasm. | ||
# When building from source (in the repository), this feature adds quite a bit | ||
# to the compile time since it requires compiling and bundling the viewer as wasm. | ||
# | ||
# You also need to install some additional tools, which you can do by running | ||
# [`scripts/setup_web.sh`](https://github.com/rerun-io/rerun/blob/main/scripts/setup_web.sh). | ||
web_viewer = ["rerun/web_viewer"] | ||
|
||
[dependencies] | ||
re_build_info.workspace = true | ||
re_log.workspace = true | ||
re_memory.workspace = true | ||
rerun = { workspace = true, features = [ | ||
"analytics", | ||
"demo", | ||
"glam", | ||
"image", | ||
"sdk", | ||
"server", | ||
] } | ||
|
||
anyhow.workspace = true | ||
document-features = "0.2" | ||
mimalloc.workspace = true | ||
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } | ||
|
||
|
||
[build-dependencies] | ||
re_build_build_info.workspace = true |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<h1 align="center"> | ||
<a href="https://www.rerun.io/"> | ||
<img alt="banner" src="https://user-images.githubusercontent.com/1148717/218142418-1d320929-6b7a-486e-8277-fbeef2432529.png"> | ||
</a> | ||
</h1> | ||
|
||
<h1 align="center"> | ||
<a href="https://crates.io/crates/rerun-cli"> <img alt="Latest version" src="https://img.shields.io/crates/v/rerun-cli.svg"> </a> | ||
<a href="https://docs.rs/rerun-cli"> <img alt="Documentation" src="https://docs.rs/rerun-cli/badge.svg"> </a> | ||
<a href="https://github.com/rerun-io/rerun/blob/master/LICENSE-MIT"> <img alt="MIT" src="https://img.shields.io/badge/license-MIT-blue.svg"> </a> | ||
<a href="https://github.com/rerun-io/rerun/blob/master/LICENSE-APACHE"> <img alt="Apache" src="https://img.shields.io/badge/license-Apache-blue.svg"> </a> | ||
<a href="https://discord.gg/Gcm8BbTaAj"> <img alt="Rerun Discord" src="https://img.shields.io/discord/1062300748202921994?label=Rerun%20Discord"> </a> | ||
</h1> | ||
|
||
## Rerun command-line tool | ||
You can install the binary with `cargo install rerun-cli` | ||
|
||
This can act either as a server, a viewer, or both, depending on which options you use when you start it. | ||
|
||
Running `rerun` with no arguments will start the viewer, waiting for an SDK to connect to it over TCP. | ||
|
||
Run `rerun --help` for more. | ||
|
||
|
||
## What is Rerun? | ||
- [Examples](https://github.com/rerun-io/rerun/tree/latest/examples/rust) | ||
- [High-level docs](http://rerun.io/docs) | ||
- [Rust API docs](https://docs.rs/rerun/) | ||
- [Troubleshooting](https://www.rerun.io/docs/getting-started/troubleshooting) | ||
|
||
|
||
### Running a web viewer | ||
```sh | ||
rerun --web-viewer ../nyud.rrd | ||
``` |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
fn main() { | ||
re_build_build_info::rebuild_if_crate_changed("rerun-cli"); | ||
re_build_build_info::export_env_vars(); | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
//! The `rerun` binary, part of the [`rerun`](https://github.com/rerun-io/rerun) family of crates. | ||
//! | ||
//! Run `rerun --help` for more information. | ||
//! | ||
//! ## Feature flags | ||
#![doc = document_features::document_features!()] | ||
//! | ||
//! ## Links | ||
//! - [Examples](https://github.com/rerun-io/rerun/tree/latest/examples/rust) | ||
//! - [High-level docs](http://rerun.io/docs) | ||
//! - [Rust API docs](https://docs.rs/rerun/) | ||
//! - [Troubleshooting](https://www.rerun.io/docs/getting-started/troubleshooting) | ||
use re_memory::AccountingAllocator; | ||
|
||
#[global_allocator] | ||
static GLOBAL: AccountingAllocator<mimalloc::MiMalloc> = | ||
AccountingAllocator::new(mimalloc::MiMalloc); | ||
|
||
#[tokio::main] | ||
async fn main() -> anyhow::Result<std::process::ExitCode> { | ||
re_log::setup_native_logging(); | ||
let build_info = re_build_info::build_info!(); | ||
rerun::run(build_info, rerun::CallSource::Cli, std::env::args()) | ||
.await | ||
.map(std::process::ExitCode::from) | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
9cb1685
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark 'Rust Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
1.25
.datastore/num_rows=1000/num_instances=1000/packed=false/latest_at_missing/primary/default
261
ns/iter (± 0
)204
ns/iter (± 3
)1.28
datastore/num_rows=1000/num_instances=1000/gc/default
2486969
ns/iter (± 5739
)1647603
ns/iter (± 6333
)1.51
mono_points_arrow/generate_message_bundles
29533912
ns/iter (± 666551
)21724542
ns/iter (± 372096
)1.36
mono_points_arrow_batched/generate_message_bundles
23167771
ns/iter (± 956185
)15524874
ns/iter (± 84799
)1.49
mono_points_arrow_batched/generate_messages
4686297
ns/iter (± 260667
)2942496
ns/iter (± 25790
)1.59
mono_points_arrow_batched/encode_total
29927125
ns/iter (± 1356787
)20060708
ns/iter (± 58413
)1.49
mono_points_arrow_batched/decode_log_msg
764952
ns/iter (± 11215
)484965
ns/iter (± 1734
)1.58
mono_points_arrow_batched/decode_message_bundles
7999537
ns/iter (± 274642
)6093899
ns/iter (± 7012
)1.31
mono_points_arrow_batched/decode_total
9027932
ns/iter (± 256972
)6608132
ns/iter (± 19336
)1.37
batch_points_arrow/encode_log_msg
318763
ns/iter (± 1921
)225722
ns/iter (± 478
)1.41
batch_points_arrow/encode_total
602360
ns/iter (± 2480
)448752
ns/iter (± 918
)1.34
arrow_mono_points/insert
2308415666
ns/iter (± 6673732
)1523410734
ns/iter (± 10697765
)1.52
arrow_mono_points/query
1282751
ns/iter (± 12410
)863227
ns/iter (± 1198
)1.49
arrow_batch_points/query
16871
ns/iter (± 63
)12254
ns/iter (± 4
)1.38
arrow_batch_vecs/query
389776
ns/iter (± 688
)296250
ns/iter (± 785
)1.32
This comment was automatically generated by workflow using github-action-benchmark.