[package]
edition = "2024"
name = "enphase-api"
version = "1.0.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust client for Enphase/Envoy API"
readme = "README.md"
keywords = [
"api",
"enphase",
"envoy",
"solar",
]
categories = ["api-bindings"]
license = "MIT"
repository = "https://github.com/JP-Ellis/enphase-api"
[features]
[lib]
name = "enphase_api"
path = "src/lib.rs"
[[test]]
name = "integration"
path = "tests/integration/main.rs"
[dependencies.reqwest]
version = "0.13"
features = [
"cookies",
"form",
"json",
"rustls",
]
default-features = false
[dependencies.serde]
version = "~1"
features = ["derive"]
default-features = false
[dependencies.serde_json]
version = "~1"
[dependencies.thiserror]
version = "~2"
[dependencies.tokio]
version = "1"
features = ["time"]
default-features = false
[dependencies.tracing]
version = "0.1.41"
features = [
"attributes",
"log",
]
default-features = false
[dev-dependencies.anyhow]
version = "=1.0.102"
[dev-dependencies.insta]
version = "=1.46.3"
[dev-dependencies.pretty_assertions]
version = "=1.4.1"
[dev-dependencies.rstest]
version = "=0.26.1"
[dev-dependencies.tokio]
version = "=1.50.0"
features = [
"macros",
"rt-multi-thread",
]
[dev-dependencies.wiremock]
version = "=0.6.5"
[lints.clippy]
arbitrary_source_item_ordering = "allow"
blanket-clippy-restriction-lints = "allow"
else_if_without_else = "allow"
empty_structs_with_brackets = "allow"
impl_trait_in_params = "allow"
implicit_return = "allow"
min_ident_chars = "allow"
missing_trait_methods = "allow"
multiple_crate_versions = "allow"
panic_in_result_fn = "allow"
pattern_type_mismatch = "allow"
pub_with_shorthand = "allow"
question_mark_used = "allow"
ref_patterns = "allow"
return_and_then = "allow"
self_named_module_files = "allow"
separated_literal_suffix = "allow"
single_call_fn = "allow"
single_char_lifetime_names = "allow"
unreachable = "allow"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.complexity]
level = "warn"
priority = -1
[lints.clippy.correctness]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.clippy.perf]
level = "warn"
priority = -1
[lints.clippy.restriction]
level = "warn"
priority = -1
[lints.clippy.style]
level = "warn"
priority = -1
[lints.clippy.suspicious]
level = "warn"
priority = -1
[lints.rust]
future-incompatible = "warn"
missing_docs = "warn"
warnings = "warn"
[lints.rustdoc]
missing-crate-level-docs = "warn"