Skip to content

Commit 510cef0

Browse files
committed
Run a formatter on all toml files
1 parent c19a7ff commit 510cef0

File tree

12 files changed

+77
-74
lines changed

12 files changed

+77
-74
lines changed

eframe/Cargo.toml

+19-10
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ readme = "README.md"
1111
repository = "https://github.com/emilk/egui/tree/master/eframe"
1212
categories = ["gui", "game-development"]
1313
keywords = ["egui", "gui", "gamedev"]
14-
include = [
15-
"../LICENSE-APACHE",
16-
"../LICENSE-MIT",
17-
"**/*.rs",
18-
"Cargo.toml",
19-
]
14+
include = ["../LICENSE-APACHE", "../LICENSE-MIT", "**/*.rs", "Cargo.toml"]
2015

2116
[package.metadata.docs.rs]
2217
all-features = true
@@ -55,18 +50,32 @@ epi = { version = "0.17.0", path = "../epi" }
5550
# native:
5651
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
5752
egui-winit = { version = "0.17.0", path = "../egui-winit", default-features = false }
58-
egui_glium = { version = "0.17.0", path = "../egui_glium", default-features = false, features = ["clipboard", "epi", "links"], optional = true }
59-
egui_glow = { version = "0.17.0", path = "../egui_glow", default-features = false, features = ["clipboard", "epi", "links", "winit"], optional = true }
53+
egui_glium = { version = "0.17.0", path = "../egui_glium", optional = true, default-features = false, features = [
54+
"clipboard",
55+
"epi",
56+
"links",
57+
] }
58+
egui_glow = { version = "0.17.0", path = "../egui_glow", optional = true, default-features = false, features = [
59+
"clipboard",
60+
"epi",
61+
"links",
62+
"winit",
63+
] }
6064

6165
# web:
6266
[target.'cfg(target_arch = "wasm32")'.dependencies]
63-
egui_web = { version = "0.17.0", path = "../egui_web", default-features = false, features = ["glow"] }
67+
egui_web = { version = "0.17.0", path = "../egui_web", default-features = false, features = [
68+
"glow",
69+
] }
6470

6571

6672
[dev-dependencies]
6773
# For examples:
6874
egui_extras = { path = "../egui_extras", features = ["image", "svg"] }
6975
ehttp = "0.2"
70-
image = { version = "0.24", default-features = false, features = ["jpeg", "png"] }
76+
image = { version = "0.24", default-features = false, features = [
77+
"jpeg",
78+
"png",
79+
] }
7180
poll-promise = "0.1"
7281
rfd = "0.8"

egui-winit/Cargo.toml

+10-9
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ readme = "README.md"
1111
repository = "https://github.com/emilk/egui/tree/master/egui-winit"
1212
categories = ["gui", "game-development"]
1313
keywords = ["winit", "egui", "gui", "gamedev"]
14-
include = [
15-
"../LICENSE-APACHE",
16-
"../LICENSE-MIT",
17-
"**/*.rs",
18-
"Cargo.toml",
19-
]
14+
include = ["../LICENSE-APACHE", "../LICENSE-MIT", "**/*.rs", "Cargo.toml"]
2015

2116
[package.metadata.docs.rs]
2217
all-features = true
@@ -35,23 +30,29 @@ links = ["webbrowser"]
3530
# experimental support for a screen reader
3631
screen_reader = ["tts"]
3732

38-
persistence = ["egui/serialize", "serde"] # can't add epi/persistence here because of https://github.com/rust-lang/cargo/issues/8832
33+
persistence = [
34+
"egui/serialize",
35+
"serde",
36+
] # can't add epi/persistence here because of https://github.com/rust-lang/cargo/issues/8832
3937
serialize = ["egui/serialize", "serde"]
4038

4139
# implement bytemuck on most types.
4240
convert_bytemuck = ["egui/convert_bytemuck"]
4341

4442

4543
[dependencies]
46-
egui = { version = "0.17.0", path = "../egui", default-features = false, features = ["single_threaded", "tracing"] }
44+
egui = { version = "0.17.0", path = "../egui", default-features = false, features = [
45+
"single_threaded",
46+
"tracing",
47+
] }
4748
instant = { version = "0.1", features = ["wasm-bindgen"] }
4849
tracing = "0.1"
4950
winit = "0.26.1"
5051

5152
epi = { version = "0.17.0", path = "../epi", optional = true }
5253

5354
copypasta = { version = "0.7", optional = true }
54-
dark-light = { version = "0.2.1", optional = true } # detect dark mode system preference
55+
dark-light = { version = "0.2.1", optional = true } # detect dark mode system preference
5556
serde = { version = "1.0", optional = true, features = ["derive"] }
5657
webbrowser = { version = "0.6", optional = true }
5758

egui/Cargo.toml

+2-7
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ readme = "../README.md"
1111
repository = "https://github.com/emilk/egui"
1212
categories = ["gui", "game-development"]
1313
keywords = ["gui", "imgui", "immediate", "portable", "gamedev"]
14-
include = [
15-
"../LICENSE-APACHE",
16-
"../LICENSE-MIT",
17-
"**/*.rs",
18-
"Cargo.toml",
19-
]
14+
include = ["../LICENSE-APACHE", "../LICENSE-MIT", "**/*.rs", "Cargo.toml"]
2015

2116
[package.metadata.docs.rs]
2217
all-features = true
@@ -65,6 +60,6 @@ nohash-hasher = "0.2"
6560

6661
# Optional:
6762
ron = { version = "0.7", optional = true }
68-
serde = { version = "1", features = ["derive", "rc"], optional = true }
63+
serde = { version = "1", optional = true, features = ["derive", "rc"] }
6964
# egui doesn't log much, but when it does, it uses `tracing`
7065
tracing = { version = "0.1", optional = true }

egui_demo_app/Cargo.toml

+4-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ crate-type = ["cdylib", "rlib"]
1818
default = ["persistence"]
1919
http = ["egui_demo_lib/http"]
2020
persistence = ["eframe/persistence", "egui_demo_lib/persistence"]
21-
screen_reader = ["eframe/screen_reader"] # experimental
21+
screen_reader = ["eframe/screen_reader"] # experimental
2222
syntax_highlighting = ["egui_demo_lib/syntax_highlighting"]
2323

2424

@@ -28,7 +28,9 @@ eframe = { version = "0.17.0", path = "../eframe" }
2828
# To use the old glium backend instead:
2929
# eframe = { version = "0.17.0", path = "../eframe", default-features = false, features = ["default_fonts", "egui_glium"] }
3030

31-
egui_demo_lib = { version = "0.17.0", path = "../egui_demo_lib", features = ["extra_debug_asserts"] }
31+
egui_demo_lib = { version = "0.17.0", path = "../egui_demo_lib", features = [
32+
"extra_debug_asserts",
33+
] }
3234
tracing-subscriber = "0.3"
3335

3436
[target.'cfg(target_arch = "wasm32")'.dependencies]

egui_demo_lib/Cargo.toml

+15-13
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ readme = "README.md"
1111
repository = "https://github.com/emilk/egui/tree/master/egui_demo_lib"
1212
categories = ["gui", "graphics"]
1313
keywords = ["glium", "egui", "gui", "gamedev"]
14-
include = [
15-
"../LICENSE-APACHE",
16-
"../LICENSE-MIT",
17-
"**/*.rs",
18-
"Cargo.toml",
19-
]
14+
include = ["../LICENSE-APACHE", "../LICENSE-MIT", "**/*.rs", "Cargo.toml"]
2015

2116
[package.metadata.docs.rs]
2217
all-features = true
@@ -34,29 +29,36 @@ extra_asserts = ["egui/extra_asserts"]
3429

3530
http = ["egui_extras", "ehttp", "image", "poll-promise"]
3631
persistence = ["egui/persistence", "epi/persistence", "serde"]
37-
serialize = ["egui/serialize", "serde"]
32+
serialize = ["egui/serialize", "serde"]
3833
syntax_highlighting = ["syntect"]
3934

4035

4136
[dependencies]
4237
egui = { version = "0.17.0", path = "../egui", default-features = false }
4338
epi = { version = "0.17.0", path = "../epi" }
4439

45-
chrono = { version = "0.4", features = ["js-sys", "wasmbind"], optional = true }
40+
chrono = { version = "0.4", optional = true, features = ["js-sys", "wasmbind"] }
4641
enum-map = { version = "2", features = ["serde"] }
4742
unicode_names2 = { version = "0.5.0", default-features = false }
4843

