hn_api 0.1.0

A simple Hacker News API (v0) client library based on reqwest and serde.
Documentation
  • Coverage
  • 100%
    74 out of 74 items documented1 out of 24 items with examples
  • Size
  • Source code size: 74.15 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 5.5 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 1m 2s Average build duration of successful builds.
  • all releases: 1m 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • dbrgn/hn_api
    15 4 2
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • dbrgn

hn_api

CircleCI Rust

A simple synchronous Hacker News API (v0) client library based on reqwest and serde.

The library currently implements no caching. It simply exposes endpoints as methods.

Furthermore, there is no realtime functionality. If you need that, you should probably use a firebase client crate and subscribe to the live endpoints directly.

For an example, see examples/top.rs.

License

Licensed under either of

Contributing

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.