Cargo Features
Tophat has no features set by default.
[dependencies]
tophat = { version = "0.3.0", features = ["cors", "router", "identity"] }
- default
-
Nothing enabled by default
- cors = headers
-
Affects
server::cors
… - router = path-tree, type-map
-
Affects
server::router
… - identity = cookie, jsonwebtoken, serde, time
-
Affects
server::identity
…
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.
- path-tree router?
-
Enables path-tree ^0.1.12
for router
- type-map router?
-
Enables type-map ^0.3.0
-
Enables cookie ^0.14.3
for identity
- jsonwebtoken identity?
-
Enables jsonwebtoken ^7.2.0
- serde identity?
- time identity?
-
Enables time ^0.2.23
- headers cors?
-
Enables headers ^0.3.2
for cors (maybe use elsewhere?)