Remove lib.rs so we're now a binary-only crate

pull/70/head
Wilfred Hughes 2021-11-21 11:48:48 +07:00
parent 19feab9045
commit 3aae2eb398
2 changed files with 26 additions and 31 deletions

@ -1,28 +0,0 @@
//! Difftastic is a syntactic diff tool.
//!
//! For usage instructions and advice on contributing, see [the
//! manual](http://difftastic.wilfred.me.uk/).
//!
//! This library is only intended for use by the difftastic
//! binary. APIs may change without notice.
//!
//! Difftastic is structured as a library to enable use with tools
//! like Criterion, and for contributors to explore the APIs from
//! docs.rs.
mod context;
pub mod dijkstra;
pub mod files;
mod graph;
pub mod hunks;
pub mod inline;
pub mod line_parser;
pub mod lines;
mod positions;
pub mod side_by_side;
pub mod style;
pub mod syntax;
pub mod tree_sitter_parser;
#[macro_use]
extern crate log;

@ -1,4 +1,27 @@
use difftastic::hunks::{matched_pos_to_hunks, merge_adjacent};
//! Difftastic is a syntactic diff tool.
//!
//! For usage instructions and advice on contributing, see [the
//! manual](http://difftastic.wilfred.me.uk/).
//!
mod context;
mod dijkstra;
mod files;
mod graph;
mod hunks;
mod inline;
mod line_parser;
mod lines;
mod positions;
mod side_by_side;
mod style;
mod syntax;
mod tree_sitter_parser;
#[macro_use]
extern crate log;
use crate::hunks::{matched_pos_to_hunks, merge_adjacent};
use log::info;
use mimalloc::MiMalloc;
@ -11,8 +34,8 @@ use std::{env, ffi::OsStr, path::Path};
use typed_arena::Arena;
use walkdir::WalkDir;
use difftastic::*;
use difftastic::{
// use crate::*;
use crate::{
dijkstra::mark_syntax,
files::{is_probably_binary, read_or_die},
lines::MaxLine,