From cef445ac722a9ee0e545950f06f1299bb8838f43 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Mon, 31 Jan 2022 04:19:27 +0500 Subject: [PATCH] Rust: split into two packages --- pkgs/rust/Cargo.toml | 21 +++++---------------- pkgs/rust/kernaux-sys/Cargo.toml | 16 ++++++++++++++++ pkgs/rust/kernaux-sys/README.md | 7 +++++++ pkgs/rust/{ => kernaux-sys}/src/lib.rs | 0 pkgs/rust/kernaux/Cargo.toml | 16 ++++++++++++++++ pkgs/rust/{ => kernaux}/README.md | 2 +- pkgs/rust/kernaux/src/lib.rs | 1 + 7 files changed, 46 insertions(+), 17 deletions(-) create mode 100644 pkgs/rust/kernaux-sys/Cargo.toml create mode 100644 pkgs/rust/kernaux-sys/README.md rename pkgs/rust/{ => kernaux-sys}/src/lib.rs (100%) create mode 100644 pkgs/rust/kernaux/Cargo.toml rename pkgs/rust/{ => kernaux}/README.md (69%) create mode 100644 pkgs/rust/kernaux/src/lib.rs diff --git a/pkgs/rust/Cargo.toml b/pkgs/rust/Cargo.toml index c285f7e..d1bd533 100644 --- a/pkgs/rust/Cargo.toml +++ b/pkgs/rust/Cargo.toml @@ -1,16 +1,5 @@ -[package] -name = "kernaux" -version = "0.2.0" -authors = ["Alex Kotov "] -edition = "2021" -description = "Auxiliary library for kernel development" -readme = true -homepage = "https://github.com/tailix/libkernaux/tree/master/pkgs/rust" -repository = "https://github.com/tailix/libkernaux/tree/master/pkgs/rust" -license = "MIT" -keywords = ["ffi", "no_std", "no-std", "embedded", "bindings"] -categories = ["api-bindings", "embedded", "external-ffi-bindings", "no-std", "parsing"] -publish = true - -[dependencies] -libc = "0.2.113" +[workspace] +members = [ + "kernaux", + "kernaux-sys", +] diff --git a/pkgs/rust/kernaux-sys/Cargo.toml b/pkgs/rust/kernaux-sys/Cargo.toml new file mode 100644 index 0000000..21a6efe --- /dev/null +++ b/pkgs/rust/kernaux-sys/Cargo.toml @@ -0,0 +1,16 @@ +[package] +name = "kernaux-sys" +version = "0.0.0" +authors = ["Alex Kotov "] +edition = "2021" +description = "Unsafe no-std binding to libkernaux - auxiliary library for kernel development" +readme = true +homepage = "https://github.com/tailix/libkernaux/tree/master/pkgs/rust" +repository = "https://github.com/tailix/libkernaux/tree/master/pkgs/rust" +license = "MIT" +keywords = ["ffi", "no_std", "no-std", "embedded", "bindings"] +categories = ["embedded", "external-ffi-bindings", "no-std", "parsing"] +publish = true + +[dependencies] +libc = "0.2.113" diff --git a/pkgs/rust/kernaux-sys/README.md b/pkgs/rust/kernaux-sys/README.md new file mode 100644 index 0000000..7cf6f2f --- /dev/null +++ b/pkgs/rust/kernaux-sys/README.md @@ -0,0 +1,7 @@ +KernAux +======= + +[![Test](https://github.com/tailix/libkernaux/actions/workflows/test.yml/badge.svg)](https://github.com/tailix/libkernaux/actions/workflows/test.yml) + +Unsafe no-std binding to **libkernaux** - auxiliary library for kernel +development. diff --git a/pkgs/rust/src/lib.rs b/pkgs/rust/kernaux-sys/src/lib.rs similarity index 100% rename from pkgs/rust/src/lib.rs rename to pkgs/rust/kernaux-sys/src/lib.rs diff --git a/pkgs/rust/kernaux/Cargo.toml b/pkgs/rust/kernaux/Cargo.toml new file mode 100644 index 0000000..bfc2cf4 --- /dev/null +++ b/pkgs/rust/kernaux/Cargo.toml @@ -0,0 +1,16 @@ +[package] +name = "kernaux" +version = "0.2.0" +authors = ["Alex Kotov "] +edition = "2021" +description = "Safe binding to libkernaux - auxiliary library for kernel development" +readme = true +homepage = "https://github.com/tailix/libkernaux/tree/master/pkgs/rust" +repository = "https://github.com/tailix/libkernaux/tree/master/pkgs/rust" +license = "MIT" +keywords = ["ffi", "embedded", "bindings"] +categories = ["api-bindings", "embedded", "parsing"] +publish = true + +[dependencies] +kernaux-sys = "0.0.0" diff --git a/pkgs/rust/README.md b/pkgs/rust/kernaux/README.md similarity index 69% rename from pkgs/rust/README.md rename to pkgs/rust/kernaux/README.md index 9175e59..49947f5 100644 --- a/pkgs/rust/README.md +++ b/pkgs/rust/kernaux/README.md @@ -3,4 +3,4 @@ KernAux [![Test](https://github.com/tailix/libkernaux/actions/workflows/test.yml/badge.svg)](https://github.com/tailix/libkernaux/actions/workflows/test.yml) -Binding to **libkernaux** - auxiliary library for kernel development. +Safe binding to **libkernaux** - auxiliary library for kernel development. diff --git a/pkgs/rust/kernaux/src/lib.rs b/pkgs/rust/kernaux/src/lib.rs new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/pkgs/rust/kernaux/src/lib.rs @@ -0,0 +1 @@ +