Cargo Features
[dependencies]
sonic = { version = "0.6.1", default-features = false, features = ["nightly", "ws", "serde_codegen"] }
- default = serde_codegen
-
The
serde_codegen
feature is set by default wheneversonic
is added without
somewhere in the dependency tree.default-features = false - nightly = serde_macros
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_macros nightly?
- ws implicit feature
-
Enables ws ^0.5.0
ws:
Lightweight, event-driven WebSockets for Rust
- serde_codegen build default
-
Enables serde_codegen ^0.8.2