Skip to content

Commit

Permalink
Merge pull request #536 from KodrAus/feat/infallible-ctors
Browse files Browse the repository at this point in the history
Make ctors that accept slices infallible using arrays and other breaking changes
  • Loading branch information
KodrAus committed Oct 30, 2021
2 parents 07f920f + cd9786f commit 05ac705
Show file tree
Hide file tree
Showing 21 changed files with 683 additions and 1,038 deletions.
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.

0 comments on commit 05ac705

Please sign in to comment.