Benign rust 53,678 installs download unavailable

uv-normalize 0.0.89

“This is an internal component crate of uv”

Large registry install base (10k+ downloads)Release published within seven days
SHA-25671a720bcac50589e6831c0cc76b1252eeda2d94a4055ebb76e9269941291a8fd

Evidence

References a public code-forge URL README.md · lines 1–13
1<!-- This file is generated. DO NOT EDIT -->
2
3# uv-normalize
4
5This crate is an internal component of [uv](https://crates.io/crates/uv). The Rust API exposed here
6is unstable and will have frequent breaking changes.
7
8This version (0.0.89) is a component of [uv 0.12.22](https://crates.io/crates/uv/0.12.22). The
9source can be found [here](https://github.com/astral-sh/uv/blob/0.12.22/crates/uv-normalize).
10
11See uv's
12[crate versioning policy](https://docs.astral.sh/uv/reference/policies/versioning/#crate-versioning)
13for details on versioning.
imports extra_name::DefaultExtras lib.rs · lines 1–16
1use std::error::Error;
2use std::fmt::{Display, Formatter};
3
4pub use extra_name::{DefaultExtras, ExtraName};
5pub use group_name::{DEV_DEPENDENCIES, DefaultGroups, GroupName, PipGroupName};
6pub use package_name::PackageName;
7
8use uv_small_str::SmallString;
9
10mod extra_name;
11mod group_name;
12mod package_name;
13
14/// Validate and normalize an unowned package or extra name.
15pub(crate) fn validate_and_normalize_ref(
16 name: …
imports super::* lib.rs · lines 162–176
162:27… PipGroupPathError) -> Self {
163 Self::Path(value)
164 }
165}
166
167#[cfg(test)]
168mod tests {
169 use super::*;
170
171 #[test]
172 fn normalize() {
173 let inputs = [
174 "friendly-bard",
175 "Friendly-Bard",
176 "FRIENDLY-BAR …
assert_eq! macro lib.rs · lines 182–186
182:5… ];
183 for input in inputs {
184 assert_eq!(
185 validate_and_normalize_ref(input).unwrap().as_ref(),
186 "friendly …
assert! macro lib.rs · lines 193–199
193:50… ard"];
194 for input in inputs {
195 assert!(is_normalized(input).unwrap(), "{input:?}");
196 }
197
198 let inputs = [
199 "fri …

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.