jute 0.1.2

An opinionated JOSE library that implements JWT, JWS, JWE, JWA and JWK.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
macro_rules! unexpected_key_type_error {
    ($expected:path, $actual:expr) => {
        Error::WrongKeyType {
            actual: $actual.to_string(),
            expected: $expected.to_string(),
        }
    };
}

macro_rules! unexpected_encryption_options_error {
    ($expected:expr, $actual:expr) => {
        Error::WrongEncryptionOptions {
            actual: $actual.to_string(),
            expected: $expected.to_string(),
        }
    };
}