4944
# feature "http":
50-
egui_extras = { version = "0.17.0", path = "../egui_extras", features = ["image"], optional = true }
45+
egui_extras = { version = "0.17.0", path = "../egui_extras", optional = true, features = [
46+
"image",
47+
] }
5148
ehttp = { version = "0.2.0", optional = true }
52-
image = { version = "0.24", default-features = false, features = ["jpeg", "png"], optional = true }
53-
poll-promise = { version = "0.1", default-features = false, optional = true }
49+
image = { version = "0.24", optional = true, default-features = false, features = [
50+
"jpeg",
51+
"png",
52+
] }
53+
poll-promise = { version = "0.1", optional = true, default-features = false }
5454

5555
# feature "syntax_highlighting":
56-
syntect = { version = "4", default-features = false, features = ["default-fancy"], optional = true }
56+
syntect = { version = "4", optional = true, default-features = false, features = [
57+
"default-fancy",
58+
] }
5759

5860
# feature "persistence":
59-
serde = { version = "1", features = ["derive"], optional = true }
61+
serde = { version = "1", optional = true, features = ["derive"] }
6062

6163
[dev-dependencies]
6264
criterion = { version = "0.3", default-features = false }

egui_extras/Cargo.toml

+4-7
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ readme = "../README.md"
1111
repository = "https://github.com/emilk/egui"
1212
categories = ["gui", "game-development"]
1313
keywords = ["gui", "imgui", "immediate", "portable", "gamedev"]
14-
include = [
15-
"../LICENSE-APACHE",
16-
"../LICENSE-MIT",
17-
"**/*.rs",
18-
"Cargo.toml",
19-
]
14+
include = ["../LICENSE-APACHE", "../LICENSE-MIT", "**/*.rs", "Cargo.toml"]
2015

2116
[package.metadata.docs.rs]
2217
all-features = true
@@ -32,7 +27,9 @@ svg = ["resvg", "tiny-skia", "usvg"]
3227

3328

3429
[dependencies]
35-
egui = { version = "0.17.0", path = "../egui", default-features = false, features = ["single_threaded"] }
30+
egui = { version = "0.17.0", path = "../egui", default-features = false, features = [
31+
"single_threaded",
32+
] }
3633
parking_lot = "0.12"
3734

3835
# Optional dependencies:

egui_glium/Cargo.toml

+4-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ links = ["egui-winit/links"]
4141
persistence = [
4242
"egui-winit/persistence",
4343
"egui/persistence",
44-
"epi", # also implied by the lines below, see https://github.com/rust-lang/cargo/issues/8832
44+
"epi", # also implied by the lines below, see https://github.com/rust-lang/cargo/issues/8832
4545
"epi/file_storage",
4646
"epi/persistence",
4747
]
@@ -55,7 +55,9 @@ egui = { version = "0.17.0", path = "../egui", default-features = false, feature
5555
"convert_bytemuck",
5656
"single_threaded",
5757
] }
58-
egui-winit = { version = "0.17.0", path = "../egui-winit", default-features = false, features = ["epi"] }
58+
egui-winit = { version = "0.17.0", path = "../egui-winit", default-features = false, features = [
59+
"epi",
60+
] }
5961
epi = { version = "0.17.0", path = "../epi", optional = true }
6062

6163
ahash = "0.7"

egui_glow/Cargo.toml

+6-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ links = ["egui-winit/links"]
4141
persistence = [
4242
"egui-winit/persistence",
4343
"egui/persistence",
44-
"epi", # also implied by the lines below, see https://github.com/rust-lang/cargo/issues/8832
44+
"epi", # also implied by the lines below, see https://github.com/rust-lang/cargo/issues/8832
4545
"epi/file_storage",
4646
"epi/persistence",
4747
]
@@ -67,9 +67,12 @@ memoffset = "0.6"
6767
tracing = "0.1"
6868

6969
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
70-
egui-winit = { version = "0.17.0", path = "../egui-winit", default-features = false, features = ["dark-light", "epi"], optional = true }
70+
egui-winit = { version = "0.17.0", path = "../egui-winit", optional = true, default-features = false, features = [
71+
"dark-light",
72+
"epi",
73+
] }
7174
glutin = { version = "0.28.0", optional = true }
7275

