9 stable releases

2.1.4 May 10, 2024
2.1.1 Jun 14, 2023
2.0.3 Oct 13, 2022
2.0.2 Aug 23, 2021
1.10.2 Mar 17, 2020

#149 in Biology

Download history 684/week @ 2024-07-21 921/week @ 2024-07-28 947/week @ 2024-08-04 1139/week @ 2024-08-11 1088/week @ 2024-08-18 931/week @ 2024-08-25 705/week @ 2024-09-01 826/week @ 2024-09-08 755/week @ 2024-09-15 978/week @ 2024-09-22 1070/week @ 2024-09-29 550/week @ 2024-10-06 964/week @ 2024-10-13 921/week @ 2024-10-20 675/week @ 2024-10-27 841/week @ 2024-11-03

3,451 downloads per month
Used in 45 crates (via rust-htslib)

MIT license

5MB
110K SLoC

C 72K SLoC // 0.2% comments Rust 32K SLoC // 0.0% comments JavaScript 3K SLoC // 0.3% comments Perl 2K SLoC // 0.1% comments M4 490 SLoC // 0.4% comments Shell 386 SLoC // 0.5% comments Automake 168 SLoC // 0.4% comments C++ 40 SLoC // 0.4% comments

Contains (obscure autoconf code, 24KB) htslib/configure.ac, (obscure autoconf code, 8KB) htslib/htscodecs/configure.ac

HTSlib bindings for Rust

This sub-crate provides the raw HTSlib bindings, which are used for the high level Rust API for reading and writing BAM files provided by rust-htslib.

See rust-htslib for details.


lib.rs:

This module exposes the raw HTSlib bindings for reading and writing genomics file formats like SAM, BAM, CRAM, VCF, BCF and tabix. Instead of using this crate directly, it is recommended to use rust-htslib instead, which has a more idiomatic and high-level API and builds on top of this crate.

Dependencies

~0.8–11MB
~126K SLoC