novel-cli 0.17.0

A set of tools for downloading novels from the web, manipulating text, and generating EPUB
Documentation
1
2
3
4
5
6
7
8
use std::num::NonZeroUsize;
use std::thread;

pub fn maximum_concurrency() -> usize {
    thread::available_parallelism()
        .unwrap_or(NonZeroUsize::new(4).unwrap())
        .into()
}