Cargo Features
[dependencies]
swagger = { version = "6.5.0", default-features = false, features = ["multipart_form", "multipart_related", "serdejson", "serdevalid", "server", "http1", "http2", "client", "tcp", "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
-
Enables server of hyper ^0.14
Affects
swagger::composites
… - http1
-
Enables http1 of hyper ^0.14
hyper:
HTTP versions
Affects
swagger::composites
… - http2
-
Enables http2 of hyper ^0.14
Affects
swagger::composites
… - client
-
Enables client of hyper ^0.14
hyper:
Client/Server
Affects
swagger::connector
… - tcp
-
Enables tcp of hyper ^0.14
- 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.
- serde serdejson
- serde_json serdejson
- serde_valid serdevalid?
-
Enables serde_valid >=0.15, <0.17
- regex serdevalid?
- paste serdevalid?
- frunk conversion?
-
Enables frunk ^0.3.0
Conversion
- frunk_derives conversion?
-
Enables frunk_derives ^0.3.0
- frunk_core conversion?
-
Enables frunk_core ^0.3.0
- frunk-enum-derive conversion?
-
Enables frunk-enum-derive ^0.2.1
- frunk-enum-core conversion?
-
Enables frunk-enum-core ^0.2.1
- mime multipart_form?
-
Enables mime
multipart/form-data
- hyper_0_10 multipart_related?
-
Enables hyper ^0.10
multipart/related
- mime_multipart multipart_related?
- mime_0_2 multipart_related?
-
Enables mime ^0.2.6
- tokio uds?
- hyper-openssl not mac win ios tls?
-
Enables hyper-openssl ^0.9.0
- hyper-tls mac win ios tls?
-
Enables hyper-tls ^0.5
- native-tls mac win ios tls?
- openssl not mac win ios tls?