0
0
mirror of https://github.com/signalapp/libsignal.git synced 2024-09-20 03:52:17 +02:00
libsignal/bin/verify_duplicate_crates
2022-06-22 16:33:21 -07:00

34 lines
766 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
# serde:
# num_enum_derive indirectly uses serde in a proc-macro;
# unfortunately that shows up as a repeat here
EXPECTED="\
getrandom v0.1.16
getrandom v0.2.5
rand_core v0.5.1
rand_core v0.6.3
serde v1.0.136
serde v1.0.136"
if [[ "$(cargo tree -d -e normal --workspace --locked --depth 0)" != "${EXPECTED}" ]]; then
cargo tree -d -e normal --workspace --locked
exit 1
fi