Cargo Features

[dependencies]
tpnote = { version = "1.24.10", default-features = false, features = ["message-box", "read-clipboard", "viewer", "lang-detection", "renderer"] }
default = lang-detection, message-box, read-clipboard, renderer, viewer

These default features are set whenever tpnote is added without default-features = false somewhere in the dependency tree.

message-box default

To disable features: cargo build --no-default-features If you can do away with error message popup boxes (for example on a headless system), no GTK is required. In this case all error messages will appear on the console from where you started Tp-Note in stderr only. Disable this feature if you do not want error message boxes.

Enables msgbox and notify-rust

Affects logger::ALERT_DIALOG_TITLE_LINE

read-clipboard default = wl-clipboard-rs

Enables clipboard-rs

viewer default

Enables webbrowser, httparse, httpdate, notify, and notify-debouncer-mini, viewer of tpnote-lib

Affects settings::ENV_VAR_TPNOTE_BROWSER, settings::LAUNCH_VIEWER

lang-detection default

This feature declaration is forwarded to tpnote_lib and not used in this crate.

Enables lang-detection of tpnote-lib

renderer default

This feature declaration is used in this crate and also forwarded to tpnote_lib.

Enables renderer of tpnote-lib

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.

wl-clipboard-rs unix read-clipboard