Adopt pinned public core snapshot and prepare Sized 2.0.0
Sized Linux checks / Linux AMD64 / Rust 1.88.0 (pull_request) Successful in 4m54s
Sized Linux checks / Linux AMD64 / Rust 1.88.0 (push) Successful in 4m57s

This commit is contained in:
2026-10-10 13:11:02 -04:00
parent c2cc458f27
commit e0707447ad
30 changed files with 1533 additions and 101 deletions
+3 -18
View File
@@ -8,11 +8,11 @@ use comfy_table::{Attribute, Cell, CellAlignment, Color, ContentArrangement, Tab
use csv::WriterBuilder;
use std::cmp::Ordering;
use std::io::Write;
use std::path::{Path, PathBuf};
use std::path::PathBuf;
use std::str::FromStr;
pub mod scan;
pub use scan::{
pub use scanner_core::{build_tree, scan};
pub use scanner_core::{
scan_tree, EntryType, FileIdentity, Node, ScanControl, ScanError, ScanIssue, ScanOptions,
ScanReport,
};
@@ -238,21 +238,6 @@ pub fn run(args: Args, mut writer: &mut dyn Write) -> bool {
root_node.complete
}
pub fn build_tree(path: &Path, ignore: bool, compare: bool) -> Node {
// Compatibility helper; callers needing diagnostics should use scan_tree.
scan_tree(
path,
&ScanOptions {
respect_ignore: ignore,
compare_ignore: compare,
..ScanOptions::default()
},
&ScanControl::default(),
)
.map(|report| report.root)
.unwrap_or_else(|_| Node::unavailable(path))
}
fn process_node_recursive(
writer: &mut dyn Write,
node: &Node,