view rust/hg-core/Cargo.toml @ 44519:52d40f8fb82d

rust-matchers: add function to generate a regex matcher function This function will be used to help build the upcoming `IncludeMatcher`. While Re2 is still used and behind a feature flag, this function returns an error meant for fallback in the default case. Differential Revision: https://phab.mercurial-scm.org/D7922
author Raphaël Gomès <rgomes@octobus.net>
date Fri, 17 Jan 2020 11:29:33 +0100
parents 8f7c6656ac79
children fe7d2cf0b429
line wrap: on
line source

[package]
name = "hg-core"
version = "0.1.0"
authors = ["Georges Racinet <gracinet@anybox.fr>"]
description = "Mercurial pure Rust core library, with no assumption on Python bindings (FFI)"
edition = "2018"
build = "build.rs"

[lib]
name = "hg"

[dependencies]
byteorder = "1.3.1"
hex = "0.4.0"
lazy_static = "1.3.0"
libc = { version = "0.2.66", optional = true }
memchr = "2.2.0"
rand = "0.6.5"
rand_pcg = "0.1.1"
rayon = "1.3.0"
regex = "1.1.0"
twox-hash = "1.5.0"
same-file = "1.0.6"

[dev-dependencies]
clap = "*"
memmap = "0.7.0"
pretty_assertions = "0.6.1"
tempfile = "3.1.0"

[build-dependencies]
cc = { version = "1.0.48", optional = true }

[features]
default = []
with-re2 = ["cc", "libc"]