From a0d5bcea5b5203085c98f5b2fb09ca2c2679585b Mon Sep 17 00:00:00 2001 From: RAprogramm Date: Wed, 17 Dec 2025 06:32:54 +0700 Subject: [PATCH] #7 feat: add Rultor configuration and fix LICENSE --- .rultor.yml | 44 ++++++++++++++++++++++++++++++++++++++++++++ LICENSE | 22 ++++++++++++++++++++-- 2 files changed, 64 insertions(+), 2 deletions(-) create mode 100644 .rultor.yml mode change 120000 => 100644 LICENSE diff --git a/.rultor.yml b/.rultor.yml new file mode 100644 index 0000000..28e7750 --- /dev/null +++ b/.rultor.yml @@ -0,0 +1,44 @@ +architect: + - RAprogramm + +docker: + image: rust:1.91 + +install: | + rustup toolchain install nightly + rustup component add rustfmt --toolchain nightly + rustup component add clippy --toolchain stable + rustup component add llvm-tools-preview --toolchain stable + cargo install cargo-nextest --locked + cargo install cargo-llvm-cov --locked + +merge: + script: | + echo "=== Format check (nightly) ===" + cargo +nightly fmt --all -- --check + + echo "=== Clippy (stable) ===" + cargo clippy --workspace --all-targets --all-features -- -D warnings + + echo "=== Tests (nextest) ===" + cargo nextest run --workspace --all-features --no-fail-fast + + echo "=== Doctests ===" + cargo test --doc --workspace --all-features + + echo "=== Coverage check ===" + cargo llvm-cov --workspace --all-features --fail-under-lines 95 + + echo "=== Package check ===" + cargo package --locked + +release: + pre: false + commanders: + - RAprogramm + script: | + sed -i "s/^version = .*/version = \"${tag}\"/" Cargo.toml + cargo +nightly fmt --all + cargo check --all-features + cargo package --locked --allow-dirty + git commit -am "Release ${tag}" diff --git a/LICENSE b/LICENSE deleted file mode 120000 index 76b151c..0000000 --- a/LICENSE +++ /dev/null @@ -1,3 +0,0 @@ -LICENSES/MIT.txt - -https://github.com/RAprogramm/yew-nav-link/blob/main/LICENSES/MIT.txt diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f56ff55 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024-2025 RAprogramm + +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.