-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathCargo.toml
More file actions
61 lines (54 loc) · 1.36 KB
/
Copy pathCargo.toml
File metadata and controls
61 lines (54 loc) · 1.36 KB
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
[package]
name = "magic-sys"
description = "Declarations for the `libmagic` C library"
keywords = [
"magic",
"file",
"ffi",
"bindings",
]
categories = [
"external-ffi-bindings",
"no-std",
]
repository = "https://github.com/robo9k/rust-magic-sys.git"
license = "MIT OR Apache-2.0"
version = "0.4.3"
authors = ["robo9k <robo9k@symlink.io>"]
links = "magic"
include = [
"src/",
"build.rs",
]
edition = '2021'
rust-version = "1.64"
[badges]
maintenance = { status = "passively-maintained" }
[features]
default = ["pkg-config", "vcpkg"]
## Enable `libmagic` v5.40 API
v5-40 = []
## Enable `libmagic` v5.44 API
v5-44 = ["v5-40"]
## Enable `libmagic` v5.45 API
v5-45 = ["v5-44"]
## Enable `libmagic` v5.46 API
v5-46 = ["v5-45"]
[build-dependencies]
## Enable build using `pkg-config`
pkg-config = { version = "0.3.27", optional = true }
## Enable build using `vcpkg`
vcpkg = { version = "0.2.15", optional = true }
[package.metadata.vcpkg]
git = "https://github.com/microsoft/vcpkg"
rev = "b6ebb6b65b9d2c388582c2d252963f37b1aad18a" # https://github.com/microsoft/vcpkg/pull/48281
dependencies = ["libmagic"]
[package.metadata.vcpkg.target]
x86_64-pc-windows-msvc = { triplet = "x64-windows-static-md" }
[package.metadata]
msrv = "1.64.0"
[package.metadata.docs.rs]
features = ["v5-46"]
no-default-features = true
targets = []
rustdoc-args = ["--cfg", "docsrs"]