Cargo Features

pgvector has no features set by default.

[dependencies]
pgvector = { version = "0.4.0", features = ["postgres", "halfvec", "diesel", "sqlx", "serde"] }
postgres

Enables bytes and postgres-types

halfvec

Enables half

Features from optional dependencies

diesel implicit feature

Enables diesel

diesel:

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

Affects pgvector::sql_types

sqlx implicit feature
serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework