From ddb003dc0c3405c20247d4bc4f1a3049ccaf07f4 Mon Sep 17 00:00:00 2001 From: Aram Peres Date: Tue, 17 Nov 2020 23:47:04 -0500 Subject: [PATCH] fix: readme, missing dotenv, lint --- Cargo.toml | 6 +++++- README.md | 2 +- examples/blocking.rs | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f1d24ed..bd1f625 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nut-client" -version = "0.0.1" +version = "0.0.2" authors = ["Aram Peres "] edition = "2018" description = "Network UPS Tools (NUT) client library" @@ -15,3 +15,7 @@ license = "MIT" [dependencies] shell-words = "1.0.0" +dotenv = { version = "0.15.0", optional = true } + +[features] +env-file = ["dotenv"] diff --git a/README.md b/README.md index 65320be..d3fda2e 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![crates.io](https://img.shields.io/crates/v/nut-client.svg)](https://crates.io/crates/nut-client) [![Documentation](https://docs.rs/nut-client/badge.svg)](https://docs.rs/nut-client) [![MIT licensed](https://img.shields.io/crates/l/nut-client.svg)](./LICENSE) -[![CI](https://github.com/aramperes/nut-client-rs/workflows/CI/badge.svg)](https://github.com/aramperes/nut-client-rs/actions?query=workflow%3ACI) +[![CI](https://github.com/aramperes/nut-client-rs/workflows/CI/badge.svg)](https://github.com/aramperes/nut-client/actions?query=workflow%3ACI) A [Network UPS Tools](https://github.com/networkupstools/nut) (NUT) client library for Rust. diff --git a/examples/blocking.rs b/examples/blocking.rs index a96b944..3fc9231 100644 --- a/examples/blocking.rs +++ b/examples/blocking.rs @@ -1,8 +1,8 @@ use std::env; use std::net::ToSocketAddrs; -use nut_client::{Auth, ConfigBuilder, Host}; use nut_client::blocking::Connection; +use nut_client::{Auth, ConfigBuilder, Host}; fn main() -> nut_client::Result<()> { let addr = env::var("NUT_ADDR")