Skip to content

Commit 453a948

Browse files
committed
feat(dimer-builder): new crate for Tia!
1 parent 2d43c56 commit 453a948

File tree

4 files changed

+32
-1
lines changed

4 files changed

+32
-1
lines changed

Cargo.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ edition = "2021"
55

66
[workspace]
77
members = [
8+
"crates/dimer-builder",
89
"crates/muropeptide",
910
"crates/nom-miette",
1011
"crates/polychem",
11-
"crates/smithereens", "crates/wasm-shim",
12+
"crates/smithereens",
13+
"crates/wasm-shim",
1214
]
1315
exclude = ["worktrees/"]
1416

crates/dimer-builder/Cargo.toml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[package]
2+
name = "dimer-builder"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
[dependencies]
7+
muropeptide = { path = "../muropeptide" }
8+
polars = "0.43.1"
9+
polychem = { path = "../polychem" }
10+
11+
[lints]
12+
workspace = true

crates/dimer-builder/src/lib.rs

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
pub fn add(left: u64, right: u64) -> u64 {
2+
left + right
3+
}
4+
5+
#[cfg(test)]
6+
mod tests {
7+
use super::*;
8+
9+
#[test]
10+
fn it_works() {
11+
let result = add(2, 2);
12+
assert_eq!(result, 4);
13+
}
14+
}

crates/dimer-builder/src/main.rs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn main() {
2+
println!("Hello, world!");
3+
}

0 commit comments

Comments
 (0)