Skip to content

Latest commit

 

History

History
76 lines (54 loc) · 1.6 KB

DEV_NOTES.md

File metadata and controls

76 lines (54 loc) · 1.6 KB

Dev notes

Build and test

cargo clean
cargo build
cargo test
cd questdb-confstr-ffi/cpp_test
./compile
./run

Linting

In addition, before pushing a PR, please run:

cargo fmt --all
cargo clippy --all-targets -- -D warnings

Cutting a release

Let us assume we want to cut version 0.1.1 and the current version is 0.1.0.

1. New branch

git switch -c v0.1.1

2. Update the version in both Cargo.toml files

$EDITOR questdb-confstr/Cargo.toml
$EDITOR questdb-confstr-ffi/Cargo.toml

3. Re-run all tests and lints

Don't forget about clippy: The newest version of Rust might have picked up some new lints that we need to fix.

4. Commit the changes and create a PR

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.

5. Create a new PR, get it reviewed and merge it

https://github.com/questdb/questdb-confstr-rs/pull/new/

6. Publish both crates to crates.io

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)

7. Write the release notes

  • Create a new release on GitHub.
  • Specify what changed in the release notes.
  • Keep it readable (not autogenerated) and short.