build: establish Rust 1.88 MSRV
This commit is contained in:
parent
c88c5b8de2
commit
5bffeea1fb
|
|
@ -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
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -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"] }
|
||||
|
|
|
|||
|
|
@ -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.'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
2
tasks.md
2
tasks.md
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue