build: establish Rust 1.88 MSRV

This commit is contained in:
Dandaedre 2026-09-29 12:13:06 +02:00
parent c88c5b8de2
commit 5bffeea1fb
Signed by: Dandaedre
GPG Key ID: 440C6592E8A26D99
6 changed files with 1262 additions and 5 deletions

4
.gitignore vendored
View File

@ -4,9 +4,7 @@
debug/
target/
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock
# Cargo.lock is tracked because this package ships executable binaries.
# These are backup files generated by rustfmt
**/*.rs.bk

1226
Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -2,6 +2,9 @@
name = "john_slop"
version = "0.1.0"
edition = "2024"
rust-version = "1.88"
license = "MIT"
repository = "https://git.dandaedre.com/idle-org/john_slop"
[dependencies]
miette = { version = "7.6.0", features = ["fancy"] }

25
Jenkinsfile vendored
View File

@ -7,6 +7,7 @@ pipeline {
environment {
CARGO_TERM_COLOR = 'always'
RUST_BACKTRACE = '1'
MSRV = '1.88.0'
}
stages {
@ -40,6 +41,9 @@ pipeline {
--component rustfmt \
--component clippy
rustup toolchain install "${MSRV}" \
--profile minimal
rustup default stable
echo
@ -52,6 +56,21 @@ pipeline {
}
}
stage('MSRV') {
steps {
sh '''
set -eu
echo "Checking all targets with Rust ${MSRV}..."
cargo "+${MSRV}" check \
--locked \
--all-targets \
--all-features
'''
}
}
stage('Format') {
steps {
sh '''
@ -72,6 +91,7 @@ pipeline {
echo "Checking all targets..."
cargo check \
--locked \
--all-targets \
--all-features
'''
@ -86,6 +106,7 @@ pipeline {
echo "Running tests..."
cargo test \
--locked \
--all-targets \
--all-features
'''
@ -100,6 +121,7 @@ pipeline {
echo "Running Clippy..."
cargo clippy \
--locked \
--all-targets \
--all-features
'''
@ -114,6 +136,7 @@ pipeline {
echo "Building john_slop release binary..."
cargo build \
--locked \
--release \
--all-features
@ -165,4 +188,4 @@ pipeline {
echo '⚠️ JohnSlop CI is unstable.'
}
}
}
}

View File

@ -43,6 +43,13 @@ Detector spans use zero-based UTF-8 byte offsets. Presentation layers will
convert those canonical offsets to terminal or LSP coordinates at their
boundaries.
The minimum supported Rust version (MSRV) is 1.88. CI checks both the MSRV and
the current stable toolchain against the committed dependency lockfile. Linux is
the currently exercised platform; support for other platforms will be declared
only after CI coverage is added.
John Slop is distributed under the [MIT license](LICENSE).
## Background reading
- [Wikipedia: Signs of AI writing](https://en.wikipedia.org/wiki/Wikipedia%3ASigns_of_AI_writing)

View File

@ -34,7 +34,7 @@ audit in CI.
- [x] Define supported inputs and limits: extensions/MIME policy, maximum file
bytes, archive bytes, expanded bytes, entry count, nesting, hidden files,
symlinks, and ignore rules.
- [ ] Establish an MSRV in `Cargo.toml` and CI, add license/repository metadata,
- [x] Establish an MSRV in `Cargo.toml` and CI, add license/repository metadata,
and document supported platforms.
- [ ] Move `tempfile` and other test-only crates to `[dev-dependencies]`; remove
`rayon`, `once_cell`, or `unicode-segmentation` if the final design does not