From e8261034df7ce9d398f8daca24bf94f153bc7d44 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Tue, 18 Jan 2022 00:51:25 +0500 Subject: [PATCH] Initialize Cargo package --- pkgs/rust/.gitignore | 2 ++ pkgs/rust/Cargo.toml | 15 +++++++++++++++ pkgs/rust/src/lib.rs | 8 ++++++++ 3 files changed, 25 insertions(+) create mode 100644 pkgs/rust/.gitignore create mode 100644 pkgs/rust/Cargo.toml create mode 100644 pkgs/rust/src/lib.rs diff --git a/pkgs/rust/.gitignore b/pkgs/rust/.gitignore new file mode 100644 index 0000000..042776a --- /dev/null +++ b/pkgs/rust/.gitignore @@ -0,0 +1,2 @@ +/Cargo.lock +/target/ diff --git a/pkgs/rust/Cargo.toml b/pkgs/rust/Cargo.toml new file mode 100644 index 0000000..e952996 --- /dev/null +++ b/pkgs/rust/Cargo.toml @@ -0,0 +1,15 @@ +[package] +name = "kernaux" +version = "0.0.0" +authors = ["Alex Kotov "] +edition = "2021" +description = "Auxiliary library for kernel development" +readme = false +homepage = "https://github.com/tailix/libkernaux" +repository = "https://github.com/tailix/libkernaux.git" +license = "MIT" +keywords = ["ffi", "no_std", "no-std", "embedded", "bindings"] +categories = ["api-bindings", "embedded", "external-ffi-bindings", "no-std", "parsing"] +publish = true + +[dependencies] diff --git a/pkgs/rust/src/lib.rs b/pkgs/rust/src/lib.rs new file mode 100644 index 0000000..1b4a90c --- /dev/null +++ b/pkgs/rust/src/lib.rs @@ -0,0 +1,8 @@ +#[cfg(test)] +mod tests { + #[test] + fn it_works() { + let result = 2 + 2; + assert_eq!(result, 4); + } +}