Skip to content

Commit f74cc58

Browse files
committed
split out cuid1 crate
1 parent 91fc284 commit f74cc58

18 files changed

+223
-902
lines changed

.github/workflows/ci.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ jobs:
1010
toolchain: ["stable", "beta", "nightly"]
1111
test_args:
1212
- "-p cuid"
13-
- "-p cuid -- collisions::test --ignored"
14-
- "-p cuid -- collisions::single_thread --ignored --test-threads 1"
13+
- "-p cuid1"
14+
- "-p cuid1 -- collisions::test --ignored"
15+
- "-p cuid1 -- collisions::single_thread --ignored --test-threads 1"
1516
- "-p cuid2"
1617
- "-p cuid2 -- --ignored test::collisions"
1718
- "-p cuid2 -- --ignored test::distribution"
@@ -120,12 +121,12 @@ jobs:
120121
name: "Verify"
121122
runs-on: "ubuntu-latest"
122123
needs:
124+
- "audit"
123125
- "docs"
124126
- "fmt"
125-
- "test"
126127
- "lint"
127128
- "lint-release"
128-
- "audit"
129+
- "test"
129130
- "wasm"
130131
steps:
131132
- run: "echo 'All pre-commit checks passed!'"

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ repository = "https://github.com/mplanchard/cuid-rust"
1111

1212
[workspace.dependencies]
1313
cuid-util = { path = "./crates/cuid-util", version = "0.1.1" }
14+
cuid1 = { path = "./crates/cuid1", version = "0.1.0" }
1415
cuid2 = { path = "./crates/cuid2", version = "0.1.3" }
1516
criterion = "0.5.0"
1617
proptest = "1.0.0"

crates/cuid1/Cargo.toml

+7-17
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,36 @@
11
[package]
2-
name = "cuid"
3-
version = "1.3.3"
4-
description = "An ipmlementation of CUID protocol in rust"
5-
documentation = "https://docs.rs/cuid/latest/cuid/"
2+
name = "cuid1"
3+
version = "0.1.0"
64
resolver = "2"
75
edition.workspace = true
8-
license.workspace = true
96
authors.workspace = true
7+
license.workspace = true
108
homepage.workspace = true
119
repository.workspace = true
1210

13-
[badges]
14-
maintenance = { status = "deprecated" }
15-
1611
[dependencies]
1712
base36 = "0.0.1"
1813
cuid-util.workspace = true
19-
cuid2.workspace = true
2014
num = { version = "0.4.0", features = ["num-bigint"] }
2115
once_cell = "1.19.0"
2216
rand.workspace = true
17+
uuid = { version = "1.10.0", features = ["v4"] }
2318

2419
[dev-dependencies]
2520
criterion.workspace = true
2621

27-
# WASM deps
28-
[target.'cfg(target_family = "wasm")'.dependencies]
29-
uuid = { version = "1.10.0", features = ["v4"] }
30-
3122
# Not WASM deps
3223
[target.'cfg(not(target_family = "wasm"))'.dependencies]
3324
hostname = "0.4.0"
3425

35-
3626
[lib]
37-
name = "cuid"
27+
name = "cuid1"
3828
path = "src/lib.rs"
3929

4030
[[bin]]
41-
name = "cuid"
31+
name = "cuid1"
4232
path = "src/bin.rs"
4333

4434
[[bench]]
45-
name = "cuid"
35+
name = "cuid1"
4636
harness = false

crates/cuid1/README.md

-167
This file was deleted.

crates/cuid1/benches/cuid.rs

-93
This file was deleted.

0 commit comments

Comments
 (0)