-
Notifications
You must be signed in to change notification settings - Fork 4
/
Cargo.toml
109 lines (96 loc) · 2.53 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
97
98
99
100
101
102
103
104
105
106
107
108
109
[package]
authors = ["Luke Petherbridge <me@lukeworks.tech>"]
categories = [
"game-development",
"game-engines",
"graphics",
"gui",
"rendering",
]
description = "A cross-platform graphics/UI engine framework for simple games, visualizations, and graphics demos."
documentation = "https://docs.rs/pix-engine"
edition = "2021"
keywords = ["game", "engine", "graphics", "ui", "rendering"]
license = "MIT OR Apache-2.0"
name = "pix-engine"
repository = "https://github.com/lukexor/pix-engine.git"
resolver = "2"
version = "0.8.0"
exclude = ["/images", "/audio", "/pkg"]
build = "build.rs"
[package.metadata]
msrv = "1.67.0"
[package.metadata.docs.rs]
features = ["serde"]
targets = [
"x86_64-apple-darwin",
"x86_64-unknown-linux-gnu",
"x86_64-pc-windows-msvc",
]
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
anyhow = "1.0"
bitflags = "2.6"
time = { version = "0.3", features = ["local-offset"] }
log = "0.4"
lru = "0.12"
num-traits = "0.2"
once_cell = "1.17"
png = "0.17"
rand = "0.8"
serde = { version = "1.0", features = ["derive"], optional = true }
thiserror = "1.0"
[target.'cfg(target_arch = "wasm32")'.dependencies]
# https://docs.rs/getrandom/latest/getrandom/#webassembly-support
getrandom = { version = "0.2", features = ["js"] }
[dev-dependencies]
rayon = "1.10"
pretty_env_logger = "0.5"
[features]
default = []
opengl = []
# TODO: `backtrace` feature can be removed when `Backtrace` lands in stable https://github.com/rust-lang/rust/issues/53487
backtrace = ["anyhow/backtrace"]
debug_ui = []
serde = ["dep:serde", "bitflags/serde"]
[target."cfg(not(target_arch = \"wasm32\"))".dependencies]
sdl2 = { version = "0.37", default-features = false, features = [
"gfx",
"image",
"mixer",
"ttf",
"unsafe_textures",
] }
# Reasonable performance for development
[profile.dev-opt]
inherits = "dev"
opt-level = 1
[profile.test]
inherits = "dev"
[profile.profiling]
inherits = "release"
debug = true
# The profile that 'cargo dist' will build with
[profile.dist]
codegen-units = 1
inherits = "release"
lto = "thin"
strip = "debug"
# Config for 'cargo dist'
[workspace.metadata.dist]
# The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax)
cargo-dist-version = "0.4.0"
# CI backends to support
ci = ["github"]
# The installers to generate for each app
installers = ["shell", "powershell"]
# Target platforms to build apps for (Rust target-triple syntax)
targets = [
"x86_64-unknown-linux-gnu",
"aarch64-apple-darwin",
"x86_64-apple-darwin",
"x86_64-pc-windows-msvc",
]
# Publish jobs to run in CI
pr-run-mode = "upload"