summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2022-07-18 08:19:43 +0300
committerYuval Adam <_@yuv.al>2022-07-18 08:19:43 +0300
commit57f0ba6e4d0cd7a98f7f03bd1840b3fe3d23c7b6 (patch)
tree5f0e9994ee07ad89aca6394f74cdde05e7e31d9c
parentc92d7d9c3911141b0c7d76323e6d0fc5c28e4338 (diff)
Add libcodec2 package
-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);
+ }
+}