mirror of
https://github.com/dathere/ckanaction.git
synced 2025-11-09 14:19:49 +00:00
build: remove tokio and bin
This commit is contained in:
parent
e2c7841f4a
commit
a7fa0ac862
3 changed files with 0 additions and 87 deletions
14
src/main.rs
14
src/main.rs
|
|
@ -1,14 +0,0 @@
|
|||
#[tokio::main]
|
||||
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
// Initialize and build CKAN struct
|
||||
let ckan = ckanaction::CKAN::builder()
|
||||
.url("http://localhost:5000")
|
||||
.token("CKAN_API_TOKEN".to_string())
|
||||
.build();
|
||||
|
||||
// Send request to /status_show and print output
|
||||
let status_show = ckan.status_show().await?;
|
||||
println!("{status_show:#?}");
|
||||
|
||||
Ok(())
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue