Skip to content

Commit

Permalink
relax dependency constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
jcornaz committed Nov 1, 2024
1 parent 9311e8a commit 50092ec
Show file tree
Hide file tree
Showing 5 changed files with 178 additions and 31 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,11 @@ jobs:
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@v2
with:
tool: [email protected],just@1,cargo-msrv@0.15,cargo-deny@0.14
tool: [email protected],just@1,cargo-msrv@0.16,cargo-deny@0.16
- run: just verify
lint:
runs-on: ubuntu-latest
timeout-minutes: 10
env:
RUSTFLAGS: "-D warnings"
RUSTDOCFLAGS: "-D warnings"
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
Expand All @@ -35,5 +32,9 @@ jobs:
- uses: taiki-e/install-action@v2
with:
tool: cargo-hack,just,cargo-deny
- run: just lint doc
- run: cargo update
- run: just test lint doc
env:
RUSTFLAGS: "-D warnings"
RUSTDOCFLAGS: "-D warnings"
- run: cargo deny check
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Rust
/target
/.cargo/*.toml
/Cargo.lock

# Nodes tools
/node_modules
165 changes: 165 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "fun-html"
version = "0.0.0"
authors = ["Jonathan Cornaz"]
edition = "2021"
rust-version = "1.60.0"
rust-version = "1.60"
repository = "https://github.com/jcornaz/fun-html"
description = "HTML as a rust function!"
publish = false
Expand All @@ -13,7 +13,7 @@ all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[dependencies]
html-escape = { version = "0.2.13", default-features = false }
html-escape = { version = "0.2", default-features = false }

[dev-dependencies]
rstest = { version = "0.23.0", default-features = false }
rstest = { version = "0.23", default-features = false }
26 changes: 4 additions & 22 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ watch:

# Run the tests
test:
cargo hack test --tests --feature-powerset
cargo test --examples --all-features
cargo test --doc --all-features
cargo hack test --tests --feature-powerset --locked
cargo test --examples --all-features --locked
cargo test --doc --all-features --locked

# Run the static code analysis
lint:
cargo fmt -- --check
cargo hack clippy --each-feature --all-targets
cargo hack clippy --each-feature --all-targets --locked

# Build the documentation
doc *args:
Expand All @@ -30,24 +30,6 @@ doc-open: (doc "--open")
check-msrv:
cargo msrv verify

# Clean up compilation output
clean:
rm -rf target
rm -f Cargo.lock
rm -rf node_modules

# Install cargo dev-tools used by the `verify` recipe (requires rustup to be already installed)
install-dev-tools:
rustup install stable
rustup override set stable
cargo install cargo-hack cargo-watch cargo-msrv

# Install a git hook to run tests before every commits
install-git-hooks:
echo '#!/usr/bin/env sh' > .git/hooks/pre-push
echo 'just verify' >> .git/hooks/pre-push
chmod +x .git/hooks/pre-push

release *args: verify
test $GITHUB_TOKEN
test $CARGO_REGISTRY_TOKEN
Expand Down

0 comments on commit 50092ec

Please sign in to comment.