From 24503ab25800405220c96b13fe153821d1ff7dee Mon Sep 17 00:00:00 2001 From: kjuulh Date: Wed, 7 Jan 2026 15:33:23 +0100 Subject: [PATCH] feat: ready for crates.io publishing Signed-off-by: kjuulh --- Cargo.lock | 2 +- Cargo.toml | 3 +++ LICENSE | 7 +++++++ crates/noprocess/Cargo.toml | 7 ++++++- mise.toml | 5 +++++ 5 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 LICENSE diff --git a/Cargo.lock b/Cargo.lock index 0d3cd6b..22f6a01 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -120,7 +120,7 @@ dependencies = [ [[package]] name = "noprocess" -version = "0.1.0" +version = "0.0.1" dependencies = [ "anyhow", "rand", diff --git a/Cargo.toml b/Cargo.toml index 9ada945..359f021 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,9 @@ members = ["crates/*", "examples/*"] resolver = "2" +[workspace.package] +version = "0.0.1" + [workspace.dependencies] noprocess = { path = "crates/noprocess" } diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..1eca717 --- /dev/null +++ b/LICENSE @@ -0,0 +1,7 @@ +Copyright 2026 Kasper Juul Hermansen + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/crates/noprocess/Cargo.toml b/crates/noprocess/Cargo.toml index 9811850..296356d 100644 --- a/crates/noprocess/Cargo.toml +++ b/crates/noprocess/Cargo.toml @@ -1,7 +1,12 @@ [package] name = "noprocess" -version = "0.1.0" +version.workspace = true edition = "2024" +description = "A lightweight Rust library for managing long-running processes with graceful shutdown, restart capabilities, and error handling" +repository = "https://git.kjuulh.io/kjuulh/noprocess" +readme = "../../README.md" +license-file = "../../LICENSE" +publish = true [dependencies] rand.workspace = true diff --git a/mise.toml b/mise.toml index 6228dbc..112c51c 100644 --- a/mise.toml +++ b/mise.toml @@ -1,3 +1,8 @@ [tasks.record] description = "Record demo GIF from VHS tape" run = "vhs assets/demo.tape" + +[tasks.publish] +alias = "p" +description = "Publish noprocess to crates.io" +run = "cargo publish -p noprocess"