-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathCargo.toml
48 lines (43 loc) · 1.41 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[package]
name = "libdeflater"
version = "1.23.0"
authors = ["Adam Kewley <[email protected]>"]
edition = "2018"
license = "Apache-2.0"
readme = "README.md"
keywords = ["gzip", "zlib", "deflate", "encoding"]
categories = ["compression", "api-bindings"]
repository = "https://github.com/adamkewley/libdeflater"
homepage = "https://github.com/adamkewley/libdeflater"
description = """
Bindings to libdeflate for DEFLATE (de)compression exposed as non-streaming buffer
operations. Contains bindings for raw deflate, zlib, and gzip data.
"""
exclude = [
".git*",
".travis.yml",
"bench_data/",
"examples/",
"scripts/",
]
[dependencies]
libdeflate-sys = { version = "1.23.0", path = "libdeflate-sys" }
[dev-dependencies]
criterion = "0.3"
flate2 = "1.0.11"
adler32 = "1.2.0"
[[bench]]
name = "benchmarks"
harness = false
[features]
# Makes libdeflate use Rust's allocator instead of the libc one.
# This is useful when Rust is preconfigured to a custom global allocator
# (e.g. pool-based, or a tracking one, or something else entirely).
use_rust_alloc = []
# Builds libdeflate in a freestanding mode (no reliance on libc).
# This is useful for targets that don't have a C stdlib (e.g. wasm32-unknown-unknown).
freestanding = ["libdeflate-sys/freestanding", "use_rust_alloc"]
# Link to system/external libdeflate library when available, instead of
# building it from source.
dynamic = ["libdeflate-sys/dynamic"]
[workspace]