Bug Description
After upgrading to sqlx 0.8.1 from 0.6 I run into an error in .cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-postgres-0.8.1/src/types/cube.rs:307:33 I correct it by importing: use std::mem::size_of; in cube.rs.
Minimal Reproduction
impl Header {
const PACKED_WIDTH: usize = size_of::();
Info
- SQLx version: 0.8.1
- SQLx features enabled: sqlx = { version = "0.8.1", features = ["runtime-tokio-rustls", "postgres"] }
- Database server and version: Postgres 14
- Operating system: WSL2 Ubuntu 22.04
rustc --version: 1.77.2