@@ -0,0 +1,3 @@
+/target
+.*.swp
+/Cargo.lock
+[submodule "libschrift"]
+ path = libschrift
+ url = https://github.com/tomolt/libschrift
@@ -0,0 +1,9 @@
+[package]
+name = "schrift-rs"
+version = "0.1.0"
+edition = "2021"
+
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+[build-dependencies]
+cc = "1.0"
@@ -0,0 +1,7 @@
+fn main() {
+ cc::Build::new()
+ .flag("-std=c99")
+ .flag("-pedantic")
+ .file("libschrift/schrift.c")
+ .compile("schrift");
+}
@@ -0,0 +1 @@
+Subproject commit 8e533fd07acc2f8ae4cffe7f95d2c3392773e2b5
@@ -0,0 +1,14 @@
+pub fn add(left: usize, right: usize) -> usize {
+ left + right
+#[cfg(test)]
+mod tests {
+ use super::*;
+ #[test]
+ fn it_works() {
+ let result = add(2, 2);
+ assert_eq!(result, 4);
+ }