Cargo Features
[dependencies]
r1-api-layer = { version = "1.0.2", default-features = false, features = ["client", "server", "cli", "conversion"] }
- default = client, server
-
These default features are set whenever
r1-api-layer
is added without
somewhere in the dependency tree.default-features = false - client default = hyper, hyper-openssl, hyper-tls, native-tls, openssl, url
-
Affects
r1-api-layer::client
…Required by the openapi_client binary
- server default = hyper, lazy_static, percent-encoding, regex, serde_ignored, url
-
Affects
r1-api-layer::server
,r1-api-layer::context
… - cli = anyhow, clap-verbosity-flag, dialoguer, simple_logger, structopt, tokio
-
Required by the openapi_client binary
- 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.
- hyper client server
-
Enables hyper ^0.14
Common between server and client features
- serde_ignored server
- url client server
- lazy_static server
-
Enables lazy_static
Client-specific
Server, and client callback-specific - percent-encoding server
- regex server
- anyhow cli?
-
Enables anyhow
CLI-specific
- clap-verbosity-flag cli?
-
Enables clap-verbosity-flag ^0.3
- simple_logger cli?
-
Enables simple_logger ^2.0
- structopt cli?
- tokio cli?
-
Enables tokio ^0.2
- dialoguer cli?
-
Enables dialoguer ^0.8
- frunk conversion?
-
Enables frunk
Conversion
- frunk_derives conversion?
- frunk_core conversion?
- frunk-enum-derive conversion?
- frunk-enum-core conversion?
- native-tls mac win ios client
- hyper-openssl not mac win ios client
-
Enables hyper-openssl ^0.9
- hyper-tls mac win ios client
-
Enables hyper-tls ^0.5
- openssl not mac win ios client