serde-encrypt-core 0.7.0

Encrypts all the Serialize
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! serde_encrypt::error::Error implements std::error::Error in `std` feature.

#![cfg(feature = "std")]

mod test_util;

// https://rust-lang.github.io/api-guidelines/interoperability.html#error-types-are-meaningful-and-well-behaved-c-good-err
#[test]
fn test_api_guidelines_c_good_err() {
    use std::fmt::Display;

    fn assert_error<T: std::error::Error + Send + Sync + 'static>() {}
    assert_error::<serde_encrypt_core::error::Error>();

    fn assert_display<T: Display>() {}
    assert_display::<serde_encrypt_core::error::Error>();
}