Skip to content
Snippets Groups Projects
Commit 72ea3e2e authored by Maaz Ahmed's avatar Maaz Ahmed
Browse files

Merge branch '49-update-dependencies-and-fix-lints' into 'main'

Resolve "Update dependencies and fix lints"

Closes #49

See merge request !30
parents eb6160ca 62ceba7c
Branches main
Tags v0.9.0
1 merge request!30Resolve "Update dependencies and fix lints"
Pipeline #31249 passed with stages
in 1 minute and 37 seconds
...@@ -2,6 +2,29 @@ ...@@ -2,6 +2,29 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
## [0.9.0] - 2024-12-03
### Features
- Impl Deserialize on custom types in utils
### Miscellaneous Tasks
- Fix clippy lints
- Update dependencies
- Update changelog and bump versions
## [0.8.1] - 2024-04-16
### Bug Fixes
- Use a fixed version for prometheus-http-query dependency
### Miscellaneous Tasks
- Fix clippy lints
- Bump version to 0.8.1
## [0.8.0] - 2024-01-09 ## [0.8.0] - 2024-01-09
### Bug Fixes ### Bug Fixes
...@@ -95,16 +118,20 @@ All notable changes to this project will be documented in this file. ...@@ -95,16 +118,20 @@ All notable changes to this project will be documented in this file.
- Initial support for handling multiple queries - Initial support for handling multiple queries
- Add support for more functions (transform) - Add support for more functions (transform)
### Miscellaneous Tasks
- Bump version to 0.5.0
- Generate changelog for v0.5.0
### Refactor ### Refactor
- Separate fn name and args formatting in QryFunc - Separate fn name and args formatting in QryFunc
### Miscellaneous Tasks ## [0.4.0] - 2023-12-26
- Generate changelog for v0.5.0 ### Bug Fixes
- Bump version to 0.5.0
## [0.4.0] - 2023-12-26 - Correct Sealed trait's visibility
### Documentation ### Documentation
...@@ -115,24 +142,15 @@ All notable changes to this project will be documented in this file. ...@@ -115,24 +142,15 @@ All notable changes to this project will be documented in this file.
- Initial functions support in the query builder API - Initial functions support in the query builder API
- Initial impl of promql validation macro - Initial impl of promql validation macro
### Refactor
- Remove an error variant that is never used
### Miscellaneous Tasks ### Miscellaneous Tasks
- Bump version to 0.3.1
- Generate changelog for v0.4.0 - Generate changelog for v0.4.0
- Bump version to 0.4.0 - Bump version to 0.4.0
## [0.3.1] - 2023-12-20 ### Refactor
### Bug Fixes
- Correct Sealed trait's visibility
### Miscellaneous Tasks
- Bump version to 0.3.1 - Remove an error variant that is never used
## [0.3.0] - 2023-12-19 ## [0.3.0] - 2023-12-19
...@@ -147,10 +165,19 @@ All notable changes to this project will be documented in this file. ...@@ -147,10 +165,19 @@ All notable changes to this project will be documented in this file.
### Features ### Features
- Basic metric query selector/builder
- Binary Operators with Vector Matching
- Type conversion utilities with parallel processing - Type conversion utilities with parallel processing
### Miscellaneous Tasks ### Miscellaneous Tasks
- Update README
- Simple code example in README
- Fix typo in README
- Bump prometheus-http-query to 0.8.0
- Bump version to v0.2.0
- Include cliff.toml
- Generate changelog for v0.2.0
- Use latest rust images - Use latest rust images
- Add tags - Add tags
- Include clippy component for linting - Include clippy component for linting
...@@ -162,21 +189,4 @@ All notable changes to this project will be documented in this file. ...@@ -162,21 +189,4 @@ All notable changes to this project will be documented in this file.
- Replace external error type with an internal one in pub API - Replace external error type with an internal one in pub API
- Replace external PromqlResult type with internal Data type - Replace external PromqlResult type with internal Data type
## [0.2.0] - 2023-12-14
### Features
- Basic metric query selector/builder
- Binary Operators with Vector Matching
### Miscellaneous Tasks
- Update README
- Simple code example in README
- Fix typo in README
- Bump prometheus-http-query to 0.8.0
- Bump version to v0.2.0
- Include cliff.toml
- Generate changelog for v0.2.0
<!-- generated by git-cliff --> <!-- generated by git-cliff -->
This diff is collapsed.
[package] [package]
name = "mquery" name = "mquery"
version = "0.8.2" version = "0.9.0"
edition = "2021" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
enum-as-inner = "0.6.0" enum-as-inner = "0.6.0"
prometheus-http-query = "=0.8.2" prometheus-http-query = "=0.8.3"
reqwest = "0.11.22" reqwest = "0.12.2"
url = "2.5.0" url = "2.5.0"
serde = { version = "1.0.193", optional = true } serde = { version = "1.0.193", optional = true }
serde_json = { version = "1.0.108", optional = true } serde_json = { version = "1.0.108", optional = true }
......
...@@ -34,7 +34,7 @@ impl<'a, F: Fn(&mut fmt::Formatter) -> fmt::Result> AggrFunc<'a, F> { ...@@ -34,7 +34,7 @@ impl<'a, F: Fn(&mut fmt::Formatter) -> fmt::Result> AggrFunc<'a, F> {
} }
} }
impl<'a, F: Fn(&mut fmt::Formatter) -> fmt::Result> From<QryFunc<F>> for AggrFunc<'a, F> { impl<F: Fn(&mut fmt::Formatter) -> fmt::Result> From<QryFunc<F>> for AggrFunc<'_, F> {
fn from(value: QryFunc<F>) -> Self { fn from(value: QryFunc<F>) -> Self {
AggrFunc { AggrFunc {
inner: value, inner: value,
...@@ -133,7 +133,7 @@ pub fn count<'a>( ...@@ -133,7 +133,7 @@ pub fn count<'a>(
pub fn count_values<'a>( pub fn count_values<'a>(
label: &'a str, label: &'a str,
vec_expr: impl Operable + 'a, vec_expr: impl Operable + 'a,
) -> AggrFunc<'_, impl Fn(&mut fmt::Formatter) -> fmt::Result + '_> { ) -> AggrFunc<'a, impl Fn(&mut fmt::Formatter) -> fmt::Result + 'a> {
qry_fn!(count_values, r#""{label}", {vec_expr}"#).into() qry_fn!(count_values, r#""{label}", {vec_expr}"#).into()
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment