[package] name = "jumprope" version = "1.1.2" authors = ["Joseph Gentle "] edition = "2021" description = "Simple, fast rope (fancy string) library built on top of Skiplists" repository = "https://github.com/josephg/jumprope-rs" license = "ISC OR Apache-2.0" exclude = [ "benchmark_data/*", ".github/**", ] [workspace] members = ["jumprope-wasm", "rope_benches", "crdt-testdata"] [features] default = ["ddos_protection"] # ddos_protection makes jumprope use a better RNG algorithm to avoid DOS # attacks ddos_protection = [] # wchar_conversion adds support for converting wchar positions (eg from JS or # ObjC) into local unicode offsets. wchar_conversion = [] # Line conversion adds support for editing using line/column offsets instead of character offsets. line_conversion = [] # TODO: Remove me for 2.0 - the buffered feature is no longer needed. buffered = [] [dependencies] rand = { version = "0.8", features = ["small_rng"] } str_indices = "0.4.0" [dev-dependencies] criterion = "0.4.0" crdt-testdata = { path = "./crdt-testdata" } [[bench]] name = "benches" harness = false [profile.release] lto = true codegen-units = 1 [profile.release.package.jumprope-wasm] #opt-level = "s" opt-level = 2 [package.metadata.docs.rs] features = ["wchar_conversion"]