sfackler / rust-postgres

Native PostgreSQL driver for the Rust programming language
Apache License 2.0
3.43k stars 436 forks source link

`tokio-postgres`: Set user to executing process' user by default. #1059

Closed ISibboI closed 1 year ago

ISibboI commented 1 year ago

This mimics the behaviour of libpq and some other libraries (see #1024). This commit uses the whoami crate, and thus goes as far as defaulting the user to the executing process' user name on all operating systems.

Closes #1024

ISibboI commented 1 year ago

How should I go about the time package?

sfackler commented 1 year ago

You can bump the version we use in CI up to 1.67: https://github.com/sfackler/rust-postgres/blob/master/.github/workflows/ci.yml#L85

sfackler commented 1 year ago

Thanks!