Cargo Features
[dependencies]
hai_pal = { version = "0.7.0", default-features = false, features = ["desktop", "web"] }
- default = desktop
-
The
desktop
feature is set by default wheneverhai_pal
is added without
somewhere in the dependency tree.default-features = false - desktop default = dotenv, env_logger, node-resolve, parking_lot, tokio
-
Enables hardware-lock-elision of parking_lot
- web = console_error_panic_hook, console_log, parking_lot
-
Affects
env::setup
,logger::setup
,platform::setup
…
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.
- parking_lot desktop web?
- dotenv desktop
-
Enables dotenv
deps for desktop platforms
- env_logger desktop
- node-resolve desktop
- tokio desktop
- console_error_panic_hook web?
-
Enables console_error_panic_hook
deps for web
- console_log web?
-
Enables console_log ^0.2.0