mirror of
https://github.com/aramperes/nut-rs.git
synced 2025-09-09 05:28:31 -04:00
fix: readme, missing dotenv, lint
This commit is contained in:
parent
7988d6adcb
commit
ddb003dc0c
3 changed files with 7 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "nut-client"
|
name = "nut-client"
|
||||||
version = "0.0.1"
|
version = "0.0.2"
|
||||||
authors = ["Aram Peres <aram.peres@wavy.fm>"]
|
authors = ["Aram Peres <aram.peres@wavy.fm>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
description = "Network UPS Tools (NUT) client library"
|
description = "Network UPS Tools (NUT) client library"
|
||||||
|
@ -15,3 +15,7 @@ license = "MIT"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
shell-words = "1.0.0"
|
shell-words = "1.0.0"
|
||||||
|
dotenv = { version = "0.15.0", optional = true }
|
||||||
|
|
||||||
|
[features]
|
||||||
|
env-file = ["dotenv"]
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
[](https://crates.io/crates/nut-client)
|
[](https://crates.io/crates/nut-client)
|
||||||
[](https://docs.rs/nut-client)
|
[](https://docs.rs/nut-client)
|
||||||
[](./LICENSE)
|
[](./LICENSE)
|
||||||
[](https://github.com/aramperes/nut-client-rs/actions?query=workflow%3ACI)
|
[](https://github.com/aramperes/nut-client/actions?query=workflow%3ACI)
|
||||||
|
|
||||||
A [Network UPS Tools](https://github.com/networkupstools/nut) (NUT) client library for Rust.
|
A [Network UPS Tools](https://github.com/networkupstools/nut) (NUT) client library for Rust.
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
use std::env;
|
use std::env;
|
||||||
use std::net::ToSocketAddrs;
|
use std::net::ToSocketAddrs;
|
||||||
|
|
||||||
use nut_client::{Auth, ConfigBuilder, Host};
|
|
||||||
use nut_client::blocking::Connection;
|
use nut_client::blocking::Connection;
|
||||||
|
use nut_client::{Auth, ConfigBuilder, Host};
|
||||||
|
|
||||||
fn main() -> nut_client::Result<()> {
|
fn main() -> nut_client::Result<()> {
|
||||||
let addr = env::var("NUT_ADDR")
|
let addr = env::var("NUT_ADDR")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue