Crates.io | brokaw |
lib.rs | brokaw |
version | 0.2.0 |
source | src |
created_at | 2020-06-11 03:00:45.58882 |
updated_at | 2020-06-29 02:56:28.31768 |
description | 📰 An NNTP client liberary. More at 11! 📰 |
homepage | |
repository | https://github.com/sgg/brokaw |
max_upload_size | |
id | 252584 |
size | 147,989 |
Brokaw is a typed Usenet library for the dozens of people still reading Netnews. It is very much in development and provides no guarantees about stability.
Brokaw (mostly) implements RFC 3977 and several popular extensions.
[dependencies]
brokaw = "*"
use brokaw::client::ClientConfig;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = ClientConfig::default().connect(("news.mozilla.org", 119))?;
client.capabilities().iter()
.for_each(|c| println!("{}", c));
Ok(())
}
Check out in the repo the examples as well!
NNTPS
) courtesy of native-tls
NntpClient
) for simple interactions with news serversNntpConnection
) for more specialized use casesAUTHINFO USER/PASS
Authentication (RFC 4643POST
, NEWGROUP
, NEWNEWS
, and LISTGROUP
have yet to be implemented)