tursodatabase / libsql

libSQL is a fork of SQLite that is both Open Source, and Open Contributions.
https://turso.tech/libsql
MIT License
9.54k stars 252 forks source link

set RUSTFLAGS for cargo dist in libsql-server-release GA #1674

Closed sivukhin closed 1 month ago

sivukhin commented 1 month ago

Context

Fix cargo dist build after latest introduction of tokio metrics in the PR #1669

This PR upgrade cargo dist to the latest version (0.14.1 -> 0.21.0) in order to use github-build-step config option and configure RUSTFLAGS env var properly in the build

Also, this PR adds repository key in the libsql-server package because cargo dist started to complain about this after upgrade:

$> cargo dist init
...
  × Github CI support requires you to specify the URL of your repository
  help: Set the repository = "https://github.com/..." key in these manifests:
        /home/sivukhin/turso/libsql/libsql-server/Cargo.toml

The build process were successfully finished during one of the CI runs: https://github.com/tursodatabase/libsql/actions/runs/10435720366?pr=1674