Skip to content

Version 0.6.0

Latest
Compare
Choose a tag to compare
@tesaguri tesaguri released this 12 Jun 12:10
· 15 commits to master since this release
v0.6.0
8dba1dc

Added

  • Supported RsaSha1 signature method behind rsa-sha1-06 Cargo feature

  • Added ParameterList type for creating requests with dynamic parameters

  • Added request::AssertSorted type for turning a sorted iterator into a Request

  • Added Builder::to_{form,query} finalizers to write OAuth protocol parameters to form/query strings

  • Added Authorizer::{form,query} constructors

  • Added *_with_buf family of Builder finalizers/serializer constructors to write the output to a supplied buffer

  • Urlencoder now implements Clone and Debug

  • Added serializer::Recorder test utility behind test Cargo feature

  • Added #[oauth1(crate = "...")] derive-macro container attribute

Changed

  • Many functionalities are now behind std and alloc Cargo features, which are on-by-default

    Especially, Authorizer now panics if it needs to get timestamp when compiled without std feature.

    Also, we haven't reached a full no_std support yet and these features are only for future-proofing purpose for now. But we are almost there! We'll get the full no_std support once a thirdparty dependency releases a required change (servo/rust-url#691),

    The docs.rs documentation annotates APIs that require these features.

  • Renamed to_{form_urlencoded,uri_query} to to_{form,query}

  • The built-in signagure method types HmacSha1 and Plaintext are no longer unit structs

    Use the HMAC_SHA1 and PLAINTEXT constants or the new() constructor to get a default value of these types.

  • #[derive(Request)] now strips r# prefix of fields' name

  • #[derive(Request)] now rejects unknown container attributes

  • Removed Request implementation for BTreeSet

    Use the new ParameterList type, which is more flexible and correct.

  • Removed HmacSha1Authorizer and PlaintextAuthorizer type aliases

  • Removed Authorizer::with_signature_method() constructor

    The new() constructor now takes the signature method as an argument.

  • Removed Identity pseudo signature method

  • Renamed Authorizer::new to authorization