Skip to content

Commit

Permalink
Add docs, prepare release
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Lattuada <[email protected]>
  • Loading branch information
utaal committed May 28, 2019
1 parent ba416d2 commit 90d25e7
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tdiag/release.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
upload-doc = false
tag-prefix = "v"
pre-release-commit-message = "[tdiag] Release version {{version}}"
pro-release-commit-message = "[tdiag] Development version {{next_version}}"
tag-message = "version {{version}}"
dev-version-ext = "pre"
11 changes: 11 additions & 0 deletions tdiag/src/commands/graph.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! "graph" subcommand: browser-based tool to display the dataflow graph.
use std::sync::{Arc, Mutex};

use crate::DiagError;
Expand All @@ -14,6 +16,15 @@ use tdiag_connect::receive::ReplayWithShutdown;

static GRAPH_HTML: &str = include_str!("graph/dataflow-graph.html");

/// Creates an html file that renders a timely dataflow graph.
///
/// 1. Listens to incoming connection from a timely-dataflow program with
/// logging enabled;
/// 2. runs a differential-dataflow program to reconstruct the source
/// computation's dataflow graph;
/// 3. writes an html file that renders the dataflow graph.
///
/// This module includes `graph/dataflow-graph.html` as a static resource.
pub fn listen_and_render(
timely_configuration: timely::Configuration,
sockets: Vec<Option<std::net::TcpStream>>,
Expand Down
6 changes: 6 additions & 0 deletions tdiag/src/commands/mod.rs
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
//! Subcommand modules.
//!
//! Each of the program's subcommand logic is in a separate module here.
//!
//! Subfolders in the source tree contain resource files.
pub mod graph;
5 changes: 5 additions & 0 deletions tdiag/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
//! Tools to inspect a timely-dataflow computation.
#![deny(missing_docs)]

pub mod commands;

/// An error generated by one of the commands of this tool.
pub struct DiagError(pub String);

impl From<std::io::Error> for DiagError {
Expand Down
5 changes: 5 additions & 0 deletions tdiag/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
//! Command-line tools (with browser-based visualization)
//! to inspect a timely-dataflow computation.
//!
//! See the README and --help for usage information.
use tdiag::*;

fn run() -> Result<(), DiagError> {
Expand Down

0 comments on commit 90d25e7

Please sign in to comment.