Skip to content

Commit b0f2913

Browse files
committed
chore: format cargo file
1 parent f610b92 commit b0f2913

File tree

2 files changed

+34
-52
lines changed

2 files changed

+34
-52
lines changed

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,9 @@
2020
"-W",
2121
"clippy::pedantic",
2222
],
23+
"evenBetterToml.formatter.allowedBlankLines": 1,
24+
"evenBetterToml.formatter.columnWidth": 130,
25+
"evenBetterToml.formatter.trailingNewline": true,
26+
"evenBetterToml.formatter.reorderKeys": true,
27+
"evenBetterToml.formatter.reorderArrays": true,
2328
}

Cargo.toml

Lines changed: 29 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
2+
default-run = "main"
23
name = "torrust-index"
34
readme = "README.md"
4-
default-run = "main"
55

66
authors.workspace = true
77
description.workspace = true
@@ -16,15 +16,13 @@ rust-version.workspace = true
1616
version.workspace = true
1717

1818
[workspace.package]
19-
authors = [
20-
"Nautilus Cyberneering <[email protected]>, Mick van Dijke <[email protected]>",
21-
]
19+
authors = ["Nautilus Cyberneering <[email protected]>, Mick van Dijke <[email protected]>"]
2220
categories = ["network-programming", "web-programming"]
2321
description = "A BitTorrent Index"
2422
documentation = "https://docs.rs/crate/torrust-tracker/"
2523
edition = "2021"
2624
homepage = "https://torrust.com/"
27-
keywords = ["bittorrent", "file-sharing", "peer-to-peer", "torrent", "index"]
25+
keywords = ["bittorrent", "file-sharing", "index", "peer-to-peer", "torrent"]
2826
license = "AGPL-3.0-only"
2927
publish = true
3028
repository = "https://github.com/torrust/torrust-tracker"
@@ -35,65 +33,44 @@ version = "3.0.0-alpha.1-develop"
3533
opt-level = 3
3634

3735
[dependencies]
36+
argon2 = "0"
3837
async-trait = "0"
39-
futures = "0"
40-
sqlx = { version = "0", features = [
41-
"runtime-tokio-native-tls",
42-
"sqlite",
43-
"mysql",
44-
"migrate",
45-
"time",
46-
] }
38+
axum = { version = "0", features = ["multipart"] }
39+
binascii = "0"
40+
bytes = "1"
41+
chrono = { version = "0", default-features = false, features = ["clock"] }
4742
config = "0"
48-
toml = "0"
4943
derive_more = "0"
44+
email_address = "0"
45+
fern = "0"
46+
futures = "0"
47+
hex = "0"
48+
hyper = "0"
49+
indexmap = "1"
50+
jsonwebtoken = "8"
51+
lazy_static = "1.4.0"
52+
lettre = { version = "0", features = ["builder", "smtp-transport", "tokio1", "tokio1-native-tls", "tokio1-rustls-tls"] }
53+
log = "0"
54+
pbkdf2 = { version = "0", features = ["simple"] }
55+
rand_core = { version = "0", features = ["std"] }
56+
regex = "1"
57+
reqwest = { version = "0", features = ["json", "multipart"] }
5058
serde = { version = "1", features = ["rc"] }
51-
serde_derive = "1"
52-
serde_json = "1"
5359
serde_bencode = "0"
5460
serde_bytes = "0"
55-
urlencoding = "2"
56-
argon2 = "0"
57-
rand_core = { version = "0", features = ["std"] }
58-
chrono = { version = "0", default-features = false, features = ["clock"] }
59-
jsonwebtoken = "8"
61+
serde_derive = "1"
62+
serde_json = "1"
6063
sha-1 = "0"
61-
reqwest = { version = "0", features = ["json", "multipart"] }
62-
tokio = { version = "1", features = [
63-
"macros",
64-
"io-util",
65-
"net",
66-
"time",
67-
"rt-multi-thread",
68-
"fs",
69-
"sync",
70-
"signal",
71-
] }
72-
lettre = { version = "0", features = [
73-
"builder",
74-
"tokio1",
75-
"tokio1-rustls-tls",
76-
"tokio1-native-tls",
77-
"smtp-transport",
78-
] }
64+
sqlx = { version = "0", features = ["migrate", "mysql", "runtime-tokio-native-tls", "sqlite", "time"] }
7965
tera = { version = "1", default-features = false }
80-
regex = "1"
81-
pbkdf2 = { version = "0", features = ["simple"] }
8266
text-colorizer = "1"
83-
log = "0"
84-
fern = "0"
85-
bytes = "1"
8667
text-to-png = "0"
87-
indexmap = "1"
8868
thiserror = "1"
89-
binascii = "0"
90-
axum = { version = "0", features = ["multipart"] }
91-
hyper = "0"
92-
tower-http = { version = "0", features = ["cors", "compression-full"] }
93-
email_address = "0"
94-
hex = "0"
69+
tokio = { version = "1", features = ["fs", "io-util", "macros", "net", "rt-multi-thread", "signal", "sync", "time"] }
70+
toml = "0"
71+
tower-http = { version = "0", features = ["compression-full", "cors"] }
72+
urlencoding = "2"
9573
uuid = { version = "1", features = ["v4"] }
96-
lazy_static = "1.4.0"
9774

9875
[dev-dependencies]
9976
rand = "0"

0 commit comments

Comments
 (0)