[package]
name = "neiam-portal"
version = "0.1.0"
authors = ["gmorell <gmp@gmp.io>"]
edition = "2021"
rust-version = "1.82"
license = "GPL-3.0-or-later"
description = "Captive-portal provisioning and status web UI for ESP32 devices (esp-idf-svc)"
[features]
default = []
# Adds the ready-made MQTT config fragment (`MqttConfig`) and switches the
# built-in portal page to the variant that includes the broker form section.
mqtt = []
# Re-run the Tailwind/DaisyUI pipeline at build time instead of using the
# pre-built assets checked into `assets/`. Requires Node.js + npm + network on
# the first build. Only needed when restyling or when a consumer's custom
# portal page uses classes the shipped CSS was not purged against.
rebuild-assets = ["dep:flate2"]
[dependencies]
log = "0.4"
anyhow = "1"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# esp-idf-svc is deliberately target-scoped so that `cargo test` on the host
# compiles the pure modules (form parsing, DNS reply building, config
# fragments) without an ESP toolchain. Everything that needs the ESP-IDF is
# behind `#[cfg(target_os = "espidf")]` in lib.rs.
#
# NOTE: no `[patch.crates-io]` here on purpose. Patches only apply from the
# root manifest, so each consuming binary decides whether esp-idf-* resolves to
# crates.io or to git master. See README "Version skew".
#
# `default-features = false` + `std` on purpose: the default set includes
# `binstart`, which defines the binary entry point. That is the consuming
# *binary's* choice (it may want `libstart` instead), not a library's to force.
# `std` implies `alloc`.
[target.'cfg(target_os = "espidf")'.dependencies]
esp-idf-svc = { version = "0.52", default-features = false, features = ["std"] }
[build-dependencies]
flate2 = { version = "1", optional = true }
[dev-dependencies]
serde_json = "1"
neiam
/neiam-portal
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
Log in to mark this repository.
1.8 KiB · text
History
b85db9e