dotlock-bin 0.1.2

Encrypted project-local environment variables manager
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::domain::error::DotLockError;
use clap::ValueEnum;
use serde::{Deserialize, Serialize};

pub type DotLockResult<T> = Result<T, DotLockError>;

#[derive(Debug, Serialize, Deserialize)]
pub struct DataEncrypted<'a> {
    pub alg: &'a str,
    pub name: String,
    pub data: Vec<u8>,
}

#[derive(Debug, Clone, ValueEnum)]
pub enum Alg {
    #[value(name = "xcha", alias = "chacha20-poly1305")]
    XChaCha20Poly1305,
}