Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/target
/tools/hah-metrics/target
/tools/hah-deps/target
Cargo.lock
4 changes: 2 additions & 2 deletions DEPENDENCIES.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ _Generated by `make doc-dependencies` — do not edit by hand._
| [clap](https://crates.io/crates/clap) | 4 | MIT OR Apache-2.0 | A simple to use, efficient, and full-featured Command Line Argument Parser |
| [colored](https://crates.io/crates/colored) | 2 | MPL-2.0 | The most simple way to add colors in your terminal |
| [dirs](https://crates.io/crates/dirs) | 5 | MIT OR Apache-2.0 | A tiny low-level library that provides platform-specific standard locations of directories for config, cache and other data on Linux, Windows, macOS and Redox by leveraging the mechanisms defined by the XDG base/user directory specifications on Linux, the Known Folder API on Windows, and the Standard Directory guidelines on macOS |
| [regex](https://crates.io/crates/regex) | 1 | MIT OR Apache-2.0 | An implementation of regular expressions for Rust. This implementation uses
finite automata and guarantees linear time matching on all inputs |
| [regex](https://crates.io/crates/regex) | 1 | MIT OR Apache-2.0 | An implementation of regular expressions for Rust. This implementation uses finite automata and guarantees linear time matching on all inputs |
| [serde](https://crates.io/crates/serde) | 1 | MIT OR Apache-2.0 | A generic serialization/deserialization framework |
| [serde_json](https://crates.io/crates/serde_json) | 1 | MIT OR Apache-2.0 | A JSON serialization file format |
| [serde_yaml_ng](https://crates.io/crates/serde_yaml_ng) | 0.9 | MIT OR Apache-2.0 | YAML data format for Serde |
| [walkdir](https://crates.io/crates/walkdir) | 2 | Unlicense/MIT | Recursively walk a directory |
| [winnow](https://crates.io/crates/winnow) | 1 | MIT | A byte-oriented, zero-copy, parser combinators library |

## Development-only Dependencies

Expand Down
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ setup:
rustup component add llvm-tools-preview clippy rustfmt
cargo install cargo-audit
cargo install cargo-llvm-cov
python3 --version
cargo build --manifest-path tools/hah-metrics/Cargo.toml --release
cargo build --manifest-path tools/hah-deps/Cargo.toml --release

fmt:
cargo fmt --all
Expand Down Expand Up @@ -42,7 +42,10 @@ metrics:
--max-length $(METRIC_MAX_LENGTH)

doc-dependencies:
python3 tools/gen_deps_doc.py > DEPENDENCIES.md
cargo run --manifest-path tools/hah-deps/Cargo.toml --release --quiet > DEPENDENCIES.md

check: fmt-check lint test audit coverage-ci metrics
check-dependencies:
cargo run --manifest-path tools/hah-deps/Cargo.toml --release --quiet -- --check

check: fmt-check lint test audit coverage-ci metrics check-dependencies

127 changes: 0 additions & 127 deletions tools/gen_deps_doc.py

This file was deleted.

16 changes: 16 additions & 0 deletions tools/hah-deps/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[package]
name = "hah-deps"
version = "0.1.0"
edition = "2021"

[workspace]

[[bin]]
name = "hah-deps"
path = "src/main.rs"

[dependencies]
anyhow = "1"
clap = { version = "4", features = ["derive"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
Loading
Loading