Skip to content
/ hn-rs Public

Rust bindings for the Hacker News (YCombinator) API

License

Notifications You must be signed in to change notification settings

mrmekon/hn-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hn-rs - Rust wrapper for the Hacker News (YCombinator) API

OSX/Linux Build Status Crates.io Version

hn-rs is a simple binding around the firebase APIs for fetching the news feed from Hacker News. It spawns a thread that regularly updates the top 60 items on Hacker News.

The main class, HackerNews, exposes this list in the most recently sorted order as a standard Rust iterator. The iterator returns copies of the items so the application can keep ownership if it wishes.

Currently it only exposes methods to request the title and URL of news items.

News items can be marked as 'hidden' so they are not returned in future passes through the iterator.

See the examples/ dir for usage.

Documentation

API documentation

About

Rust bindings for the Hacker News (YCombinator) API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages