forked from facebook/fbthrift
-
Notifications
You must be signed in to change notification settings - Fork 1
Release fbthrift git
vkill edited this page Dec 3, 2023
·
6 revisions
git clone [email protected]:bk-rs/fbthrift-git-rs.git
cd fbthrift-git-rs
git remote add facebook [email protected]:facebook/fbthrift.git
Note the last commit id c383b5e
from https://github.com/facebook/fbthrift/tree/main/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.8
git checkout rust-0.0.8
cargo test
sed -i 's/^name = "fbthrift"$/name = "fbthrift-git"/' Cargo.toml
sed -i 's/^version = "0.0.1+unstable"$/version = "0.0.8+c383b5e"/' 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.8+c383b5e"
cargo publish --dry-run
cargo publish
rm -rf target
rm -rf Cargo.lock
git push origin rust-0.0.8
git checkout main