forked from unlimitedbacon/stl-thumb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
97 lines (82 loc) · 2.71 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
[package]
name = "stl-thumb"
version = "0.5.0"
authors = ["Tyler Anderson <unlimitedbacon@gmail.com>"]
description = "A fast lightweight thumbnail generator for STL files"
readme = "README.md"
repository = "https://github.com/unlimitedbacon/stl-thumb"
license = "MIT"
homepage = "https://github.com/unlimitedbacon/stl-thumb"
keywords = ["3d", "3dprinting", "stl"]
categories = ["command-line-utilities", "graphics"]
exclude = [
"test_data/*"
]
[profile.release]
lto = true
strip = true
codegen-units = 1
[lib]
name = "stl_thumb"
path = "src/lib.rs"
crate-type = ["lib", "cdylib", "staticlib"]
[[bin]]
name = "stl-thumb"
path = "src/main.rs"
[dependencies]
ahash = "0.7.6"
cgmath = { version = "0.18.0", features = ["mint"] }
clap = "3.1.18"
glium = "0.32"
image = "0.24"
libc = "0.2"
log = "0.4.17"
mint = "0.5.9"
stderrlog = "0.5.1"
stl_io = "0.6.0"
tobj = "3.2.3"
#[patch.crates-io]
#glutin = { git = "https://github.com/rust-windowing/glutin.git", rev = "07c461e" }
[build-dependencies]
cbindgen = "0.23.*"
[dev-dependencies]
criterion = "0.3"
[[bench]]
name = "cube"
harness = false
[[bench]]
name = "benchy"
harness = false
[[bench]]
name = "shipwreck"
harness = false
[package.metadata.deb]
license-file = ["LICENSE", "3"]
depends = "libgl1, libc6, libgcc1, libosmesa6-dev"
extended-description = """\
Stl-thumb is a fast lightweight thumbnail generator for STL files. \
It can show previews for STL files in your file manager on Linux and Windows. \
It is written in Rust and uses OpenGL. """
section = "graphics"
priority = "optional"
assets = [
["target/release/stl-thumb", "usr/bin/", "755"],
["target/release/libstl_thumb.so", "usr/lib/", "755"],
["target/release/libstl_thumb.a", "usr/lib/", "644"],
["stl-thumb.thumbnailer", "usr/share/thumbnailers/", "644"],
["stl-thumb-mime.xml", "usr/share/mime/packages/", "644"],
["libstl_thumb.h", "usr/include/", "644"],
["README.md", "usr/share/doc/stl-thumb/", "644"],
]
[package.metadata.rpm]
package = "stl-thumb"
[package.metadata.rpm.cargo]
buildflags = ["--release"]
[package.metadata.rpm.targets]
stl-thumb = { path = "/usr/bin/stl-thumb" }
"libstl_thumb.so" = { path = "/usr/lib64/libstl_thumb.so" }
"libstl_thumb.a" = { path = "/usr/lib64/libstl_thumb.a", mode = "644" }
"../../libstl_thumb.h" = { path = "/usr/include/libstl_thumb.h", mode = "644"}
"../../stl-thumb.thumbnailer" = { path = "/usr/share/thumbnailers/stl-thumb.thumbnailer", mode = "644"}
"../../stl-thumb-mime.xml" = { path = "/usr/share/mime/packages/stl-thumb-mime.xml", mode = "644"}
"../../README.md" = { path = "/usr/share/doc/stl-thumb/README.md", mode = "644"}