From 57f0ba6e4d0cd7a98f7f03bd1840b3fe3d23c7b6 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Mon, 18 Jul 2022 08:19:43 +0300 Subject: Add libcodec2 package --- Cargo.toml | 3 ++- README.md | 2 +- libcodec2/Cargo.toml | 8 ++++++++ libcodec2/src/lib.rs | 8 ++++++++ 4 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 libcodec2/Cargo.toml create mode 100644 libcodec2/src/lib.rs 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); + } +} -- cgit v1.3.1