#oauth1 #derive #request #oauth #macro

macro oauth1-request-derive

A derive macro for oauth1_request::Request trait

9 releases

new 0.4.0 Oct 18, 2020
0.3.3 Jun 6, 2020
0.3.2 Mar 5, 2020
0.3.1 Sep 20, 2019
0.2.0 Dec 2, 2018
Download history 25/week @ 2020-06-30 39/week @ 2020-07-07 29/week @ 2020-07-14 20/week @ 2020-07-21 6/week @ 2020-07-28 242/week @ 2020-08-04 188/week @ 2020-08-11 58/week @ 2020-08-18 56/week @ 2020-08-25 47/week @ 2020-09-01 61/week @ 2020-09-08 37/week @ 2020-09-15 29/week @ 2020-09-22 72/week @ 2020-09-29 66/week @ 2020-10-06 89/week @ 2020-10-13

305 downloads per month
Used in 2 crates

MIT/Apache

26KB
574 lines

oauth1-request

Build Status Current Version Documentation

Yet yet yet another OAuth 1 client library for Rust.

Usage

Add this to your Cargo.toml:

[dependencies]
oauth = { version = "0.3", package = "oauth1-request" }

Pros

  • Customizable crypto implementations (no dependency onring by default).
  • Slightly lower memory footprint (maybe): it avoids allocating memory for sorting query pairs unlike other crates.

Cons

  • Only dogfed on Twitter and likely to break on other sites.

lib.rs:

This crate provides a derive macro for oauth1_request::Request:

#[derive(oauth::Request)]
# struct Foo {}

oauth1_request crate re-exports the derive macro if the derive feature of the crate is enabled (which is on by default). You should use the re-export instead of depending on this crate directly.

Dependencies

~0.8–1.4MB
~33K SLoC