Skip to content

Commit

Permalink
Make dashboard depend on line renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Jul 8, 2020
1 parent 9ebbc16 commit ea861a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ doctest = true
[[example]]
name = "dashboard"
path = "examples/dashboard.rs"
required-features = ["tui-renderer", "tui-renderer-crossterm"]
required-features = ["tui-renderer", "tui-renderer-crossterm", "line-renderer", "line-renderer-crossterm"]

[features]
default = ["log-renderer", "localtime"]
Expand Down
6 changes: 6 additions & 0 deletions src/line.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
use crate::tree;
use std::{io, ops::RangeInclusive, time::Duration};

#[cfg(all(
feature = "line-renderer",
not(any(feature = "line-renderer-crossterm", feature = "line-renderer-termion"))
))]
compile_error!("Please choose either one of these features: 'line-renderer-crossterm' or 'line-renderer-termion'");

#[derive(Clone)]
pub struct Options {
/// If set, specify all levels that should be shown. Otherwise all available levels are shown.
Expand Down

0 comments on commit ea861a2

Please sign in to comment.