Use the pgwire Client/Frontend API
masterThe pgwire client/frontend API is currently under development. It is specifically designed for building components like PostgreSQL proxies that require full access to the wire protocol.
Note: If you are looking for a general-purpose PostgreSQL driver for application development (rather than building a proxy or protocol-level tool), it is recommended to use rust-postgres instead.