Skip to content

Release fbthrift git

vkill edited this page Jan 12, 2023 · 6 revisions

Release fbthrift-git 0.0.7

Init

git clone [email protected]:bk-rs/fbthrift-git-rs.git
cd fbthrift-git-rs

git remote add facebook [email protected]:facebook/fbthrift.git

New version

Note the last commit id b377f46 from https://github.com/facebook/fbthrift/tree/master/thrift/lib/rust

cd fbthrift-git-rs
git checkout main

git fetch facebook
git pull facebook main
git push origin main

git subtree split -P thrift/lib/rust -b rust-0.0.7
git checkout rust-0.0.7

cargo test

sed -i 's/^name = "fbthrift"$/name = "fbthrift-git"/' Cargo.toml
sed -i 's/^version = "0.0.1+unstable"$/version = "0.0.7+b377f46"/' Cargo.toml
sed -i '/^license = .*/a description = "This is a -git package for fbthrift."' Cargo.toml
sed -i '/^publish = false$/d'  Cargo.toml

git commit -a -m "Release 0.0.7+b377f46"

cargo publish --dry-run
cargo publish
rm -rf target
rm -rf Cargo.lock

git push origin rust-0.0.7

git checkout main
Clone this wiki locally