summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClementTsang <clementjhtsang@gmail.com>2019-09-16 23:53:20 -0400
committerClementTsang <clementjhtsang@gmail.com>2019-09-16 23:53:20 -0400
commitb9ff7efa2149cb8d77a2038b41b9f92fd0284b05 (patch)
tree3a718f57e14497162c98dde92fdafeb9ccb6aa96
parent231049c118011e962f0234481a8e23dff06ece75 (diff)
Changed toml one more time.0.1.0-alpha-1
-rw-r--r--Cargo.toml3
-rw-r--r--src/canvas.rs5
-rw-r--r--src/main.rs2
3 files changed, 5 insertions, 5 deletions
diff --git a/Cargo.toml b/Cargo.toml
index b20c39a4..851ceb3d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -26,9 +26,8 @@ log = "0.4"
sysinfo = "0.9.4"
tokio = "0.2.0-alpha.4"
-[dependencies.tui]
+[dependencies.tui-temp-fork]
version = "0.6.2"
-git = "https://github.com/ClementTsang/tui-rs"
default-features = false
features = ['crossterm']
diff --git a/src/canvas.rs b/src/canvas.rs
index 6cdf276e..1f0e2b5d 100644
--- a/src/canvas.rs
+++ b/src/canvas.rs
@@ -1,4 +1,5 @@
-use tui::{
+use tui_temp_fork::{
+ backend,
layout::{Constraint, Direction, Layout},
style::{Color, Modifier, Style},
widgets::{Axis, Block, Borders, Chart, Dataset, Marker, Row, Table, Widget},
@@ -28,7 +29,7 @@ pub struct CanvasData {
pub cpu_data : Vec<(String, Vec<(f64, f64)>)>,
}
-pub fn draw_data<B : tui::backend::Backend>(terminal : &mut Terminal<B>, app_state : &mut app::App, canvas_data : &CanvasData) -> error::Result<()> {
+pub fn draw_data<B : backend::Backend>(terminal : &mut Terminal<B>, app_state : &mut app::App, canvas_data : &CanvasData) -> error::Result<()> {
let border_style : Style = Style::default().fg(BORDER_STYLE_COLOUR);
let highlighted_border_style : Style = Style::default().fg(HIGHLIGHTED_BORDER_STYLE_COLOUR);
diff --git a/src/main.rs b/src/main.rs
index 9e533c93..0747fbd2 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -9,7 +9,7 @@ extern crate failure;
use crossterm::{input, AlternateScreen, InputEvent, KeyEvent, MouseButton, MouseEvent};
use std::{sync::mpsc, thread, time::Duration};
-use tui::{backend::CrosstermBackend, Terminal};
+use tui_temp_fork::{backend::CrosstermBackend, Terminal};
pub mod app;
mod utils {