Skip to content

Commit

Permalink
Update dependencies, bump MSRV, cleanups (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik authored Feb 11, 2025
1 parent 4403150 commit 93c9925
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 18 deletions.
14 changes: 0 additions & 14 deletions .cargo-husky/hooks/pre-push

This file was deleted.

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.idea
.vscode
venv

### Rust template
# Generated by Cargo
# will have compiled files and executables
Expand Down
19 changes: 19 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files

- repo: local
hooks:
- id: cargo-fmt
name: Rust Format
description: "Automatically format Rust code with cargo fmt"
entry: sh -c "cargo fmt --all"
language: rust
pass_filenames: false
5 changes: 2 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2021"
license = "MIT OR Apache-2.0"
keywords = ["uds", "kwp2000", "obd", "automotive", "no_std"]
categories = ["embedded", "no-std", "encoding", "parsing"]
rust-version = "1.65.0"
rust-version = "1.66"

[features]
default = ["std", "iter", "display", "with-kwp2000", "with-obd2", "with-uds"]
Expand All @@ -30,10 +30,9 @@ serde = ["dep:serde"]
[dependencies]
displaydoc = { version = "0.2", optional = true }
serde = { version = "1", features = ["derive"], optional = true }
strum = { version = "0.26.3", features = ["derive"] }
strum = { version = "0.27.0", features = ["derive"] }

[dev-dependencies]
cargo-husky = { version = "1", features = ["user-hooks"], default-features = false }
serde_json = { version = "1", features = ["preserve_order"] }

[lints.rust]
Expand Down
2 changes: 1 addition & 1 deletion LICENSE-MIT
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
MIT License

Copyright (c) 2021 Ashcon Mohseninia
Copyright (c) 2023-2024 Yuri Astrakhan
Copyright (c) 2023-2025 Yuri Astrakhan

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
5 changes: 5 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,15 @@ clean:
cargo clean
rm -f Cargo.lock

# Update dependencies, including breaking changes
update:
cargo +nightly -Z unstable-options update --breaking
cargo update

# Find the minimum supported Rust version (MSRV) using cargo-msrv extension, and update Cargo.toml
msrv:
cargo msrv find --write-msrv

# Run cargo clippy
clippy:
cargo clippy --workspace --all-targets -- -D warnings
Expand Down

0 comments on commit 93c9925

Please sign in to comment.