Cargo Features

loro-internal has no features set by default.

[dependencies]
loro-internal = { version = "0.5.1", features = ["wasm", "test_utils"] }
wasm = js-sys, serde-wasm-bindgen, wasm-bindgen

"wasm" will use utf-16 index by default when using text related stuff; But it'll use utf-8 encoding internally.

Enables wasm of loro-common

Affects change::get_sys_timestamp, value::wasm

test_utils = arbitrary, rand, tabled

whether to use list slice instead of raw str in text container

Affects loro-internal::fuzz

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.

rand test_utils?
tabled test_utils?

Enables tabled ^0.10.0

wasm-bindgen wasm?

Enables wasm-bindgen =0.2.90

serde-wasm-bindgen wasm?

Enables serde-wasm-bindgen ^0.5.0

js-sys wasm?
arbitrary test_utils?