Update dependencies.
This commit is contained in:
parent
33e113f5e5
commit
b15f7a1c07
14
Cargo.toml
14
Cargo.toml
@ -12,13 +12,13 @@ repository = "https://github.com/ruma/ruma-signatures"
|
|||||||
version = "0.4.1"
|
version = "0.4.1"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
base64 = "0.10.0"
|
base64 = "0.10.1"
|
||||||
lazy_static = "1.2.0"
|
lazy_static = "1.3.0"
|
||||||
ring = "0.13.5"
|
ring = "0.14.6"
|
||||||
serde = "1.0.80"
|
serde_json = "1.0.39"
|
||||||
serde_json = "1.0.33"
|
|
||||||
untrusted = "0.6.2"
|
untrusted = "0.6.2"
|
||||||
url = "1.7.2"
|
url = "1.7.2"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dependencies.serde]
|
||||||
serde_derive = "1.0.80"
|
version = "1.0.90"
|
||||||
|
features = ["derive"]
|
||||||
|
@ -691,6 +691,7 @@ impl Display for Algorithm {
|
|||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod test {
|
mod test {
|
||||||
use base64::decode_config;
|
use base64::decode_config;
|
||||||
|
use serde::Serialize;
|
||||||
use serde_json::{from_str, to_string, to_value};
|
use serde_json::{from_str, to_string, to_value};
|
||||||
|
|
||||||
use super::{
|
use super::{
|
||||||
@ -753,7 +754,7 @@ mod test {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn signatures_empty_json() {
|
fn signatures_empty_json() {
|
||||||
#[derive(serde_derive::Serialize)]
|
#[derive(Serialize)]
|
||||||
struct EmptyWithSignatures {
|
struct EmptyWithSignatures {
|
||||||
signatures: Signatures,
|
signatures: Signatures,
|
||||||
}
|
}
|
||||||
@ -786,13 +787,13 @@ mod test {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn sign_minimal_json() {
|
fn sign_minimal_json() {
|
||||||
#[derive(serde_derive::Serialize)]
|
#[derive(Serialize)]
|
||||||
struct Alpha {
|
struct Alpha {
|
||||||
one: u8,
|
one: u8,
|
||||||
two: String,
|
two: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(serde_derive::Serialize)]
|
#[derive(Serialize)]
|
||||||
struct ReverseAlpha {
|
struct ReverseAlpha {
|
||||||
two: String,
|
two: String,
|
||||||
one: u8,
|
one: u8,
|
||||||
@ -873,7 +874,7 @@ mod test {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn signatures_minimal_json() {
|
fn signatures_minimal_json() {
|
||||||
#[derive(serde_derive::Serialize)]
|
#[derive(Serialize)]
|
||||||
struct MinimalWithSignatures {
|
struct MinimalWithSignatures {
|
||||||
one: u8,
|
one: u8,
|
||||||
signatures: Signatures,
|
signatures: Signatures,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user