Skip to content

Commit

Permalink
chore: add comments for deps
Browse files Browse the repository at this point in the history
  • Loading branch information
7sDream committed Nov 15, 2023
1 parent 0e873c9 commit 266a9ab
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 21 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 25 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,34 @@ keywords = ["font", "character", "cli", "utilities"]
categories = ["command-line-utilities", "text-processing", "visualization"]

[dependencies]
# Global values
once_cell = "1"
httparse = "1"
crossterm = "0.27"

# Define error type
thiserror = "1"

# 2D array
grid = "0.11"

# CLI argument parser
clap = { version = "4", features = ["derive", "unicode", "wrap_help"] }

# Font loader
fontdb = "0.16"

# Font parser
ttf-parser = "0.20"

# Font rasterizer
# see https://gist.github.com/7sDream/0bb194be42b8cb1f1926ca12151c8d76 for alternatives.
ab_glyph = "0.2"
thiserror = "1"
grid = "0.11"

[dependencies.clap]
version = "4"
features = ["derive", "unicode", "wrap_help"]
# Termianal UI
ratatui = "0.24"

[dependencies.tui]
package = "ratatui"
version = "0.24"
default-features = false
features = ["crossterm"]
# Terminal events
crossterm = "0.27"

# Home-made singel thread HTTP server for preview fonts in browser.
# Alternative: output a html file into temp dir and open it
httparse = "1"
2 changes: 1 addition & 1 deletion src/preview/terminal/ui/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use std::{collections::HashMap, iter::Iterator};

use grid::Grid;
use once_cell::sync::Lazy;
use tui::{
use ratatui::{
style::Color,
widgets::canvas::{Painter, Shape},
};
Expand Down
2 changes: 1 addition & 1 deletion src/preview/terminal/ui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ use crossterm::{
execute,
terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen},
};
use tui::{
use ratatui::{
backend::CrosstermBackend,
layout::{Alignment, Constraint, Direction, Layout, Rect},
style::{Color, Modifier, Style},
Expand Down
2 changes: 1 addition & 1 deletion src/preview/terminal/ui/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use std::{
rc::Rc,
};

use tui::widgets::ListState;
use ratatui::widgets::ListState;

use super::cache::{CacheKey, GlyphCache, GlyphCanvasShape, RenderType, CHAR_RENDERS, MONO_RENDER};
use crate::{
Expand Down

0 comments on commit 266a9ab

Please sign in to comment.