rloc 0.1.0

A fast, modern Rust implementation of cloc (Count Lines of Code)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::path::PathBuf;
use thiserror::Error;

#[derive(Debug, Error)]
pub enum Error {
    #[error("IO error: {0}")]
    Io(#[from] std::io::Error),

    #[error("Invalid path: {0}")]
    InvalidPath(PathBuf),

    #[error("No source files found")]
    NoSourceFiles,

    #[error("Invalid configuration: {0}")]
    InvalidConfig(String),
}