-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
53 lines (47 loc) · 1.5 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
[package]
# Project information
name = "puny2d"
version = "0.0.2"
authors = ["Christoph 'Youka' Spanknebel"]
description = "Rusty 2d graphics software renderer library."
# Project type
edition = "2018"
# Documentation
keywords = ["2d", "graphics", "software", "renderer"]
categories = ["graphics", "multimedia::images"]
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/substation-beta/puny2d"
[lib]
# Compile to Rust static library
crate-type = ["rlib"]
# Documentation embedded code doesn't need tests
doctest = false
[profile.release]
# Link-time-optimization for smaller binaries but longer build time
lto = true
# Just one build thread (=no parallel building) but chance for additional optimization
codegen-units = 1
# No expensive stack unwinding, release should be safe and without bloating
panic = "abort"
[features]
default = ["text"]
# Text support
text = ["font-loader", "ttf-parser"]
[[bench]]
# File to execute
name = "rendering_benches"
# Disable standard benchmarking harness in favor of microbench
harness = false
[dependencies]
# Fonts
font-loader = {version = "~0.11.0", optional = true} # https://crates.io/crates/font-loader
ttf-parser = {version = "~0.12.0", optional = true} # https://crates.io/crates/ttf-parser
# Images
png = "~0.16.8" # https://crates.io/crates/png
# Acceleration
lru = "~0.6.5" # https://crates.io/crates/lru
rayon = "~1.5.1" # https://crates.io/crates/rayon
[dev-dependencies]
# Profiling
microbench = "~0.5.0" # https://crates.io/crates/microbench