Skip to content

Commit aa4f7ca

Browse files
authored
[MAJOR] Migrated to metrics.rs and overhauled crate (#2)
2 parents a99473a + 79d945c commit aa4f7ca

28 files changed

+1712
-1489
lines changed

.github/FUNDING.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ env:
1010
CARGO_TERM_COLOR: always
1111

1212
jobs:
13+
typos:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: crate-ci/[email protected]
18+
1319
build:
1420
runs-on: ubuntu-latest
1521
continue-on-error: ${{ matrix.nightly }}
@@ -25,20 +31,22 @@ jobs:
2531

2632
steps:
2733
- uses: actions/checkout@v4
28-
34+
2935
- name: Install ${{ matrix.toolchain }} toolchain
3036
uses: dtolnay/rust-toolchain@master
3137
with:
3238
toolchain: ${{ matrix.toolchain }}
3339
components: clippy, rustfmt
34-
40+
41+
- uses: taiki-e/install-action@nextest
42+
3543
- uses: Swatinem/rust-cache@v2
3644

3745
- name: Run cargo fmt
3846
run: cargo fmt --all --check
3947

4048
- name: Run tests
41-
run: cargo test --all-features --all-targets --verbose
49+
run: cargo nextest run --all-features --all-targets
4250

4351
- name: Run doc tests
4452
run: cargo test --doc --verbose

CHANGELOG.md

Lines changed: 0 additions & 36 deletions
This file was deleted.

Cargo.toml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
11
[package]
2-
name = "actix-web-prom"
3-
version = "0.9.0"
4-
authors = ["Norberto Lopes <nlopes.ml@gmail.com>"]
2+
name = "actix-web-metrics"
3+
version = "0.1.0"
4+
authors = ["Ross Sullivan <rosssullivan101@gmail.com>"]
55
edition = "2021"
6-
description = "Actix Web middleware to expose Prometheus metrics"
7-
documentation = "https://docs.rs/actix-web-prom"
8-
repository = "https://github.com/nlopes/actix-web-prom.git"
9-
keywords = ["actix", "actix-web", "middleware", "prometheus", "web"]
6+
description = "Metrics.rs integration for Actix Web"
7+
documentation = "https://docs.rs/actix-web-metrics"
8+
repository = "https://github.com/ranger-ross/actix-web-metrics.git"
9+
keywords = ["actix", "actix-web", "middleware", "metrics", "prometheus"]
1010
categories = ["web-programming"]
1111
license = "MIT"
1212
readme = "README.md"
13-
exclude = [".gitignore", ".github/", "README.tpl", "examples/"]
13+
exclude = [".gitignore", ".github/", "examples/"]
1414

1515
[dependencies]
1616
strfmt = { version = "0.2.4" }
17-
actix-web = { version = "4.0", default-features = false, features = ["macros"] }
17+
actix-web = { version = "4", default-features = false, features = ["macros"] }
1818
futures-core = "0.3"
1919
pin-project-lite = "0.2"
20-
prometheus = { version = "0.14", default-features = false }
21-
regex = "^1.4"
20+
regex = "1.11"
2221
log = "0.4"
22+
metrics = "0.24"
2323

24-
[features]
25-
process = ["prometheus/process"]
24+
[dev-dependencies]
25+
metrics-util = "0.19.1"
26+
insta = { version = "1.43", features = ["filters"]}
27+
metrics-exporter-prometheus = "0.17.0"

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2018 Norberto Lopes
1+
Copyright (c) 2025 Ross Sullivan
22

33
Permission is hereby granted, free of charge, to any
44
person obtaining a copy of this software and associated

0 commit comments

Comments
 (0)