-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
56 lines (44 loc) · 1.45 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
[package]
name = "osmeta"
version = "0.1.0"
edition = "2021"
links = "openxr_loader"
build = "build.rs"
# Enable a small amount of optimization in debug mode
[profile.dev]
opt-level = 1
# Enable high optimizations for dependencies (incl. Bevy), but not for our code:
[profile.dev.package."*"]
opt-level = 3
[dependencies]
bevy = { version = "0.13", features = ["jpeg"] }
flate2 = "1.0.28"
futures-core = "0.3.29"
futures-io = "0.3.29"
bevy_screen_diagnostics = { git = "https://github.com/oli-obk/bevy_screen_diagnostics.git" }
globe-rs = "0.1.8"
directories = "5.0.1"
async-fs = "2.1.0"
bevy_web_asset = { git = "https://github.com/oli-obk/bevy_web_asset.git", branch = "user-agent" }
bevy_embedded_assets = "0.10"
bevy_panorbit_camera = "0.16"
[target.'cfg(target_arch = "wasm32")'.dependencies]
web-sys = { version = "0.3.22", default-features = false, features = [
"Location",
] }
[target.'cfg(not(any(target_os="macos", target_arch = "wasm32")))'.dependencies]
bevy_oxr = { git = "https://github.com/awtterpip/bevy_oxr", optional = true }
[features]
xr = ["dep:bevy_oxr"]
default = ["xr"]
# we need to split our crate into a lib and a binary, because android targets don't want a binary.
# our binary is now just a tiny dummy thing that invokes the library's main function.
[lib]
name = "osmeta"
crate-type = ["staticlib", "cdylib", "lib"]
[lints.clippy]
type_complexity = "allow"
too_many_arguments = "allow"
[[example]]
name = "main"
path = "examples/main.rs"