build: remove dotenvy

This commit is contained in:
rzmk 2025-05-02 09:21:16 -04:00
parent 5376002177
commit 0d29a691c0
No known key found for this signature in database
4 changed files with 6 additions and 16 deletions

View file

@ -1,14 +1,9 @@
use dotenvy::dotenv;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
// Load environment variables from .env file
dotenv()?;
// Initialize and build CKAN struct
let ckan = ckanaction::CKAN::builder()
.url("http://localhost:5000")
.token(dotenvy::var("CKAN_API_TOKEN")?)
.token("CKAN_API_TOKEN".to_string())
.build();
// Send request to /status_show and print output