cargo-allow 0.1.5

Source-tree exception ledger and policy scanner for Rust repositories.
1
2
3
4
5
6
7
8
9
10
11
12
pub(crate) const RISK_HIGH: &str = "high";
pub(crate) const RISK_MEDIUM: &str = "medium";
pub(crate) const RISK_LOW: &str = "low";

pub(crate) const DIFFICULTY_SMALL: &str = "small";
pub(crate) const DIFFICULTY_MEDIUM: &str = "medium";

#[cfg(test)]
pub(crate) const RISK_LEVELS: &[&str] = &[RISK_HIGH, RISK_MEDIUM, RISK_LOW];

#[cfg(test)]
pub(crate) const DIFFICULTY_LEVELS: &[&str] = &[DIFFICULTY_SMALL, DIFFICULTY_MEDIUM];