#sorting #merge #fs-file #file-io

ex_merge_sort

Rust external merge sort library

8 unstable releases (3 breaking)

0.5.0 Aug 14, 2021
0.4.0 Aug 14, 2021
0.3.2 Aug 14, 2021
0.2.1 Aug 14, 2021
0.1.1 Aug 14, 2021

#38 in #fs-file

36 downloads per month

MIT license

15KB
372 lines

ex_merge_sort

Rust external merge sort library.

GitHub Build Status crates.io docs.rs

Usage

[dependencies]
ex_merge_sort = "0.4"
use std::fs::File;
use std::io;

fn main() {
    let f = File::open("README.md").unwrap();
    let capacity = 1024;
    ex_merge_sort::sort(f, io::stdout(), capacity).unwrap();
}

lib.rs:

Rust external merge sort library.

GitHub Build Status crates.io docs.rs

Usage

[dependencies]
ex_merge_sort = "0.4"
use std::fs::File;
use std::io;

fn main() {
    let f = File::open("README.md").unwrap();
    let capacity = 1024;
    ex_merge_sort::sort(f, io::stdout(), capacity).unwrap();
}

Dependencies

~1.6–9.5MB
~113K SLoC