-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
52 lines (46 loc) · 1.03 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
[package]
name = "magic-rs"
version = "0.2.0"
description = "Use rust infer crate to rewrite python-magic library"
authors = [
"vvanglro <vvanglro@gmail.com>"
]
license = "MIT"
edition = "2021"
keywords = ["filetype", "mime", "libmagic"]
readme = "README.md"
homepage = "https://github.com/rp-libs/magic-rs"
repository = "https://github.com/rp-libs/magic-rs"
include = [
"/Cargo.toml",
"/pyproject.toml",
"/LICENSE",
"/README.md",
"/src",
"/python/magic_rs",
"/tests",
"/.cargo",
"/build.rs",
"!__pycache__",
"!tests/.pytest_cache",
"!tests/.benchmarks",
"!tests/benchmarks",
"!*.so",
"!testdata",
]
[lib]
name = "_magic_rs"
crate-type = ["cdylib"]
[dependencies]
infer = "0.15.0"
pyo3 = { version = "=0.20.1", features = ["extension-module", "generate-import-lib"] }
[build-dependencies]
pyo3-build-config = { version = "=0.20.1", features = ["resolve-config"] }
[profile.release]
codegen-units = 1
debug = false
incremental = false
lto = "fat"
opt-level = 3
panic = "abort"
strip = true