[package]
edition = "2024"
name = "iri-client"
version = "0.1.4"
authors = ["Julien Esseiva <jesseiva@lbl.gov>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust client and Python bindings for the NERSC IRI API"
homepage = "https://api.iri.nersc.gov"
documentation = "https://docs.rs/iri-client"
readme = "README.md"
keywords = [
"api",
"openapi",
"client",
"nersc",
"python",
]
categories = [
"command-line-utilities",
"web-programming::http-client",
]
license = "BSD-3-Clause"
repository = "https://github.com/esseivaju/iri-client"
[features]
cli = [
"dep:anyhow",
"dep:clap",
"dep:tokio",
]
default = []
python = [
"dep:pyo3",
"dep:pyo3-async-runtimes",
]
[lib]
name = "iri_client"
crate-type = [
"rlib",
"cdylib",
]
path = "src/lib.rs"
[[bin]]
name = "iri-cli"
path = "src/bin/iri-cli.rs"
required-features = ["cli"]
[[example]]
name = "async_api_client_sites"
path = "examples/async_api_client_sites.rs"
[[example]]
name = "async_get_projects"
path = "examples/async_get_projects.rs"
[[example]]
name = "async_get_resources"
path = "examples/async_get_resources.rs"
[[example]]
name = "blocking_get_projects"
path = "examples/blocking_get_projects.rs"
[[example]]
name = "blocking_get_resources"
path = "examples/blocking_get_resources.rs"
[[example]]
name = "blocking_list_operations"
path = "examples/blocking_list_operations.rs"
[dependencies.anyhow]
version = "1"
optional = true
[dependencies.clap]
version = "4.5"
features = [
"derive",
"env",
]
optional = true
[dependencies.pyo3]
version = "0.28.2"
features = ["abi3-py39"]
optional = true
[dependencies.pyo3-async-runtimes]
version = "0.28.0"
features = ["tokio-runtime"]
optional = true
[dependencies.reqwest]
version = "0.13"
features = [
"blocking",
"json",
"query",
"rustls",
]
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"macros",
"rt-multi-thread",
]
optional = true
default-features = false
[dependencies.url]
version = "2"
[dev-dependencies.tokio]
version = "1"
features = [
"macros",
"rt-multi-thread",
]
default-features = false
[build-dependencies.serde_json]
version = "1"
[lints.clippy]
cargo_common_metadata = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
must_use_candidate = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1