dove-core 0.1.1

The shared library behind dove — client-side-encrypted, expiring file sharing from a cloud you own.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use dove_core::error::Error;

#[test]
fn error_categories_render_without_secrets() {
    let e = Error::Gone;
    assert_eq!(
        e.to_string(),
        "this share has expired or reached its download limit"
    );
    // A signed URL or key must never appear in a Display string.
    let msg = Error::Aws("PutObject failed: HTTP 403".into()).to_string();
    assert!(!msg.contains("X-Amz-Signature"));
}