Skip to content
This repository has been archived by the owner on Dec 15, 2018. It is now read-only.

Commit

Permalink
Avoid exposing u64 to wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
luizirber committed Aug 17, 2018
1 parent 6b1cf9c commit ce0f632
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ cfg_if! {
#[wasm_bindgen]
#[derive(Debug, Clone, PartialEq)]
pub struct KmerMinHash {
pub num: u32,
pub ksize: u32,
pub is_protein: bool,
pub seed: u64,
pub max_hash: u64,
num: u32,
ksize: u32,
is_protein: bool,
seed: u64,
max_hash: u64,
mins: Vec<u64>,
abunds: Option<Vec<u64>>,
}
Expand Down
2 changes: 2 additions & 0 deletions src/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@ impl KmerMinHash {
self.add_sequence(buf.as_bytes(), true);
}

/*
#[wasm_bindgen]
pub fn add_hash_js(&mut self, h: u64) {
self.add_hash(h);
}
*/

#[wasm_bindgen]
pub fn to_json(&mut self) -> String {
Expand Down

0 comments on commit ce0f632

Please sign in to comment.