Cargo Features

pgvec has no features set by default.

[dependencies]
pgvec = { version = "0.2.4", features = ["postgres", "diesel", "serde", "sqlx"] }
postgres

Enables bytes and postgres

Features from optional dependencies

diesel implicit feature

Enables diesel

diesel:

A safe, extensible ORM and Query Builder for PostgreSQL, SQLite, and MySQL

Affects pgvec::sql_types

serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework

sqlx implicit feature

Enables sqlx >=0.5, <0.8