-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathCargo.toml
More file actions
162 lines (137 loc) · 4.26 KB
/
Copy pathCargo.toml
File metadata and controls
162 lines (137 loc) · 4.26 KB
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
[workspace]
members = ["bevy_lint"]
[workspace.lints.clippy]
# Prefer `str.to_owned()`, rather than `str.to_string()`.
str_to_string = "warn"
[package]
name = "bevy_cli"
version = "0.1.0-dev"
edition = "2024"
description = "A prototype Bevy CLI tool"
documentation = "https://thebevyflock.github.io/bevy_cli/cli/index.html"
repository = "https://github.com/TheBevyFlock/bevy_cli"
license = "MIT OR Apache-2.0"
# When no binary is specific, run the main CLI by default.
default-run = "bevy"
# The main CLI executable
[[bin]]
name = "bevy"
path = "src/bin/main.rs"
[features]
default = ["rustup", "web", "unstable"]
# Run your Bevy app in the browser
web = [
"dep:webbrowser",
"dep:http",
"dep:axum",
"dep:tower",
"dep:tower-http",
"dep:tokio",
"dep:fs_extra",
]
# Support installing required targets with `rustup` from a prompt.
# You can disable this feature if your system doesn't have rustup installed.
rustup = []
# Functionality that's unfinished or comes with caveats
unstable = []
[dependencies]
# CLI argument parsing
clap = { version = "4.6.1", default-features = false, features = [
"color",
"error-context",
"help",
"std",
"suggestions",
"usage",
"derive",
"env"
] }
# autocompletion auto-generation
clap_complete = { version = "4.6.5", default-features = false }
# Easy error propagation and contexts
anyhow = { version = "1.0.102", default-features = false, features = ["std"] }
# Better CLI user input
dialoguer = { version = "0.12.0", default-features = false, features = [
"fuzzy-select",
] }
# Used to create styled table outputs.
comfy-table = { version = "8.0.0", default-features = false }
# Cargo like styling for clap
clap-cargo = { version = "0.19.0", default-features = false, features = [
"clap",
] }
# Load and resolve Cargo configuration.
cargo-config2 = { version = "0.1", default-features = false }
# API interaction
ureq = { version = "3.3.0", default-features = false, features = [
"rustls",
"json",
] }
serde = { version = "1.0.228", default-features = false, features = [
"std",
"derive",
] }
serde_json = { version = "1.0.150", default-features = false, features = [
"std",
] }
# Understanding package versions
semver = { version = "1.0.28", default-features = false, features = ["serde"] }
# `cargo metadata` command helpers and types
cargo_metadata = { version = "0.23.1", default-features = false }
# Parsing the Cargo manifest
toml = { version = "1.1.2", default-features = false, features = [
"std",
"parse",
"display",
"serde",
] }
# Logging crates
tracing = { version = "0.1.44", default-features = false, features = ["std"] }
tracing-subscriber = { version = "0.3.23", default-features = false, features = [
"std",
"ansi",
"fmt",
"env-filter",
] }
ansi_term = { version = "0.12.1", default-features = false }
# Web dependencies
## Opening the app in the browser
webbrowser = { version = "1.2.1", default-features = false, optional = true }
## Serving the app for the browser
http = { version = "1.4", default-features = false, features = [
"std",
], optional = true }
axum = { version = "0.8.9", default-features = false, features = [
"ws",
"http1",
"tokio",
"tracing",
], optional = true }
tower = { version = "0.5.2", default-features = false, features = [
"util",
], optional = true }
tower-http = { version = "0.7.0", default-features = false, features = [
"fs",
"trace",
], optional = true }
tokio = { version = "1.52", default-features = false, features = [
"net",
"rt",
"macros",
], optional = true }
## Copying directories
fs_extra = { version = "1.3.0", default-features = false, optional = true }
[dev-dependencies]
# Forcing tests that can't be parallelized to be run sequentially
serial_test = "4.0.1"
assert_cmd = "2.2.2"
tempfile = "3"
[lints]
workspace = true
[package.metadata.binstall]
# HACK: We currently hard-code the latest version in the URL. The `{ version }` template uses the
# version from the `main` branch's `Cargo.toml`, which is usually `X.Y.Z-dev`, leading to the
# binary not being found. See <https://github.com/cargo-bins/cargo-binstall/issues/2165> for more
# information.
pkg-url = "{ repo }/releases/download/cli-v0.1.0-alpha.2/bevy-{ target }-v0.1.0-alpha.2{ archive-suffix }"
pkg-fmt = "bin"