synckit-core 0.3.0

High-performance sync engine for local-first applications
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "synckit-core"
version = "0.3.0"
authors = ["Daniel Bitengo"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-performance sync engine for local-first applications"
readme = "README.md"
keywords = [
    "sync",
    "crdt",
    "local-first",
    "offline-first",
    "realtime",
]
categories = [
    "wasm",
    "data-structures",
    "network-programming",
]
license = "MIT"
repository = "https://github.com/Dancode-188/synckit"

[features]
advanced = [
    "core",
    "counters",
    "sets",
    "fractional-index",
]
core = []
core-lite = ["wee_alloc"]
counters = ["core"]
datetime = ["chrono"]
default = ["core-lite"]
fractional-index = ["core"]
full = [
    "core",
    "datetime",
    "protocol-binary",
    "text-crdt",
    "counters",
    "sets",
    "fractional-index",
    "wee_alloc",
]
protocol = ["protocol-binary"]
protocol-binary = [
    "prost",
    "bytes",
    "base64",
    "chrono",
    "prost-build",
    "protoc-bin-vendored",
]
sets = ["core"]
text = [
    "core",
    "text-crdt",
]
text-crdt = [
    "core",
    "ropey",
    "unicode-segmentation",
]
wasm = [
    "wasm-bindgen",
    "web-sys",
    "js-sys",
    "console_error_panic_hook",
]

[lib]
name = "synckit_core"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[[test]]
name = "property_tests"
path = "tests/property_tests.rs"

[[bench]]
name = "delta_bench"
path = "benches/delta_bench.rs"
harness = false

[[bench]]
name = "fugue_bench"
path = "benches/fugue_bench.rs"
harness = false
required-features = ["text-crdt"]

[[bench]]
name = "lww_bench"
path = "benches/lww_bench.rs"
harness = false

[[bench]]
name = "vector_clock_bench"
path = "benches/vector_clock_bench.rs"
harness = false

[dependencies.base64]
version = "0.22"
optional = true

[dependencies.bytes]
version = "1.5"
optional = true

[dependencies.chrono]
version = "0.4"
features = [
    "serde",
    "wasmbind",
]
optional = true

[dependencies.console_error_panic_hook]
version = "0.1"
optional = true

[dependencies.js-sys]
version = "0.3"
optional = true

[dependencies.prost]
version = "0.14"
optional = true

[dependencies.ropey]
version = "1.6"
optional = true

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

[dependencies.unicode-segmentation]
version = "1.10"
optional = true

[dependencies.uuid]
version = "1.0"
features = [
    "v4",
    "serde",
    "js",
]

[dependencies.wasm-bindgen]
version = "=0.2.106"
optional = true

[dependencies.web-sys]
version = "0.3"
optional = true

[dependencies.wee_alloc]
version = "0.4.5"
optional = true

[dev-dependencies.criterion]
version = "0.8"

[dev-dependencies.proptest]
version = "1.0"

[build-dependencies.prost-build]
version = "0.14"
optional = true

[build-dependencies.protoc-bin-vendored]
version = "3.0"
optional = true

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true

[profile.release.package."*"]
opt-level = 3

[profile.wasm-release]
opt-level = "z"
lto = "fat"
codegen-units = 1
panic = "abort"
overflow-checks = false
inherits = "release"
strip = "symbols"