summaryrefslogtreecommitdiff
path: root/bchlib-sys/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'bchlib-sys/src/lib.rs')
-rw-r--r--bchlib-sys/src/lib.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/bchlib-sys/src/lib.rs b/bchlib-sys/src/lib.rs
new file mode 100644
index 0000000..47eaa43
--- /dev/null
+++ b/bchlib-sys/src/lib.rs
@@ -0,0 +1,17 @@
+#![allow(non_upper_case_globals)]
+#![allow(non_camel_case_types)]
+#![allow(non_snake_case)]
+
+include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+
+ #[test]
+ fn it_works() {
+ unsafe {
+ let _c = init_bch(5, 2, 37);
+ }
+ }
+}