Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ctors that accept slices infallible using arrays and other breaking changes #536

Merged
merged 8 commits into from Oct 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -91,9 +91,12 @@ jobs:

- name: Install
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

- name: Default features
run: wasm-pack test --node -- --features "wasm-bindgen v1 v3 v4 v5"
run: wasm-pack test --node

- name: Version features
run: wasm-pack test --node -- --features "js v1 v3 v4 v5"

embedded:
name: Build / Embedded
Expand Down
71 changes: 0 additions & 71 deletions .travis.yml

This file was deleted.

44 changes: 25 additions & 19 deletions Cargo.toml
Expand Up @@ -51,34 +51,55 @@ status = "actively-developed"
[badges.travis-ci]
repository = "uuid-rs/uuid"

[features]
default = ["std"]
guid = ["winapi"]
std = []
v1 = ["atomic"]
v3 = ["md-5"]
v4 = ["getrandom"]
v5 = ["sha-1"]
js = ["getrandom", "getrandom/js"]

# Private
[dependencies.getrandom]
optional = true
version = "0.2"

# Private
[dependencies.atomic]
default-features = false
optional = true
version = "0.5"

# Private
[dependencies.md-5]
default-features = false
optional = true
version = "0.9"

[dependencies.serde]
# Private
[dependencies.sha-1]
default-features = false
optional = true
version = "1.0.56"
version = "0.9"

[dependencies.sha-1]
# Public: Used in trait impls on `Uuid`
[dependencies.serde]
default-features = false
optional = true
version = "0.9"
version = "1.0.56"

# Public: Used in trait impls on `Uuid`
[dependencies.slog]
optional = true
version = "2"

# Public: Used in `From` impls on `Uuid`
[target.'cfg(windows)'.dependencies.winapi]
optional = true
version = "0.3"

[dev-dependencies.bincode]
version = "1.0"

Expand All @@ -97,18 +118,3 @@ version = "0.2"

[dev-dependencies.wasm-bindgen-test]
version = "0.3"

[features]
default = ["std"]
guid = ["winapi"]
std = []
stdweb = ["getrandom", "getrandom/js"]
v1 = ["atomic"]
v3 = ["md-5"]
v4 = ["getrandom"]
v5 = ["sha-1"]
wasm-bindgen = ["getrandom", "getrandom/js"]

[target.'cfg(windows)'.dependencies.winapi]
optional = true
version = "0.3"
6 changes: 2 additions & 4 deletions README.md
Expand Up @@ -49,10 +49,8 @@ various pieces of functionality:
You need to enable one of the following Cargo features together with the
`v4` feature if you're targeting `wasm32-unknown-unknown` target:

* `stdweb` - enables support for `OsRng` on `wasm32-unknown-unknown` via
`stdweb` combined with `cargo-web`
* `wasm-bindgen` - `wasm-bindgen` enables support for `OsRng` on
`wasm32-unknown-unknown` via [`wasm-bindgen`]
* `js` - enables support for randomness on
`wasm32-unknown-unknown` via [`getrandom`]

Alternatively, you can provide a custom `getrandom` implementation yourself
via [`getrandom::register_custom_getrandom`](https://docs.rs/getrandom/0.2.2/getrandom/macro.register_custom_getrandom.html).
Expand Down
80 changes: 0 additions & 80 deletions src/adapter/compact.rs

This file was deleted.