Skip to content

Commit 1c4d0d0

Browse files
committed
use copy/pasted crates_io_validation crate for name validation
1 parent fcc98e8 commit 1c4d0d0

File tree

6 files changed

+402
-59
lines changed

6 files changed

+402
-59
lines changed

Cargo.lock

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,7 @@ build = "build.rs"
99
edition = "2024"
1010

1111
[workspace]
12-
exclude = [
13-
"ignored",
14-
"tests",
15-
".workspace",
16-
".rustwide-docker",
17-
]
12+
members = ["crates/*"]
1813

1914
[dependencies]
2015
sentry = { version = "0.46.0", features = ["panic", "tracing", "tower-http", "anyhow", "backtrace"] }
@@ -105,6 +100,8 @@ chrono = { version = "0.4.11", default-features = false, features = ["clock", "s
105100
constant_time_eq = "0.4.2"
106101
md5 = "0.8.0"
107102

103+
crates_io_validation = { path = "crates/crates_io_validation" }
104+
108105
[dev-dependencies]
109106
criterion = "0.8.0"
110107
kuchikiki = "0.8"
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[package]
2+
name = "crates_io_validation"
3+
version = "0.0.0"
4+
license = "MIT OR Apache-2.0"
5+
edition = "2024"
6+
7+
[dependencies]
8+
thiserror = "=2.0.17"
9+
unicode-xid = "=0.2.6"
10+
11+
[dev-dependencies]
12+
claims = "=0.8.0"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# crates_io_validation
2+
3+
This package contains some low-level validation functions that are used across
4+
the code base.
5+
6+
These are mostly in their own crate to be shared with docs.rs.

0 commit comments

Comments
 (0)