-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Cargo.toml
76 lines (62 loc) · 2.86 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
[package]
name = "cramjam-python"
version = "2.9.0"
authors = ["Miles Granger <miles59923@gmail.com>"]
edition = "2021"
license = "MIT"
description = "Thin Python bindings to de/compression algorithms in Rust"
readme = "README.md"
exclude = ["benchmarks/", "benchmark-requirements.txt"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "cramjam"
crate-type = ["cdylib"]
[features]
default = ["extension-module", "snappy", "lz4", "bzip2", "brotli", "xz", "zstd", "gzip", "zlib", "deflate", "blosc2", "igzip", "ideflate", "izlib"]
extension-module = ["pyo3/extension-module"]
generate-import-lib = ["pyo3/generate-import-lib"] # needed for Windows PyPy builds
snappy = ["libcramjam/snappy"]
lz4 = ["libcramjam/lz4"]
bzip2 = ["libcramjam/bzip2"]
brotli = ["libcramjam/brotli"]
zstd = ["libcramjam/zstd"]
xz = ["xz-static"]
xz-static = ["libcramjam/xz-static"]
xz-shared = ["libcramjam/xz-shared"]
# ISA-L stuff
igzip = ["igzip-static"]
igzip-static = ["libcramjam/igzip-static"]
igzip-shared = ["libcramjam/igzip-shared"]
ideflate = ["ideflate-static"]
ideflate-static = ["libcramjam/ideflate-static"]
ideflate-shared = ["libcramjam/ideflate-shared"]
izlib = ["izlib-static"]
izlib-static = ["libcramjam/izlib-static"]
izlib-shared = ["libcramjam/izlib-shared"]
use-system-isal-static = ["libcramjam/use-system-isal", "libcramjam/igzip-static"]
use-system-isal-shared = ["libcramjam/use-system-isal", "libcramjam/igzip-shared"]
gzip = ["gzip-static"]
gzip-static = ["libcramjam/gzip-static"]
gzip-shared = ["libcramjam/gzip-shared"]
zlib = ["zlib-static"]
zlib-static = ["libcramjam/zlib-static"]
zlib-shared = ["libcramjam/zlib-shared"]
deflate = ["deflate-static"]
deflate-static = ["libcramjam/deflate-static"]
deflate-shared = ["libcramjam/deflate-shared"]
blosc2 = ["blosc2-static"]
blosc2-static = ["libcramjam/blosc2-static"]
blosc2-shared = ["libcramjam/blosc2-shared"]
use-system-blosc2-static = ["libcramjam/use-system-blosc2", "libcramjam/blosc2-static"]
use-system-blosc2-shared = ["libcramjam/use-system-blosc2", "libcramjam/blosc2-shared"]
wasm32-compat = ["libcramjam/wasm32-compat"]
[dependencies]
pyo3 = { version = "^0.22", default-features = false, features = ["macros"] }
libcramjam = { version = "^0.6", default-features = false }
[build-dependencies]
pyo3-build-config = "^0.22"
[profile.release]
strip = true
lto = "fat"
codegen-units = 1
opt-level = 3