Cargo Features
[dependencies]
web-rwkv = { version = "0.10.2", default-features = false, features = ["classic", "native", "web", "subgroup-ops", "tokio", "trace"] }
- default = native
-
The
native
feature is set by default wheneverweb-rwkv
is added without
somewhere in the dependency tree.default-features = false - classic = tokio
- native default = subgroup-ops, tokio
- web
- subgroup-ops native
-
Enables subgroup operations in the kernels. Accelerates the inference on some device.
- tokio classic? native
-
Enables tokio's multi-threaded runtime. Doesn't work on web platforms.
Enables tokio
- trace = tracing, tracing-subscriber, tracing-tracy
-
Enables performance tracing.
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.