-
Notifications
You must be signed in to change notification settings - Fork 97
/
Cargo.toml
90 lines (79 loc) · 3.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
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
[package]
name = "stl-thumb"
version = "0.5.0"
authors = ["Tyler Anderson <[email protected]>"]
description = "A fast lightweight thumbnail generator for 3D model(STL, OBJ, 3MF) files"
readme = "README.md"
repository = "https://github.com/unlimitedbacon/stl-thumb"
license = "MIT"
homepage = "https://github.com/unlimitedbacon/stl-thumb"
keywords = ["3d", "3dprinting", "stl", "obj", "3mf"]
categories = ["command-line-utilities", "graphics"]
exclude = [
"test_data/*"
]
edition = "2021"
[lib]
name = "stl_thumb"
path = "src/lib.rs"
crate-type = ["lib", "cdylib", "staticlib"]
[[bin]]
name = "stl-thumb"
path = "src/main.rs"
[dependencies]
ahash = "0.8.11"
cgmath = { version = "0.18.0", features = ["mint"] }
clap = "4.5.8"
glium = "0.32"
image = "0.25.1"
libc = "0.2"
log = "0.4.17"
mint = "0.5.9"
stderrlog = "0.6.0"
stl_io = "0.8.0"
tobj = "4.0.2"
winit = "0.30.3"
threemf = "0.6.0"
#[patch.crates-io]
#glutin = { git = "https://github.com/rust-windowing/glutin.git", rev = "07c461e" }
[build-dependencies]
cbindgen = "0.27.*"
[dev-dependencies]
criterion = "0.5.1"
[[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 3D model(STL, OBJ, 3MF) files. \
It can show previews for 3D model 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.generate-rpm]
assets = [
{ source = "./target/release/stl-thumb", dest = "/usr/bin/stl-thumb", mode = "755" },
{ source = "./target/release/libstl_thumb.so", dest = "/usr/lib64/libstl_thumb.so", mode = "755" },
{ source = "./target/release/libstl_thumb.a", dest = "/usr/lib64/libstl_thumb.a", mode = "644" },
{ source = "libstl_thumb.h", dest = "/usr/include/libstl_thumb.h", mode = "644" },
{ source = "stl-thumb.thumbnailer", dest = "/usr/share/thumbnailers/stl-thumb.thumbnailer", mode = "644" },
{ source = "stl-thumb-mime.xml", dest = "/usr/share/mime/packages/stl-thumb-mime.xml", mode = "644" },
{ source = "README.md", dest = "/usr/share/doc/stl-thumb/README.md", doc = true, mode = "644" }
]