149 lines
2.7 KiB
TOML
149 lines
2.7 KiB
TOML
# 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 = "2018"
|
|
rust-version = "1.60"
|
|
name = "similar"
|
|
version = "2.7.0"
|
|
authors = [
|
|
"Armin Ronacher <armin.ronacher@active-4.com>",
|
|
"Pierre-Étienne Meunier <pe@pijul.org>",
|
|
"Brandon Williams <bwilliams.eng@gmail.com>",
|
|
]
|
|
build = false
|
|
exclude = ["assets/*"]
|
|
autolib = false
|
|
autobins = false
|
|
autoexamples = false
|
|
autotests = false
|
|
autobenches = false
|
|
description = "A diff library for Rust"
|
|
readme = "README.md"
|
|
keywords = [
|
|
"diff",
|
|
"difference",
|
|
"patience",
|
|
"compare",
|
|
"changes",
|
|
]
|
|
license = "Apache-2.0"
|
|
repository = "https://github.com/mitsuhiko/similar"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
|
|
[profile.release]
|
|
debug = 2
|
|
|
|
[lib]
|
|
name = "similar"
|
|
path = "src/lib.rs"
|
|
|
|
[[example]]
|
|
name = "close-matches"
|
|
path = "examples/close-matches.rs"
|
|
required-features = ["text"]
|
|
|
|
[[example]]
|
|
name = "large"
|
|
path = "examples/large.rs"
|
|
required-features = ["text"]
|
|
|
|
[[example]]
|
|
name = "nonstring"
|
|
path = "examples/nonstring.rs"
|
|
|
|
[[example]]
|
|
name = "original-slices"
|
|
path = "examples/original-slices.rs"
|
|
required-features = ["text"]
|
|
|
|
[[example]]
|
|
name = "patience"
|
|
path = "examples/patience.rs"
|
|
required-features = [
|
|
"text",
|
|
"inline",
|
|
]
|
|
|
|
[[example]]
|
|
name = "serde"
|
|
path = "examples/serde.rs"
|
|
required-features = [
|
|
"text",
|
|
"serde",
|
|
]
|
|
|
|
[[example]]
|
|
name = "terminal"
|
|
path = "examples/terminal.rs"
|
|
required-features = ["text"]
|
|
|
|
[[example]]
|
|
name = "terminal-inline"
|
|
path = "examples/terminal-inline.rs"
|
|
required-features = [
|
|
"text",
|
|
"inline",
|
|
"bytes",
|
|
]
|
|
|
|
[[example]]
|
|
name = "udiff"
|
|
path = "examples/udiff.rs"
|
|
required-features = [
|
|
"text",
|
|
"bytes",
|
|
]
|
|
|
|
[dependencies.bstr]
|
|
version = "1.5.0"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.serde]
|
|
version = "1.0.130"
|
|
features = ["derive"]
|
|
optional = true
|
|
|
|
[dependencies.unicode-segmentation]
|
|
version = "1.7.1"
|
|
optional = true
|
|
|
|
[dependencies.web-time]
|
|
version = "1.1"
|
|
optional = true
|
|
|
|
[dev-dependencies.console]
|
|
version = "0.15.0"
|
|
|
|
[dev-dependencies.insta]
|
|
version = "1.10.0"
|
|
|
|
[dev-dependencies.serde_json]
|
|
version = "1.0.68"
|
|
|
|
[features]
|
|
bytes = [
|
|
"bstr",
|
|
"text",
|
|
]
|
|
default = ["text"]
|
|
inline = ["text"]
|
|
text = []
|
|
unicode = [
|
|
"text",
|
|
"unicode-segmentation",
|
|
"bstr?/unicode",
|
|
"bstr?/std",
|
|
]
|
|
wasm32_web_time = ["web-time"]
|