Add inferadb to your Cargo.toml:
[dependencies]
inferadb = "0.1"This includes both gRPC and REST transports with pure-Rust TLS.
| Feature | Default | Description |
|---|---|---|
grpc |
Yes | gRPC transport (faster, streaming) |
rest |
Yes | REST transport (broader compatibility) |
rustls |
Yes | Pure-Rust TLS |
native-tls |
No | System TLS (OpenSSL/Schannel) |
tracing |
No | OpenTelemetry integration |
blocking |
No | Sync/blocking API wrapper |
derive |
No | Proc macros for type-safe schemas |
wasm |
No | Browser/WASM support (REST only) |
[dependencies]
inferadb = { version = "0.1", default-features = false, features = ["rest", "rustls"] }[dependencies]
inferadb = { version = "0.1", default-features = false, features = ["grpc", "rustls"] }[dependencies]
inferadb = { version = "0.1", features = ["tracing"] }Uses rustls with Mozilla's root certificates. No system dependencies.
Uses the system TLS library (OpenSSL on Linux, Secure Transport on macOS, Schannel on Windows):
[dependencies]
inferadb = { version = "0.1", default-features = false, features = ["grpc", "rest", "native-tls"] }The MSRV is 1.88.0. We target approximately two releases behind stable.
- MSRV increases are documented in the CHANGELOG
- The
rust-versionfield inCargo.tomlenforces this at build time - Earlier compiler versions are not guaranteed to work
For browser environments, use REST-only with the wasm feature:
[dependencies]
inferadb = { version = "0.1", default-features = false, features = ["rest", "wasm"] }Note: gRPC is not supported in WASM environments.