| Crates.io | pgstac |
| lib.rs | pgstac |
| version | 0.3.1 |
| created_at | 2023-01-07 21:13:57.260021+00 |
| updated_at | 2025-07-11 21:17:56.002757+00 |
| description | Rust interface for pgstac |
| homepage | https://stac-utils.github.io/rustac |
| repository | https://github.com/stac-utils/rustac |
| max_upload_size | |
| id | 753250 |
| size | 106,793 |
Rust interface for pgstac.
In your Cargo.toml:
[dependencies]
pgstac = "0.3"
See the documentation for more.
pgstac needs a blank pgstac database for testing, so is not part of the default workspace build. To test:
docker compose up -d
cargo test -p pgstac
docker compose down
Each test is run in its own transaction, which is rolled back after the test.
By default, the tests will connect to the database at postgresql://username:password@localhost:5432/postgis.
If you need to customize the connection information for whatever reason, set your PGSTAC_RS_TEST_DB environment variable:
PGSTAC_RS_TEST_DB=postgresql://otherusername:otherpassword@otherhost:7822/otherdbname cargo test
This crate is part of the rustac monorepo, see its README for contributing and license information.