Added
-
Supported
RsaSha1signature method behindrsa-sha1-06Cargo feature -
Added
ParameterListtype for creating requests with dynamic parameters -
Added
request::AssertSortedtype for turning a sorted iterator into aRequest -
Added
Builder::to_{form,query}finalizers to write OAuth protocol parameters to form/query strings -
Added
Authorizer::{form,query}constructors -
Added
*_with_buffamily ofBuilderfinalizers/serializer constructors to write the output to a supplied buffer -
Urlencodernow implementsCloneandDebug -
Added
serializer::Recordertest utility behindtestCargo feature -
Added
#[oauth1(crate = "...")]derive-macro container attribute
Changed
-
Many functionalities are now behind
stdandallocCargo features, which are on-by-defaultEspecially,
Authorizernow panics if it needs to get timestamp when compiled withoutstdfeature.Also, we haven't reached a full
no_stdsupport yet and these features are only for future-proofing purpose for now. But we are almost there! We'll get the fullno_stdsupport 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}toto_{form,query} -
The built-in signagure method types
HmacSha1andPlaintextare no longer unit structsUse the
HMAC_SHA1andPLAINTEXTconstants or thenew()constructor to get a default value of these types. -
#[derive(Request)]now stripsr#prefix of fields' name -
#[derive(Request)]now rejects unknown container attributes -
Removed
Requestimplementation forBTreeSetUse the new
ParameterListtype, which is more flexible and correct. -
Removed
HmacSha1AuthorizerandPlaintextAuthorizertype aliases -
Removed
Authorizer::with_signature_method()constructorThe
new()constructor now takes the signature method as an argument. -
Removed
Identitypseudo signature method -
Renamed
Authorizer::newtoauthorization