cargo clean
cargo build
cargo test
cd questdb-confstr-ffi/cpp_test
./compile
./run
In addition, before pushing a PR, please run:
cargo fmt --all
cargo clippy --all-targets -- -D warnings
Let us assume we want to cut version 0.1.1
and the current version is 0.1.0
.
git switch -c v0.1.1
$EDITOR questdb-confstr/Cargo.toml
$EDITOR questdb-confstr-ffi/Cargo.toml
Don't forget about clippy: The newest version of Rust might have picked up some new lints that we need to fix.
git add -u
git commit -m "Bump version to 0.1.1"
git push --set-upstream origin v0.1.1
N.B: We don't need to update any Cargo.lock
files for the ffi crate since
there are no dependencies.
https://github.com/questdb/questdb-confstr-rs/pull/new/
cargo login
(cd questdb-confstr && cargo publish --dry-run)
(cd questdb-confstr-ffi && cargo publish --dry-run)
(cd questdb-confstr && cargo publish)
(cd questdb-confstr-ffi && cargo publish)
(If in doubt, see the "Publishing on crates.io" guide)
- Create a new release on GitHub.
- Specify what changed in the release notes.
- Keep it readable (not autogenerated) and short.