0
0
mirror of https://github.com/signalapp/libsignal.git synced 2024-09-20 12:02:18 +02:00
libsignal/bin/verify_duplicate_crates

44 lines
934 B
Bash
Executable File

#!/bin/bash
#
# Copyright 2021 Signal Messenger, LLC.
# SPDX-License-Identifier: AGPL-3.0-only
#
# For now, these dependencies have conflicting requirements.
# You can use the `cargo tree` command below to see where they come from,
# and then document them here.
#
# getrandom + rand*:
# curve25519-dalek + x25519-dalek use rand_core 0.5, snow and picky use rand_core 0.6
# block-buffer + digest:
# argon2 uses digest 0.10, all of the other rust-crypto dependencies are still based
# on digest 0.9.
# syn:
# syn is used in proc-macros only, so it isn't going to cost us in code size.
EXPECTED="\
block-buffer v0.9.0
block-buffer v0.10.4
digest v0.9.0
digest v0.10.7
getrandom v0.1.16
getrandom v0.2.9
rand_core v0.5.1
rand_core v0.6.4
syn v1.0.109
syn v2.0.17"
if [[ "$(cargo tree -d -e normal --workspace --locked --depth 0)" != "${EXPECTED}" ]]; then
cargo tree -d -e normal --workspace --locked
exit 1
fi