7376
[target.'cfg(target_arch = "wasm32")'.dependencies]
74-
web-sys = { version = "0.3", features=["console"] }
77+
web-sys = { version = "0.3", features = ["console"] }
7578
wasm-bindgen = { version = "0.2" }

egui_web/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ egui = { version = "0.17.0", path = "../egui", default-features = false, feature
5252
"single_threaded",
5353
"tracing",
5454
] }
55-
egui_glow = { version = "0.17.0",path = "../egui_glow", default-features = false, optional = true }
55+
egui_glow = { version = "0.17.0", path = "../egui_glow", optional = true, default-features = false }
5656
epi = { version = "0.17.0", path = "../epi" }
5757

5858
bytemuck = "1.7"

emath/Cargo.toml

+3-8
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ readme = "README.md"
1111
repository = "https://github.com/emilk/egui/tree/master/emath"
1212
categories = ["mathematics", "gui"]
1313
keywords = ["math", "gui"]
14-
include = [
15-
"../LICENSE-APACHE",
16-
"../LICENSE-MIT",
17-
"**/*.rs",
18-
"Cargo.toml",
19-
]
14+
include = ["../LICENSE-APACHE", "../LICENSE-MIT", "**/*.rs", "Cargo.toml"]
2015

2116
[package.metadata.docs.rs]
2217
all-features = true
@@ -34,6 +29,6 @@ extra_asserts = []
3429

3530

3631
[dependencies]
37-
bytemuck = { version = "1.7.2", features = ["derive"], optional = true }
32+
bytemuck = { version = "1.7.2", optional = true, features = ["derive"] }
3833
mint = { version = "0.5.6", optional = true }
39-
serde = { version = "1", features = ["derive"], optional = true }
34+
serde = { version = "1", optional = true, features = ["derive"] }

epaint/Cargo.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ multi_threaded = ["parking_lot"]
5858
emath = { version = "0.17.0", path = "../emath" }
5959

6060
ab_glyph = "0.2.11"
61-
ahash = { version = "0.7", features = ["std"], default-features = false }
62-
atomic_refcell = { version = "0.1", optional = true } # Used instead of parking_lot when you are always using epaint in a single thread. About as fast as parking_lot. Panics on multi-threaded use.
63-
bytemuck = { version = "1.7.2", features = ["derive"], optional = true }
61+
ahash = { version = "0.7", default-features = false, features = ["std"] }
62+
atomic_refcell = { version = "0.1", optional = true } # Used instead of parking_lot when you are always using epaint in a single thread. About as fast as parking_lot. Panics on multi-threaded use.
63+
bytemuck = { version = "1.7.2", optional = true, features = ["derive"] }
6464
cint = { version = "^0.2.2", optional = true }
6565
nohash-hasher = "0.2"
66-
parking_lot = { version = "0.12", optional = true } # Using parking_lot over std::sync::Mutex gives 50% speedups in some real-world scenarios.
67-
serde = { version = "1", features = ["derive", "rc"], optional = true }
66+
parking_lot = { version = "0.12", optional = true } # Using parking_lot over std::sync::Mutex gives 50% speedups in some real-world scenarios.
67+
serde = { version = "1", optional = true, features = ["derive", "rc"] }
6868

6969
[dev-dependencies]
7070
criterion = { version = "0.3", default-features = false }

epi/Cargo.toml

+4-7
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ readme = "README.md"
1111
repository = "https://github.com/emilk/egui/tree/master/epi"
1212
categories = ["gui", "game-development"]
1313
keywords = ["egui", "gui", "gamedev"]
14-
include = [
15-
"../LICENSE-APACHE",
16-
"../LICENSE-MIT",
17-
"**/*.rs",
18-
"Cargo.toml",
19-
]
14+
include = ["../LICENSE-APACHE", "../LICENSE-MIT", "**/*.rs", "Cargo.toml"]
2015

2116
[package.metadata.docs.rs]
2217
all-features = true
@@ -33,7 +28,9 @@ persistence = ["ron", "serde", "egui/persistence"]
3328

3429

3530
[dependencies]
36-
egui = { version = "0.17.0", path = "../egui", default-features = false, features = ["single_threaded"] }
31+
egui = { version = "0.17.0", path = "../egui", default-features = false, features = [
32+
"single_threaded",
33+
] }
3734
tracing = "0.1"
3835

3936
directories-next = { version = "2", optional = true }

0 commit comments

Comments
 (0)