Compare commits

..

No commits in common. "6a8187bc3cad6d074355f05e6741a6bf1e851ec1" and "809948b8f4d1db2cb2ab77157d5282128a7f2782" have entirely different histories.

4 changed files with 1037 additions and 327 deletions

2
Cargo.lock generated
View file

@ -110,7 +110,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "ckanaction"
version = "0.1.2"
version = "0.1.0"
dependencies = [
"bon",
"reqwest",

View file

@ -1,13 +1,12 @@
[package]
name = "ckanaction"
version = "0.1.2"
version = "0.1.0"
edition = "2024"
description = "Rust library crate featuring an API wrapper of the CKAN Action v3 API."
repository = "https://github.com/dathere/ckanaction"
license = "Unlicense"
keywords = ["ckan"]
categories = ["api-bindings", "asynchronous"]
exclude = ["/docs"]
[dependencies]
bon = "3.6.3"

1350
src/lib.rs

File diff suppressed because it is too large Load diff

View file

@ -15,18 +15,11 @@ mod tests {
use super::*;
#[tokio::test]
#[ignore = "Set values for const at top of tests file locally."]
async fn status_show() -> Result<(), Box<dyn std::error::Error>> {
let ckan = get_ckan_builder().await;
let response = ckan.status_show().await?;
assert!(response.is_object());
let success = response
.as_object()
.unwrap()
.get("success")
.unwrap()
.as_bool()
.unwrap();
let success = response.as_object().unwrap().get("success").unwrap().as_bool().unwrap();
assert!(success);
Ok(())
}