Skip to content

Commit

Permalink
Make rendering deterministic, ignore 2 bad crates (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
saethlin authored Jun 8, 2024
1 parent 5ec9ffd commit 165022e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

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

7 changes: 7 additions & 0 deletions ansi-to-html/Cargo.lock

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

1 change: 1 addition & 0 deletions ansi-to-html/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ edition = "2021"

[dependencies]
env_logger = { version = "0.10.0", default-features = false }
fnv = "1.0.7"
log = "0.4.17"
vte = "0.11.0"
2 changes: 1 addition & 1 deletion ansi-to-html/src/renderer.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use crate::ansi::Color;
use std::cell::RefCell;
use std::collections::HashMap;
use std::collections::VecDeque;
use std::io::Write;
use fnv::FnvHashMap as HashMap;

// This is the number of rows that inapty uses, should be good enough?
const MAX_ROWS: usize = 64;
Expand Down
7 changes: 6 additions & 1 deletion src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ use uuid::Uuid;
static TEST_END_DELIMITER: Lazy<Uuid> = Lazy::new(Uuid::new_v4);

// These crates generate gigabytes of output then don't build.
const IGNORED_CRATES: &[&str] = &["clacks_mtproto", "stdweb"];
const IGNORED_CRATES: &[&str] = &[
"clacks_mtproto",
"stdweb",
"wayland-raw-protocol-bindings",
"pleingres",
];

#[derive(Parser, Clone)]
pub struct Args {
Expand Down

0 comments on commit 165022e

Please sign in to comment.