
# Objective - Publishing takes a long time - There's a 20 second wait between crates to not hit the rate limit on crates.io ## Solution - Our rate limit has been increased by the crates.io team, don't wait anymore!
20 lines
349 B
Bash
20 lines
349 B
Bash
if [ -n "$(git status --porcelain)" ]; then
|
|
echo "You have local changes!"
|
|
exit 1
|
|
fi
|
|
|
|
pushd crates
|
|
|
|
for crate in `cargo package --workspace 2>&1 | grep Packaging | sed 's_.*crates/\(.*\))_\1_' | grep -v Packaging`
|
|
do
|
|
echo "Publishing ${crate}"
|
|
pushd "$crate"
|
|
cargo publish
|
|
popd
|
|
done
|
|
|
|
popd
|
|
|
|
echo "Publishing root crate"
|
|
cargo publish
|