Skip to content

Commit

Permalink
Add individual README.md:s for each crate
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Jul 8, 2022
1 parent 770642c commit 0b478cf
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 21 deletions.
31 changes: 11 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# rerun
# Rerun
[![MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/rerun-io/rerun/blob/master/LICENSE-MIT)
[![Apache](https://img.shields.io/badge/license-Apache-blue.svg)](https://github.com/rerun-io/rerun/blob/master/LICENSE-APACHE)

This repository contains the rerun log SDK and viewer.
This repository contains the Rerun log SDK, server, and viewer.

## Setup
Install Rust: https://rustup.rs/
Expand All @@ -16,26 +16,17 @@ Install Rust: https://rustup.rs/
./check.sh
```

### Other
You can view higher log levels with `export RUST_LOG=debug` or `export RUST_LOG=trace`.


## Crates

#### `re_comms`
WebSocket communication tools (encoding, decoding, client, server) between server and viewer.
## Structure
The main crates are found in the `crates/` folder, with examples in the `examples/` folder.

#### `re_data_store`
In-memory storage of log data, indexed for fast fast queries.
Read about individual examples for details on how to run them.

#### `re_log_types`
The different types that make up the rerun log format.
To learn about the viewer, run:

#### `re_viewer`
`cargo run --release -p re_viewer -- --help`
```
cargo run --release -p re_viewer -- --help
```

Can run both on the web and natively. Talks to the server over WebSockets.
The viewer can also be used as a library.

#### `re_web_server`
A binary for serving the web viewer html and wasm.
### Other
You can view higher log levels with `export RUST_LOG=debug` or `export RUST_LOG=trace`.
2 changes: 1 addition & 1 deletion crates/re_comms/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Library for communication between server and viewer
WebSocket communication library (encoding, decoding, client, server) between server and viewer.
8 changes: 8 additions & 0 deletions crates/re_comms/src/server.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//! The server is a pub-sub architecture.
//!
//! Each incoming log message is stored, and sent to any connected client.
//! Each connecting client is first sent the history of stored log messages.
//!
//! In the future thing will be changed to a protocol where the clients can query
//! for specific data based on e.g. time.
use std::sync::Arc;
use std::{net::SocketAddr, time::Duration};

Expand Down
1 change: 1 addition & 0 deletions crates/re_data_store/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
In-memory storage of log data, indexed for fast fast queries. Used by `re_viewer`.
1 change: 1 addition & 0 deletions crates/re_log_types/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The different types that make up the rerun log format.
13 changes: 13 additions & 0 deletions crates/re_string_interner/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Yet another string interning library.

The main thing that makes this library different is that
`InternedString` stores the hash of the string, which makes
using it in lookups is really fast, especially when using `nohash_hasher::IntMap`.

The hash is assumed to be perfect, which means this library accepts the risk of hash collisions!

The interned strings are never freed, so don't intern too many things.


## TODO
This is a utility library and should probably be moved to own repository and be made open soruce..
9 changes: 9 additions & 0 deletions crates/re_viewer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
The Rerun viewer.

This is the main crate with all the GUI.

This is both a library and a binary. Can be compiled both natively for desktop, and as WASM for web.

Talks to the server over WebSockets (using `re_comms`).

`cargo run --release -p re_viewer -- --help`
1 change: 1 addition & 0 deletions crates/re_web_server/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Serves the rerun web viewer (`re_viewer` as WASM and HTML) over HTTP.

0 comments on commit 0b478cf

Please sign in to comment.