Skip to content

Commit

Permalink
adds source files and test files
Browse files Browse the repository at this point in the history
  • Loading branch information
holtjma committed Oct 30, 2023
1 parent 91a90f5 commit 1d66d5b
Show file tree
Hide file tree
Showing 33 changed files with 9,993 additions and 0 deletions.
1,548 changes: 1,548 additions & 0 deletions Cargo.lock

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[package]
name = "hiphase"
version = "1.0.0"
authors = ["J. Matthew Holt <[email protected]>"]
description = "A tool for phasing HiFi VCF files."
edition = "2021"
license-file="LICENSE.md"

[build-dependencies]
vergen = { version = "8.2.4", features = ["git", "gitcl"] }

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
# Note: cmake is required, module load cmake/3.20.2 for initial compiles

[dependencies]
bio = "1.2.0"
bit-vec = "0.6.3"
chrono = "0.4.24"
clap = { version = "4.0.13", features = ["derive"] }
cpu-time = "1.0.0"
csv = "1.1.6"
env_logger = "0.9.1"
exitcode = "1.1.2"
flate2 = "1.0.26"
lazy_static = "1.4.0"
log = "0.4.17"
priority-queue = "1.2.3"
# consider the older version if we run into build issues later
# rust-htslib = { version = "0.37.0", default-features = false }
rust-htslib = { version = "0.39.5", default-features = false, features = ["static"] }
rustc-hash = "1.1.0"
serde = "1.0.147"
simple-error = "0.2.3"
threadpool = "1.8.1"

[profile.release]
lto = "fat"
codegen-units = 1
19 changes: 19 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
use std::error::Error;
use vergen::EmitBuilder;

fn main() -> Result<(), Box<dyn Error>> {
EmitBuilder::builder()
.fail_on_error()
.all_git()
.git_describe(true, false, Some("ThisPatternShouldNotMatchAnythingEver"))
.emit()?;

// emit build handles the git configuration and build.rs, but we also need to track the toml and src folder to catch dirty
println!("cargo:rerun-if-changed=Cargo.toml");
println!("cargo:rerun-if-changed=src");

// uncomment if you ever want to easily see what this is emiting
// panic!("");

Ok(())
}
Loading

0 comments on commit 1d66d5b

Please sign in to comment.