Skip to content

Instantly share code, notes, and snippets.

@sahandevs
Last active June 11, 2022 05:58
Show Gist options
  • Save sahandevs/0052298021d77a03a3127f92d127dbf2 to your computer and use it in GitHub Desktop.
Save sahandevs/0052298021d77a03a3127f92d127dbf2 to your computer and use it in GitHub Desktop.
crev

Crev is a system for verifying security and reliability of dependencies based on collaborative code reviews. Crev users review source code of packages/libraries/crates, and share their findings with others. Crev then uses Web of Trust select trusted reviews and judge reputation of projects' dependencies.

Crev is language-independent, but the primary implementation is cargo crev for Rust/Cargo crates.

# setup
cargo install cargo-crev
cargo crev trust --level high https://github.com/dpc/crev-proofs
cargo crev repo fetch all

# verify
cargo crev verify --show-all

# review
cargo crev open $crate_name
cargo crev review $crate_name

# share reviews
# Fork this: https://github.com/crev-dev/crev-proofs/fork
cargo crev id set-url https://github.com/$your_github_username/crev-proofs
cargo crev publish

# get more reviews
cargo crev id query all
cargo crev trust # insert other people's URLs or Ids here

# review just the parts that changed since
cargo crev crate diff $crate_name | less
cargo crev review --diff $previous_version -- $crate_name

read more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment