103 lines
3 KiB
TOML
103 lines
3 KiB
TOML
[package]
|
|
name = "reconcile-text"
|
|
description = "Intelligent 3-way text merging with automated conflict resolution"
|
|
version = "0.4.10"
|
|
rust-version = "1.85"
|
|
authors = ["Andras Schmelczer <andras@schmelczer.dev>"]
|
|
edition = "2024"
|
|
license = "MIT"
|
|
readme = "README.md"
|
|
repository = "https://github.com/schmelczer/reconcile"
|
|
homepage = "https://schmelczer.dev/reconcile"
|
|
keywords = ["merge", "OT", "CRDT", "3-way", "diff"]
|
|
categories = ["wasm", "text-processing", "text-editors", "algorithms", "data-structures"]
|
|
exclude = ["reconcile-js", ".*", "examples/website"]
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "rlib"]
|
|
|
|
[[example]]
|
|
name = "merge-file"
|
|
path = "examples/merge-file.rs"
|
|
|
|
[dependencies]
|
|
serde = { version = "1.0.219", optional = true, features = ["derive"] }
|
|
|
|
wasm-bindgen = { version = "0.2.99", optional = true }
|
|
|
|
# The `console_error_panic_hook` crate provides better debugging of panics by
|
|
# logging them with `console.error`. This is great for development, but requires
|
|
# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
|
|
# code size when deploying.
|
|
console_error_panic_hook = { version = "0.1.7", optional = true }
|
|
|
|
wee_alloc = { version = "0.4.2", optional = true }
|
|
|
|
[features]
|
|
default = []
|
|
serde = [ "dep:serde" ]
|
|
wasm = [ "dep:wasm-bindgen", "dep:wee_alloc" ]
|
|
console_error_panic_hook = [ "dep:console_error_panic_hook" ]
|
|
|
|
[dev-dependencies]
|
|
insta = "1.42.2"
|
|
pretty_assertions = "1.4.1"
|
|
serde = { version = "1.0.219", features = ["derive"] }
|
|
serde_yaml = "0.9.34"
|
|
test-case = "3.3.1"
|
|
wasm-bindgen-test = "0.3.49"
|
|
|
|
[profile.release]
|
|
codegen-units = 1
|
|
lto = true
|
|
opt-level = 3
|
|
strip = "symbols"
|
|
|
|
[package.metadata.wasm-pack.profile.release]
|
|
wasm-opt = ['-O4', '--enable-bulk-memory']
|
|
|
|
[lints.rust]
|
|
unsafe_code = "forbid"
|
|
rust_2018_idioms = { level = "warn", priority = -1 }
|
|
missing_debug_implementations = "warn"
|
|
|
|
[lints.clippy]
|
|
await_holding_lock = "warn"
|
|
dbg_macro = "warn"
|
|
empty_enum = "warn"
|
|
enum_glob_use = "warn"
|
|
exit = "warn"
|
|
filter_map_next = "warn"
|
|
fn_params_excessive_bools = "warn"
|
|
if_let_mutex = "warn"
|
|
imprecise_flops = "warn"
|
|
inefficient_to_string = "warn"
|
|
linkedlist = "warn"
|
|
lossy_float_literal = "warn"
|
|
macro_use_imports = "warn"
|
|
match_wildcard_for_single_variants = "warn"
|
|
mem_forget = "warn"
|
|
needless_borrow = "warn"
|
|
needless_continue = "warn"
|
|
option_option = "warn"
|
|
rest_pat_in_fully_bound_structs = "warn"
|
|
str_to_string = "warn"
|
|
suboptimal_flops = "warn"
|
|
todo = "warn"
|
|
uninlined_format_args = "warn"
|
|
unnested_or_patterns = "warn"
|
|
unused_self = "warn"
|
|
verbose_file_reads = "warn"
|
|
|
|
large_stack_arrays = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/13774
|
|
|
|
# Silly lints
|
|
implicit_return = { level = "allow", priority = 1 }
|
|
question_mark_used = { level = "allow", priority = 1 }
|
|
struct_field_names = { level = "allow", priority = 1 }
|
|
single_char_lifetime_names = { level = "allow", priority = 1 }
|
|
single_call_fn = { level = "allow", priority = 1 }
|
|
similar_names = { level = "allow", priority = 1 }
|
|
missing_docs_in_private_items = { level = "allow", priority = 1 }
|
|
|
|
pedantic = { level = "warn", priority = 0 }
|