-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
33 lines (27 loc) · 1.04 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
[package]
name = "defity"
version = "0.4.1"
authors = ["Nguyễn Hồng Quân <[email protected]>"]
license = "Apache-2.0"
homepage = "https://github.com/hongquan/Defity"
repository = "https://github.com/hongquan/Defity.git"
edition = "2021"
exclude = ["*.so", "*.bin", "__pycache__", ".github"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "defity"
# "cdylib" is necessary to produce a shared library for Python to import from.
#
# Downstream Rust code (including code in `bin/`, `examples/`, and `tests/`) will not be able
# to `use defity;` unless the "rlib" or "lib" crate type is also included, e.g.:
# crate-type = ["cdylib", "rlib"]
crate-type = ["cdylib"]
[dependencies]
tree_magic_mini = "3.1.4"
[dependencies.pyo3]
version = "0.22.0"
features = ["extension-module"]
[target.'cfg(windows)'.dependencies]
tree_magic_mini = { version = "3.1.4", features = [ "with-gpl-data" ] }
[target.'cfg(macos)'.dependencies]
tree_magic_mini = { version = "3.1.4", features = [ "with-gpl-data" ] }