Cargo Features

[dependencies]
hi-doc-jumprope = { version = "1.2.0", default-features = false, features = ["ddos_protection", "wchar_conversion", "line_conversion", "buffered"] }
default = ddos_protection

The ddos_protection feature is set by default whenever hi-doc-jumprope is added without default-features = false somewhere in the dependency tree.

ddos_protection default

ddos_protection makes jumprope use a better RNG algorithm to avoid DOS attacks

Enables std and std_rng of rand

wchar_conversion

wchar_conversion adds support for converting wchar positions (eg from JS or ObjC) into local unicode offsets.

line_conversion

Line conversion adds support for editing using line/column offsets instead of character offsets.

buffered

TODO: Remove me for 2.0 - the buffered feature is no longer needed.