-
Notifications
You must be signed in to change notification settings - Fork 114
/
Cargo.toml
83 lines (74 loc) · 2.22 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[package]
authors = ["Alexandre Bury <[email protected]>"]
build = "build.rs"
categories = [
"api-bindings",
"compression",
]
description = "Low-level bindings for the zstd compression library."
keywords = [
"zstd",
"zstandard",
"compression",
]
license = "MIT/Apache-2.0"
links = "zstd"
name = "zstd-sys"
readme = "Readme.md"
repository = "https://github.com/gyscos/zstd-rs"
version = "2.0.10+zstd.1.5.6"
edition = "2018"
rust-version = "1.64"
# Use include instead of exclude, as a (temporary)
# workaround for https://github.com/rust-lang/cargo/issues/9555
include = [
"/LICENSE*",
"!/*.sh",
"/build.rs",
"/*.h",
"/src/",
"/wasm-shim/**/*.h",
"/zstd/LICENSE",
"/zstd/COPYING",
"/zstd/lib/**/*.c",
"/zstd/lib/**/*.h",
"/zstd/lib/**/*.S",
]
# exclude = [
# "zstd",
# "!zstd/LICENSE",
# "!zstd/COPYING",
# "!zstd/lib/**/**.h",
# "!zstd/lib/**/**.c",
# ]
[package.metadata.docs.rs]
features = ["experimental"]
[lib]
doctest = false # Documentation is for C code, good luck testing that.
[build-dependencies.bindgen]
optional = true
version = "0.69"
default-features = false
features = ["runtime", "which-rustfmt"]
[build-dependencies.pkg-config]
version = "0.3"
[build-dependencies.cc]
version = "1.0.45"
features = ["parallel"]
[features]
default = ["legacy", "zdict_builder"]
debug = [] # Enable zstd debug logs
experimental = [] # Expose experimental ZSTD API
legacy = [] # Enable legacy ZSTD support (for versions < zstd-0.8)
non-cargo = [] # Silence cargo-specific build flags
pkg-config = [] # Use pkg-config to build the zstd C library.
std = [] # Deprecated: we never use types from std.
zstdmt = [] # Enable multi-thread support (with pthread)
thin = [] # Optimize binary by size
no_asm = [] # Disable ASM files (only on amd64 for decompression)
zdict_builder = [] # Enable dictionary building (dictionary _using_ is always supported).
no_wasm_shim = [] # Disable wasm shims (in case your wasm toolchain includes a C stdlib).
# These two are for cross-language LTO.
# Will only work if `clang` is used to build the C library.
fat-lto = [] # Enable fat-lto, will override thin-lto if specified
thin-lto = [] # Enable thin-lto, will fallback to fat-lto if not supported