- SQLite 3.39.2
- Rust 1.62.1-aarch64-apple-darwin
- rust-bindgen 0.60.1
Before you do anything else, login on GitHub and fork this repository.
Install Git and clone your forked repository locally.
$ git clone https://github.com/<your-account>/libgsqlite
Create a new feature branch and play with it.
$ git switch -c add-new-feature
The project uses Semantic Versioning 2.0.0, but you don't have to update Cargo.toml
as I will maintain release.
$ bindgen --default-macro-constant-type signed sqlite3ext.h -o sqlite3ext.rs
$ cargo test -- --skip test_extension
If you have (1) set up Google Cloud, and (2) created the sample spreadsheet as described in the README, you can run full test.
$ export LIBGSQLITE_GOOGLE_CLIENT_ID=...
$ export LIBGSQLITE_GOOGLE_CLIENT_SECRET=...
$ export LIBGSQLITE_GOOGLE_CLIENT_TEST_ID=https://docs.google.com/spreadsheets/d/...
$ export LIBGSQLITE_GOOGLE_CLIENT_TEST_SHEET=Sheet1
$ export LIBGSQLITE_GOOGLE_CLIENT_TEST_RANGE=A2:D7
$ cargo test
- Commit your changes locally, rebase onto upstream/master, then push the changes to GitHub
$ git push origin add-new-feature
- Go to your fork on GitHub, switch to your feature branch, then click "Compare and pull request" button for review.