chore: examples update and docs, add package-list example

This commit is contained in:
rzmk 2026-05-05 17:26:59 -04:00
parent 4ff1155d9b
commit a88a8fffc3
8 changed files with 2299 additions and 275 deletions

View file

@ -0,0 +1,15 @@
use ckanaction::CKANError;
#[tokio::main]
async fn main() -> Result<(), CKANError> {
// Initialize and build CKAN struct
let ckan = ckanaction::CKAN::builder()
.url("http://localhost:5000")
.build();
// Send request to /package_list and print formatted debug output
let package_list = ckan.package_list().call().await?;
println!("{package_list:#?}");
Ok(())
}