Cargo Features

[dependencies]
maturin = { version = "1.5.1", default-features = false, features = ["full", "log", "cli-completion", "upload", "password-storage", "rustls", "native-tls", "cross-compile", "zig", "xwin", "scaffolding", "faster-tests", "human-panic"] }
default = full, rustls

These default features are set whenever maturin is added without default-features = false somewhere in the dependency tree.

full default = cli-completion, cross-compile, log, scaffolding, upload
log full = tracing-subscriber
cli-completion full

Enables clap_complete_command

upload full password-storage? = bytesize, configparser, multipart, ureq, wild

Enables dirs and password of dialoguer

project scaffolding, maturin new/init/generate-ci

password-storage = keyring, upload

keyring doesn't support *BSD so it's not enabled in full by default

rustls default

Enables rustls ^0.22.2 and rustls-pemfile, rustls-tls of optional cargo-xwin, tls of optional ureq

native-tls

Enables native-tls and rustls-pemfile, native-tls of optional ureq and native-tls of optional cargo-xwin

cargo-xwin:

If this feature is enabled we instead use the native TLS implementation for the target platform

cross-compile full = xwin, zig

cross compile using zig or xwin

zig cross-compile? = cargo-zigbuild

Affects build_context::BuildContext.zig, build_options::BuildOptions.zig

xwin cross-compile? = cargo-xwin
scaffolding full = console, dialoguer, minijinja, unicode-xid

project scaffolding

Affects maturin::ci

faster-tests

Internal feature to speed up the tests significantly

human-panic

Deprecated features, keep it now for compatibility

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

unicode-xid scaffolding?
cargo-zigbuild zig?

Enables cargo-zigbuild

cross compile

cargo-xwin xwin?
tracing-subscriber log?
dialoguer scaffolding? upload?
console scaffolding?
minijinja scaffolding?

Enables minijinja ^1.0.7

bytesize upload?

Enables bytesize

upload

configparser upload?
multipart upload?
ureq upload?
keyring password-storage?
wild upload?