These reviews are from cargo-vet. To add your review, set up cargo-vet and submit your URL to its registry.

Additional use of unsafe to wrap NonZeroUsize::new_unchecked; in both cases the argument to this method is <Vec length or capacity> + 1; in general this is safe with the exception that if an existing Vec has length or capacity usize::MAX this could wrap into zero; it would be better to use the safe operation and then expect to generate a panic, rather than risk undefined behavior.

Additions are:

  • no_std support
  • sorting
  • nonzero module (just wrappers
  • serde support
  • nonempty macro (trivial, verified safe)

The current version of NonEmpty is 0.11.0.

cargo-vet does not verify reviewers' identity. You have to fully trust the source the audits are from.

safe-to-deploy (implies safe-to-run)

This crate will not introduce a serious security vulnerability to production software exposed to untrusted input. More…

safe-to-run
Implied by other criteria

This crate can be compiled, run, and tested on a local workstation or in controlled automation without surprising consequences. More…

unknown

May have been packaged automatically without a review


Crates in the crates.io registry are tarball snapshots uploaded by crates' publishers. The registry is not using crates' git repositories. There is absolutely no guarantee that the repository URL declared by the crate belongs to the crate, or that the code in the repository is the code inside the published tarball.

To review the actual code of the crate, it's best to use cargo crev open nonempty. Alternatively, you can download the tarball of nonempty v0.11.0 or view the source online.