about summary refs log tree commit diff
path: root/users/tazjin/yddns
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2023-06-14T09·58+0300
committertazjin <tazjin@tvl.su>2023-06-14T10·06+0000
commit3d3890ebcd48b595fffe9605553fa6c4afcaf1a4 (patch)
tree4bf289fadf3c55f292a6b366b7838dfd18df37a9 /users/tazjin/yddns
parentb3c9619f8cee8c5ae99fa99806165c26e5a3bfa3 (diff)
chore(tazjin/yddns): update yandex-cloud version r/6295
Change-Id: Iaf246014601bf7ab3fb1af4961c2fe26f66e45be
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8770
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'users/tazjin/yddns')
-rw-r--r--users/tazjin/yddns/Cargo.lock5
-rw-r--r--users/tazjin/yddns/Cargo.toml9
-rw-r--r--users/tazjin/yddns/src/main.rs7
3 files changed, 9 insertions, 12 deletions
diff --git a/users/tazjin/yddns/Cargo.lock b/users/tazjin/yddns/Cargo.lock
index 1314ca037971..508fce146fc8 100644
--- a/users/tazjin/yddns/Cargo.lock
+++ b/users/tazjin/yddns/Cargo.lock
@@ -1451,9 +1451,9 @@ checksum = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a"
 
 [[package]]
 name = "yandex-cloud"
-version = "2023.5.23"
+version = "2023.6.13"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4700ffa9a32b893a0c0c20a7d818b256ce2fbc37e354930051c476fc11488dda"
+checksum = "f131927e2f67d891994c1562f90885e49756b7ba1031b0845b2b8da5b6425c04"
 dependencies = [
  "prost",
  "prost-types",
@@ -1469,6 +1469,5 @@ dependencies = [
  "anyhow",
  "crimp",
  "tokio",
- "tonic",
  "yandex-cloud",
 ]
diff --git a/users/tazjin/yddns/Cargo.toml b/users/tazjin/yddns/Cargo.toml
index 504871bc4823..78691f303db7 100644
--- a/users/tazjin/yddns/Cargo.toml
+++ b/users/tazjin/yddns/Cargo.toml
@@ -6,8 +6,7 @@ edition = "2021"
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
 
 [dependencies]
-anyhow = "1.0.71"
-crimp = "4087.0.0"
-tokio = "1.28.2"
-tonic = "0.9.2"
-yandex-cloud = "2023.5.23"
+anyhow = "1.0"
+crimp = "4087.0"
+tokio = "*" # pulled in by yandex-cloud
+yandex-cloud = "2023.6.13"
diff --git a/users/tazjin/yddns/src/main.rs b/users/tazjin/yddns/src/main.rs
index 5799b59dafa0..2e2f9fe02fe4 100644
--- a/users/tazjin/yddns/src/main.rs
+++ b/users/tazjin/yddns/src/main.rs
@@ -3,9 +3,7 @@ use crimp::Request;
 use std::env;
 use std::net::Ipv4Addr;
 use tokio::runtime;
-use tonic::codegen::InterceptedService;
-use tonic::transport::channel::Channel;
-use tonic::transport::Endpoint;
+use yandex_cloud::tonic_exports::{Channel, Endpoint, InterceptedService};
 use yandex_cloud::yandex::cloud::dns::v1 as dns;
 use yandex_cloud::yandex::cloud::dns::v1::dns_zone_service_client::DnsZoneServiceClient;
 use yandex_cloud::{AuthInterceptor, TokenProvider};
@@ -115,7 +113,8 @@ async fn compare_update_record<T: TokenProvider>(
 }
 
 fn main() -> Result<()> {
-    let token = format!("Bearer {}", env::var("YANDEX_CLOUD_TOKEN")?);
+    let token =
+        env::var("YANDEX_CLOUD_TOKEN").context("Yandex Cloud authentication token unset")?;
     let target_zone_id =
         env::var("TARGET_ZONE").unwrap_or_else(|_| "dnsd0tif5mokfu0mg8i5".to_string());
     let target_record = env::var("TARGET_RECORD").unwrap_or_else(|_| "khtrsk".to_string());