Skip to content

Commit

Permalink
Update dependencies (#2)
Browse files Browse the repository at this point in the history
* Update dependencies

* Enable Dependabot

* Bump version number
  • Loading branch information
divergentdave authored Sep 11, 2024
1 parent 1a64c96 commit 2320d00
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2

updates:
- package-ecosystem: cargo
directory: /
schedule:
interval: weekly
target-branch: main
14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
[package]
name = "trillium-prometheus"
version = "0.1.0"
version = "0.2.0"
edition = "2021"
description = "Trillium handler for Prometheus metrics scrapes"
repository = "https://github.com/divviup/trillium-prometheus"
license = "MPL-2.0"

[dependencies]
prometheus = { version = "0.13.3", default-features = false }
tracing = { version = "0.1.37", default-features = false }
trillium = "0.2.8"
trillium-router = "0.3.5"
prometheus = { version = "0.13.4", default-features = false }
tracing = { version = "0.1.40", default-features = false }
trillium = "0.2.20"
trillium-router = "0.4.1"

[dev-dependencies]
trillium-smol = "0.2.1"
trillium-testing = { version = "0.4.2", features = ["smol"] }
trillium-smol = "0.4.2"
trillium-testing = { version = "0.7.0", features = ["smol"] }
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub fn text_format_handler(registry: Registry) -> Router {
let encoder = TextEncoder::new();
match encoder.encode(&registry.gather(), &mut buffer) {
Ok(()) => conn
.with_header(
.with_response_header(
KnownHeaderName::ContentType,
encoder.format_type().to_owned(),
)
Expand Down

0 comments on commit 2320d00

Please sign in to comment.