Skip to content

Commit 1ffcd5c

Browse files
committed
Rename *-getrandom to getrandom-*
1 parent 6887bd2 commit 1ffcd5c

File tree

11 files changed

+24
-24
lines changed

11 files changed

+24
-24
lines changed

.travis.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
script:
1010
- cargo test
1111
# We can't run the tests on 1.32 due to rust-lang/rust#48216
12-
- cargo build --package cpurand-getrandom
12+
- cargo build --package getrandom-cpu
1313

1414
- <<: *minimal_version
1515
name: "OSX, 1.32.0"
@@ -18,15 +18,15 @@ jobs:
1818
- name: "Linux, stable"
1919
rust: stable
2020
script:
21-
- cargo test --package getrandom --package cpurand-getrandom
21+
- cargo test --package getrandom --package getrandom-cpu
2222

2323
- name: "OSX+iOS, stable"
2424
rust: stable
2525
os: osx
2626
install:
2727
- rustup target add aarch64-apple-ios
2828
script:
29-
- cargo test --package getrandom --package cpurand-getrandom --tests
29+
- cargo test --package getrandom --package getrandom-cpu --tests
3030
- cargo build --target aarch64-apple-ios
3131

3232
- name: "Linux, beta"
@@ -76,16 +76,16 @@ jobs:
7676
- cargo web test --target asmjs-unknown-emscripten --no-run
7777
- cargo test --target wasm32-wasi
7878
# stdweb (wasm32-unknown-unknown) tests (Node, Chrome)
79-
- cargo web test --package stdweb-getrandom
80-
- cargo web test --package stdweb-getrandom --nodejs
79+
- cargo web test --package getrandom-stdweb
80+
- cargo web test --package getrandom-stdweb --nodejs
8181
# wasm-bindgen (wasm32-unknown-unknown) tests (Node, Firefox, Chrome)
82-
- cargo test --package wasm-bindgen-getrandom
82+
- cargo test --package getrandom-wasm-bindgen
8383
--target wasm32-unknown-unknown --test node
8484
- GECKODRIVER=$HOME/geckodriver
85-
cargo test --package wasm-bindgen-getrandom
85+
cargo test --package getrandom-wasm-bindgen
8686
--target wasm32-unknown-unknown --test web
8787
- CHROMEDRIVER=$HOME/chromedriver
88-
cargo test --package wasm-bindgen-getrandom
88+
cargo test --package getrandom-wasm-bindgen
8989
--target wasm32-unknown-unknown --test web
9090

9191
- &nightly_and_docs
@@ -102,13 +102,13 @@ jobs:
102102
# remove cached documentation, otherwise files from previous PRs can get included
103103
- rm -rf target/doc
104104
- cargo doc --no-deps --features=std,custom
105-
- cargo doc --no-deps --package cpurand-getrandom
106-
- cargo doc --no-deps --package wasm-bindgen-getrandom --target=wasm32-unknown-unknown
105+
- cargo doc --no-deps --package getrandom-cpu
106+
- cargo doc --no-deps --package getrandom-wasm-bindgen --target=wasm32-unknown-unknown
107107
- cargo deadlinks --dir target/doc
108108
# Check that our tests pass in the default/minimal configuration
109-
- cargo test --package getrandom --package cpurand-getrandom --tests --benches
109+
- cargo test --package getrandom --package getrandom-cpu --tests --benches
110110
- cargo generate-lockfile -Z minimal-versions
111-
- cargo test --package getrandom --package cpurand-getrandom --tests --benches
111+
- cargo test --package getrandom --package getrandom-cpu --tests --benches
112112

113113
- <<: *nightly_and_docs
114114
name: "OSX, nightly, docs"

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ appveyor = { repository = "rust-random/getrandom" }
1616

1717
[workspace]
1818
members = [
19-
"custom/cpurand",
19+
"custom/cpu",
2020
"custom/stdweb",
2121
"custom/wasm-bindgen",
2222
]

custom/cpurand/Cargo.toml custom/cpu/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
2-
name = "cpurand-getrandom"
2+
name = "getrandom-cpu"
33
version = "0.1.0"
44
edition = "2018"
55
authors = ["The Rand Project Developers"]
66
license = "MIT OR Apache-2.0"
77
description = "Custom shim for using getrandom with CPU RNG instructions"
8-
documentation = "https://docs.rs/cpurand-getrandom"
8+
documentation = "https://docs.rs/getrandom-cpu"
99
repository = "https://github.com/rust-random/getrandom"
1010
categories = ["hardware-support", "no-std"]
1111

File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// Call cpurand so that it will be invoked on std targets (like Linux).
2-
use cpurand_getrandom::cpurand as getrandom;
2+
use getrandom_cpu::cpurand as getrandom;
33
#[path = "../../../tests/common/mod.rs"]
44
mod common;

custom/cpurand/tests/normal.rs custom/cpu/tests/normal.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Explicitly use the Custom RNG crate to link it in.
2-
use cpurand_getrandom as _;
2+
use getrandom_cpu as _;
33

44
use getrandom::getrandom;
55
#[path = "../../../tests/common/mod.rs"]

custom/stdweb/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
2-
name = "stdweb-getrandom"
2+
name = "getrandom-stdweb"
33
version = "0.1.0"
44
edition = "2018"
55
authors = ["The Rand Project Developers"]
66
license = "MIT OR Apache-2.0"
77
description = "Custom shim for using getrandom with stdweb"
8-
documentation = "https://docs.rs/stdweb-getrandom"
8+
documentation = "https://docs.rs/getrandom-stdweb"
99
repository = "https://github.com/rust-random/getrandom"
1010
categories = ["wasm"]
1111

custom/stdweb/tests/test.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Explicitly use the Custom RNG crate to link it in.
2-
use stdweb_getrandom as _;
2+
use getrandom_stdweb as _;
33

44
use getrandom::getrandom;
55
use test;

custom/wasm-bindgen/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
2-
name = "wasm-bindgen-getrandom"
2+
name = "getrandom-wasm-bindgen"
33
version = "0.1.0"
44
edition = "2018"
55
authors = ["The Rand Project Developers"]
66
license = "MIT OR Apache-2.0"
77
description = "Custom shim for using getrandom with wasm-bindgen"
8-
documentation = "https://docs.rs/wasm-bindgen-getrandom"
8+
documentation = "https://docs.rs/getrandom-wasm-bindgen"
99
repository = "https://github.com/rust-random/getrandom"
1010
categories = ["wasm"]
1111

custom/wasm-bindgen/tests/node.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Explicitly use the Custom RNG crate to link it in.
2-
use wasm_bindgen_getrandom as _;
2+
use getrandom_wasm_bindgen as _;
33

44
use getrandom::getrandom;
55
use wasm_bindgen_test::wasm_bindgen_test as test;

custom/wasm-bindgen/tests/web.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Explicitly use the Custom RNG crate to link it in.
2-
use wasm_bindgen_getrandom as _;
2+
use getrandom_wasm_bindgen as _;
33

44
wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_browser);
55

0 commit comments

Comments
 (0)