summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.toml3
-rw-r--r--README.md2
-rw-r--r--libcodec2/Cargo.toml8
-rw-r--r--libcodec2/src/lib.rs8
4 files changed, 19 insertions, 2 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 56d630f..1c967e4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,5 +1,6 @@
[workspace]
members = [
+ "libcodec2",
"codec2-sys",
-] \ No newline at end of file
+]
diff --git a/README.md b/README.md
index 55c25ef..0a7eaac 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# codec2-sys
+# codec2.rs
Rust system bindings for the [codec2](https://github.com/drowe67/codec2) library.
diff --git a/libcodec2/Cargo.toml b/libcodec2/Cargo.toml
new file mode 100644
index 0000000..573dd1d
--- /dev/null
+++ b/libcodec2/Cargo.toml
@@ -0,0 +1,8 @@
+[package]
+name = "libcodec2"
+version = "0.1.0"
+edition = "2021"
+
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+
+[dependencies]
diff --git a/libcodec2/src/lib.rs b/libcodec2/src/lib.rs
new file mode 100644
index 0000000..1b4a90c
--- /dev/null
+++ b/libcodec2/src/lib.rs
@@ -0,0 +1,8 @@
+#[cfg(test)]
+mod tests {
+ #[test]
+ fn it_works() {
+ let result = 2 + 2;
+ assert_eq!(result, 4);
+ }
+}