-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCargo.toml
More file actions
35 lines (29 loc) · 1.12 KB
/
Cargo.toml
File metadata and controls
35 lines (29 loc) · 1.12 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
[package]
name = "defity"
version = "0.7.0"
authors = ["Nguyễn Hồng Quân <ng.hong.quan@gmail.com>"]
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.2.0"
[dependencies.pyo3]
version = "0.26.0"
features = [ "extension-module" ]
[target.'cfg(windows)'.dependencies]
tree_magic_db = { version = "3.0.1" }
tree_magic_mini = { version = "3.2.0", features = [ "with-gpl-data" ] }
[target.'cfg(macos)'.dependencies]
tree_magic_db = { version = "3.0.1" }
tree_magic_mini = { version = "3.2.0", features = [ "with-gpl-data" ] }