Skip to content

Commit feef672

Browse files
committed
Release 0.5.0
Rename to rups
1 parent 539d118 commit feef672

File tree

21 files changed

+51
-47
lines changed

21 files changed

+51
-47
lines changed

Cargo.lock

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[workspace]
22
members = [
3-
"nut-client",
3+
"rups",
44
"rupsc"
55
]

README.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# nut-client
1+
# rups
22

3-
[![crates.io](https://img.shields.io/crates/v/nut-client.svg)](https://crates.io/crates/nut-client)
4-
[![Documentation](https://docs.rs/nut-client/badge.svg)](https://docs.rs/nut-client)
5-
[![MIT licensed](https://img.shields.io/crates/l/nut-client.svg)](./LICENSE)
3+
[![crates.io](https://img.shields.io/crates/v/rups.svg)](https://crates.io/crates/rups)
4+
[![Documentation](https://docs.rs/rups/badge.svg)](https://docs.rs/rups)
5+
[![MIT licensed](https://img.shields.io/crates/l/rups.svg)](./LICENSE)
66
[![CI](https://github.com/aramperes/nut-client-rs/workflows/CI/badge.svg)](https://github.com/aramperes/nut-client-rs/actions?query=workflow%3ACI)
77

88
A [Network UPS Tools](https://github.com/networkupstools/nut) (NUT) client library for Rust.
@@ -38,15 +38,15 @@ built-in [upsc](https://networkupstools.org/docs/man/upsc.html) tool.
3838
Below is a sample program using this library (`cargo run --example blocking`).
3939

4040
You can also run the async version of this code using
41-
`cargo run --example async --features async-rt` (source: `nut-client/examples/async.rs`).
41+
`cargo run --example async --features async-rt` (source: `rups/examples/async.rs`).
4242

4343
```rust
44-
// nut-client/examples/blocking.rs
44+
// rups/examples/blocking.rs
4545

4646
use std::env;
4747

48-
use nut_client::blocking::Connection;
49-
use nut_client::{Auth, ConfigBuilder};
48+
use rups::blocking::Connection;
49+
use rups::{Auth, ConfigBuilder};
5050
use std::convert::TryInto;
5151

5252
fn main() -> nut_client::Result<()> {
@@ -100,7 +100,11 @@ If the server is using a self-signed certificate, and you'd like to ignore the s
100100

101101
## Async (Tokio)
102102

103-
The `nut-client` library supports async network requests. This requires the `async` feature, which uses Tokio v1 under
104-
the hood.
103+
The `rups` library supports async network requests. This requires the `async` feature, which uses Tokio v1 under the
104+
hood.
105105

106106
For SSL support, you must use the `async-ssl` feature as well.
107+
108+
## Pronunciation
109+
110+
> r-oops
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[package]
2-
name = "nut-client"
3-
version = "0.4.0"
2+
name = "rups"
3+
version = "0.5.0"
44
authors = ["Aram Peres <aram.peres@wavy.fm>"]
55
edition = "2018"
66
description = "Network UPS Tools (NUT) client library"
77
categories = ["network-programming"]
88
keywords = ["ups", "nut", "tokio", "async"]
99
repository = "https://github.com/aramperes/nut-client-rs"
10-
documentation = "https://docs.rs/nut-client"
10+
documentation = "https://docs.rs/rups"
1111
readme = "../README.md"
1212
license = "MIT"
1313

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
use std::env;
22

3-
use nut_client::tokio::Connection;
4-
use nut_client::{Auth, ConfigBuilder};
3+
use rups::tokio::Connection;
4+
use rups::{Auth, ConfigBuilder};
55
use std::convert::TryInto;
66

77
#[tokio::main]
8-
async fn main() -> nut_client::Result<()> {
8+
async fn main() -> rups::Result<()> {
99
let host = env::var("NUT_HOST").unwrap_or_else(|_| "localhost".into());
1010
let port = env::var("NUT_PORT")
1111
.ok()
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
use std::convert::TryInto;
22
use std::env;
33

4-
use nut_client::blocking::Connection;
5-
use nut_client::{Auth, ConfigBuilder};
4+
use rups::blocking::Connection;
5+
use rups::{Auth, ConfigBuilder};
66

7-
fn main() -> nut_client::Result<()> {
7+
fn main() -> rups::Result<()> {
88
let host = env::var("NUT_HOST").unwrap_or_else(|_| "localhost".into());
99
let port = env::var("NUT_PORT")
1010
.ok()
File renamed without changes.

0 commit comments

Comments
 (0)