Crates.io | azure_app_config |
lib.rs | azure_app_config |
version | 0.1.1 |
source | src |
created_at | 2024-04-29 23:22:11.401777 |
updated_at | 2024-05-03 21:21:48.769822 |
description | Azure App Configuration REST API Wrapper |
homepage | https://github.com/Pieeer1/Azure-App-Config-Rs.git |
repository | https://github.com/Pieeer1/Azure-App-Config-Rs.git |
max_upload_size | |
id | 1224568 |
size | 64,542 |
This library is a quick wrapper around the azure keyvault REST API to support managed identity configuration setting grabbing.
let client = Client::new(azure_core::Url::parse(env::var("APPCONFIG_URI").expect("Missing APPCONFIG_URI Env Var").as_str()).unwrap(), azure_identity::create_credential().unwrap());
let resp = client.get_key_values(None, None, None).await;
let client = Client::new(azure_core::Url::parse(env::var("APPCONFIG_URI").expect("Missing APPCONFIG_URI Env Var").as_str()).unwrap(), azure_identity::create_credential().unwrap());
let config_setting = client.get_key_value("ExampleConfigSetting", None, Some("Example:"), None).await.unwrap();
let client = Client::new(azure_core::Url::parse(env::var("APPCONFIG_URI").expect("Missing APPCONFIG_URI Env Var").as_str()).unwrap(), azure_identity::create_credential().unwrap());
let feature_flags = client.get_feature_flags(None).await;
let client = Client::new(azure_core::Url::parse(env::var("APPCONFIG_URI").expect("Missing APPCONFIG_URI Env Var").as_str()).unwrap(), azure_identity::create_credential().unwrap());
let is_enabled = client.is_feature_enabled("ExampleFeatureFlag", None).await.unwrap();
Also see the Example: Basic Usage
cargo add azure_app_config