10 stable releases

2.2.0 Dec 2, 2024
2.1.4 May 10, 2024
2.1.1 Jun 14, 2023
2.0.3 Oct 13, 2022
1.10.2 Mar 17, 2020

#150 in Biology

Download history 944/week @ 2024-08-22 809/week @ 2024-08-29 769/week @ 2024-09-05 825/week @ 2024-09-12 847/week @ 2024-09-19 1141/week @ 2024-09-26 628/week @ 2024-10-03 851/week @ 2024-10-10 911/week @ 2024-10-17 758/week @ 2024-10-24 786/week @ 2024-10-31 943/week @ 2024-11-07 1132/week @ 2024-11-14 1248/week @ 2024-11-21 1351/week @ 2024-11-28 1442/week @ 2024-12-05

5,319 downloads per month
Used in 52 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
~131K SLoC