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
8 changes: 5 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
Users who are just using the simple `Field::set_values` method or the various
`IntoField` / `IntoOptField` traits should not be affected.
- Update MSRV to 1.81
- Bump arrow dependency to 56.0
- Bump darling dependency to 0.21.0
- Bump itertools dependency to 0.14.0
- Bump prometheus dependency to 0.14.0
- Bump thiserror dependency to 2.0.11
- Bump tonic, tonic-build and tonic-health dependencies to 0.13.0
- Bump prost, tonic, tonic-build and tonic-health dependencies to 0.14.2; added tonic-prost dependency
- Bump tracing-serde dependency to 0.2.0

## [0.5.0] - 2024-09-17
Expand All @@ -52,7 +54,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- the type of plugin (`PluginType::App` or `PluginType::Datasource`)

The simplest way to do so is to use the `GrafanaPlugin` derive macro exporter from the library's prelude:

```rust
use std::collections::HashMap;

Expand All @@ -64,7 +66,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
max_retries: usize,
other_custom_setting: String,
}

#[derive(Debug, GrafanaPlugin)]
#[grafana_plugin(
type = "datasource",
Expand Down
2 changes: 1 addition & 1 deletion crates/grafana-plugin-sdk-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ description = "Convenience macros for the Grafana backend plugin SDK."
proc-macro = true

[dependencies]
darling = "0.20.3"
darling = "0.21.3"
proc-macro2 = "1.0.60"
quote = "1.0.28"
syn = { version = "2.0.18", features = ["full"] }
Expand Down
14 changes: 7 additions & 7 deletions crates/grafana-plugin-sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repository = "https://github.com/grafana/grafana-plugin-sdk-rust"
description = "SDK for building Grafana backend plugins."

[dependencies]
arrow = { version = "55.0.0", default-features = false, features = ["ipc"] }
arrow = { version = "56.2.0", default-features = false, features = ["ipc"] }
cfg-if = "1.0.0"
chrono = "0.4.26"
futures-core = "0.3.28"
Expand All @@ -18,7 +18,7 @@ grafana-plugin-sdk-macros = { version = "0.5.0", path = "../grafana-plugin-sdk-m
http = "1.0.0"
itertools = "0.14.0"
num-traits = "0.2.15"
prost = "0.13.2"
prost = "0.14.1"
reqwest_lib = { package = "reqwest", version = "0.12.7", optional = true }
serde = { version = "1.0.164", features = ["derive"] }
serde_json = { version = "1.0.96", features = ["float_roundtrip", "raw_value"] }
Expand All @@ -27,8 +27,9 @@ thiserror = "2.0.11"
time = { version = "0.3.22", features = ["formatting", "macros"] }
tokio = { version = "1.28.2", features = ["rt-multi-thread"] }
tokio-stream = { version = "0.1.14", features = ["net"] }
tonic = "0.13.0"
tonic-health = "0.13.0"
tonic = "0.14.2"
tonic-health = "0.14.2"
tonic-prost = "0.14.2"
tracing = "0.1.37"
tracing-core = "0.1.31"
tracing-log = "0.2.0"
Expand All @@ -50,8 +51,7 @@ tokio = { version = "1.28.2", features = ["rt-multi-thread"] }
tokio-stream = "0.1.14"

[build-dependencies]
prost-build = { version = "0.13.2", optional = true }
tonic-build = { version = "0.13.0", optional = true }
tonic-prost-build = { version = "0.14.2", optional = true }

# docs.rs-specific configuration
[package.metadata.docs.rs]
Expand All @@ -66,4 +66,4 @@ reqwest = ["reqwest_lib"]
# because it requires protoc. The generated code is instead checked in to source
# control. To regenerate code in the case of updated .proto definitions, build
# with this feature enabled.
gen-proto = ["dep:tonic-build", "dep:prost-build"]
gen-proto = ["dep:tonic-prost-build"]
6 changes: 3 additions & 3 deletions crates/grafana-plugin-sdk/build.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
fn main() -> Result<(), Box<dyn std::error::Error>> {
#[cfg(feature = "gen-proto")]
{
let mut config = prost_build::Config::new();
let mut config = tonic_prost_build::Config::new();
config.bytes([
".pluginv2.CallResourceRequest",
".pluginv2.CallResourceResponse",
".pluginv2.RunStreamRequest",
".pluginv2.SubscribeStreamRequest",
]);
Ok(tonic_build::configure()
Ok(tonic_prost_build::configure()
.out_dir("src/pluginv2")
.compile_protos_with_config(
.compile_with_config(
config,
&["./vendor/proto/backend.proto"],
&["./vendor/proto"],
Expand Down
Loading
Loading