Skip to content

Commit

Permalink
Prevent E0658 by limiting enum-iterator version. (#132)
Browse files Browse the repository at this point in the history
* Prevent E0658 by limiting enum-iterator version.

enum-iterator 1.2.0 is using unstable features, causing projects using vergen to fail when building:
```
error[E0658]: use of unstable library feature 'array_from_fn'
   --> /root/.cargo/registry/src/github.com-1285ae84e5963aae/enum-iterator-1.2.0/src/lib.rs:554:18
    |
554 |             Some(core::array::from_fn(|_| unreachable!()))
    |                  ^^^^^^^^^^^^^^^^^^^^
    |
    = note: see issue #89379 <rust-lang/rust#89379> for more information
```

* allow for 'variant_size_differences'

Co-authored-by: Jason Ozias <jason.g.ozias@gmail.com>
  • Loading branch information
joaoantoniocardoso and CraZySacX authored Aug 30, 2022
1 parent 01d98d7 commit 6a2e754
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ local_offset = ["time/local-offset"]
[dependencies]
anyhow = "1.0.60"
cfg-if = "1.0.0"
enum-iterator = "1.1.3"
enum-iterator = "~1.1.3"
getset = "0.1.2"
git2 = { version = "0.14.4", optional = true, default-features = false }
rustc_version = { version = "0.4.0", optional = true }
Expand Down
1 change: 1 addition & 0 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ impl fmt::Display for ErrKind {

/// An error generated from the `vergen` library
#[derive(Debug, thiserror::Error)]
#[allow(variant_size_differences)]
pub(crate) enum Error {
/// An error from the `git2` library
#[cfg(feature = "git")]
Expand Down

0 comments on commit 6a2e754

Please sign in to comment.