-
Notifications
You must be signed in to change notification settings - Fork 4
/
Cargo.toml
79 lines (62 loc) · 2.22 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
[package]
name = "legion_prof_viewer"
version = "0.4.0"
authors = ["Elliott Slaughter <[email protected]>"]
description = "Profiler UI frontend component for Legion Prof"
documentation = "https://github.com/StanfordLegion/prof-viewer"
homepage = "https://github.com/StanfordLegion/prof-viewer"
repository = "https://github.com/StanfordLegion/prof-viewer"
readme = "README.md"
keywords = ["legion", "legion-prof", "profiler"]
categories = ["development-tools::profiling"]
license = "Apache-2.0"
edition = "2021"
rust-version = "1.74"
[features]
default = []
client = ["dep:reqwest", "dep:url"]
server = ["dep:actix-cors", "dep:actix-web"]
nvtxw = ["dep:nvtxw"]
[dependencies]
egui = "0.25.0"
egui_extras = "0.25.0"
eframe = { version = "0.25.0", default-features = false, features = [
"accesskit", # Make egui comptaible with screen readers. NOTE: adds a lot of dependencies.
"default_fonts", # Embed the default egui fonts.
"glow", # Use the glow rendering backend. Alternative: "wgpu".
"persistence", # Enable restoring app state when restarting the app.
] }
log = "0.4"
serde = { version = "1", features = ["derive"] }
ciborium = { version = "0.2" }
zstd = { version = "0.13", default-features = false }
bytes = "1" # for reqwest binary data
rand = { version = "0.8" }
# transitive depedency, required for rand to support wasm
getrandom = { version = "0.2", features = ["js"] }
itertools = "0.12.0"
percentage = "0.1.0"
regex = "1.10.0"
# client
url = { version = "2", optional = true }
# server:
actix-web = { version = "4", optional = true }
actix-cors = { version = "0.6", optional = true }
# nvtxw:
nvtxw = { version = "0.1", optional = true }
# native:
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
env_logger = "0.10"
rayon = "1.7"
reqwest = { version = "0.11", features = ["blocking"], optional = true }
# web:
[target.'cfg(target_arch = "wasm32")'.dependencies]
reqwest = { version = "0.11", features = [], optional = true }
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
web-sys = { version = "0.3", features = ["Window", "Document", "Location"] }
[profile.release]
opt-level = 2 # fast and small wasm
# Optimize all dependencies even in debug builds:
[profile.dev.package."*"]
opt-level = 2