Cargo Features
[dependencies]
swagger = { version = "7.0.0-rc1", default-features = false, features = ["multipart_form", "multipart_related", "serdejson", "serdevalid", "server", "http1", "http2", "client", "tls", "uds", "conversion"] }
- default = serdejson
-
The
serdejson
feature is set by default wheneverswagger
is added without
somewhere in the dependency tree.default-features = false - multipart_form = mime
-
Affects
multipart::form
… -
Affects
multipart::related
… - serdejson default serdevalid? = serde, serde_json
-
Affects
nullable_format::deserialize_optional_nullable
… - serdevalid = paste, regex, serde_valid, serdejson
- server
-
Affects
swagger::composites
… - http1
-
hyper:
HTTP versions
Affects
swagger::composites
… - http2
-
Affects
swagger::composites
… - client = hyper-util
-
hyper:
Client/Server
Affects
swagger::connector
… - tls = hyper-openssl, hyper-tls, native-tls, openssl
-
Affects
connector::HttpsBuilder
… - uds = tokio
-
UDS (Unix Domain Sockets)
- conversion = frunk, frunk-enum-core, frunk-enum-derive, frunk_core, frunk_derives
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.
- frunk conversion?
-
Enables frunk
Conversion
- frunk-enum-core conversion?
- frunk-enum-derive conversion?
- frunk_core conversion?
- frunk_derives conversion?
- hyper-util client?
-
Enables hyper-util
Client
- mime multipart_form?
-
Enables mime
multipart/form-data
- mime_multipart multipart_related?
-
Enables mime_multipart
multipart/related
- paste serdevalid?
- regex serdevalid?
- serde serdejson
- serde_json serdejson
- serde_valid serdevalid?
- tokio uds?
- hyper-openssl not mac win ios tls?
- hyper-tls mac win ios tls?
- native-tls mac win ios tls?
- openssl not mac win ios tls?