Skip to content

Commit 39fd63d

Browse files
committed
dev: update cargo toml files
1 parent 9ebe477 commit 39fd63d

File tree

12 files changed

+88
-43
lines changed

12 files changed

+88
-43
lines changed

Cargo.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,37 @@
11
[package]
22
name = "torrust-tracker"
3-
description = "A feature rich BitTorrent tracker."
4-
license-file.workspace = true
3+
readme = "README.md"
4+
55
authors.workspace = true
6+
description.workspace = true
7+
documentation.workspace = true
68
edition.workspace = true
9+
homepage.workspace = true
10+
keywords.workspace = true
11+
license-file.workspace = true
12+
publish.workspace = true
713
repository.workspace = true
14+
rust-version.workspace = true
815
version.workspace = true
916

17+
1018
[workspace.package]
11-
license-file = "COPYRIGHT"
1219
authors = [
1320
"Nautilus Cyberneering <info@nautilus-cyberneering.de>, Mick van Dijke <mick@dutchbits.nl>",
1421
]
22+
categories = ["network-programming", "web-programming"]
23+
description = "A feature rich BitTorrent tracker."
24+
documentation = "https://docs.rs/crate/torrust-tracker/"
1525
edition = "2021"
26+
homepage = "https://torrust.com/"
27+
keywords = ["bittorrent", "tracker", "file-sharing", "peer-to-peer", "torrent"]
28+
license-file = "COPYRIGHT"
29+
publish = true
1630
repository = "https://github.com/torrust/torrust-tracker"
31+
rust-version = "1.72"
1732
version = "3.0.0-alpha.4"
1833

34+
1935
[dependencies]
2036
tokio = { version = "1.29", features = [
2137
"rt-multi-thread",
@@ -50,7 +66,7 @@ axum = "0.6.20"
5066
axum-server = { version = "0.5", features = ["tls-rustls"] }
5167
axum-client-ip = "0.4.1"
5268
tower-http = { version = "0.4.3", features = ["compression-full"] }
53-
bencode = { version = "1.0.0-alpha.1", path = "contrib/bencode" }
69+
torrust-tracker-contrib-bencode = { version = "3.0.0-alpha.4", path = "contrib/bencode"}
5470
torrust-tracker-primitives = { version = "3.0.0-alpha.4", path = "packages/primitives" }
5571
torrust-tracker-configuration = { version = "3.0.0-alpha.4", path = "packages/configuration" }
5672
torrust-tracker-located-error = { version = "3.0.0-alpha.4", path = "packages/located-error" }

contrib/bencode/Cargo.toml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
[package]
2-
name = "bencode"
3-
description = "Efficient decoding and encoding for bencode."
4-
keywords = ["bencode"]
2+
name = "torrust-tracker-contrib-bencode"
3+
description = "(contrib) Efficient decoding and encoding for bencode."
4+
keywords = ["library", "contrib", "bencode"]
55
readme = "README.md"
66

7-
87
authors = [
98
"Nautilus Cyberneering <info@nautilus-cyberneering.de>, Andrew <amiller4421@gmail.com>",
109
]
11-
categories = ["network-programming", "web-programming"]
12-
documentation = "https://github.com/torrust/bittorrent-infrastructure-project"
13-
edition = "2021"
14-
homepage = "https://github.com/torrust/bittorrent-infrastructure-project"
15-
license = "Apache-2.0"
16-
publish = false # until we decide where to publish.
1710
repository = "https://github.com/torrust/bittorrent-infrastructure-project"
18-
rust-version = "1.71"
19-
version = "1.0.0-alpha.1"
11+
license = "Apache-2.0"
12+
13+
documentation.workspace = true
14+
edition.workspace = true
15+
homepage.workspace = true
16+
publish.workspace = true
17+
rust-version.workspace = true
18+
version.workspace = true
2019

2120

2221
[dependencies]
@@ -31,4 +30,4 @@ path = "test/mod.rs"
3130

3231
[[bench]]
3332
name = "bencode_benchmark"
34-
harness = false
33+
harness = false

contrib/bencode/benches/bencode_benchmark.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use bencode::{BDecodeOpt, BencodeRef};
21
use criterion::{black_box, criterion_group, criterion_main, Criterion};
2+
use torrust_tracker_contrib_bencode::{BDecodeOpt, BencodeRef};
33

44
const B_NESTED_LISTS: &[u8; 100] =
55
b"lllllllllllllllllllllllllllllllllllllllllllllllllleeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"; // cspell:disable-line

contrib/bencode/src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ const BYTE_LEN_END: u8 = b':';
8585
macro_rules! ben_map {
8686
( $($key:expr => $val:expr),* ) => {
8787
{
88-
use bencode::{BMutAccess, BencodeMut};
89-
use bencode::inner::BCowConvert;
88+
use $crate::{BMutAccess, BencodeMut};
89+
use $crate::inner::BCowConvert;
9090

9191
let mut bencode_map = BencodeMut::new_dict();
9292
{
@@ -106,7 +106,7 @@ macro_rules! ben_map {
106106
macro_rules! ben_list {
107107
( $($ben:expr),* ) => {
108108
{
109-
use bencode::{BencodeMut, BMutAccess};
109+
use $crate::{BencodeMut, BMutAccess};
110110

111111
let mut bencode_list = BencodeMut::new_list();
112112
{
@@ -125,8 +125,8 @@ macro_rules! ben_list {
125125
#[macro_export]
126126
macro_rules! ben_bytes {
127127
( $ben:expr ) => {{
128-
use bencode::inner::BCowConvert;
129-
use bencode::BencodeMut;
128+
use $crate::inner::BCowConvert;
129+
use $crate::BencodeMut;
130130

131131
BencodeMut::new_bytes(BCowConvert::convert($ben))
132132
}};
@@ -136,7 +136,7 @@ macro_rules! ben_bytes {
136136
#[macro_export]
137137
macro_rules! ben_int {
138138
( $ben:expr ) => {{
139-
use bencode::BencodeMut;
139+
use $crate::BencodeMut;
140140

141141
BencodeMut::new_int($ben)
142142
}};

contrib/bencode/test/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use bencode::{ben_bytes, ben_int, ben_list, ben_map};
1+
use torrust_tracker_contrib_bencode::{ben_bytes, ben_int, ben_list, ben_map};
22

33
#[test]
44
fn positive_ben_map_macro() {

packages/configuration/Cargo.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
[package]
22
name = "torrust-tracker-configuration"
33
description = "A library to provide configuration to the Torrust Tracker."
4-
license-file.workspace = true
4+
keywords = ["library", "config", "settings"]
5+
readme = "README.md"
6+
57
authors.workspace = true
8+
documentation.workspace = true
69
edition.workspace = true
10+
homepage.workspace = true
11+
license-file.workspace = true
12+
publish.workspace = true
713
repository.workspace = true
14+
rust-version.workspace = true
815
version.workspace = true
916

17+
1018
[dependencies]
1119
serde = { version = "1.0", features = ["derive"] }
1220
serde_with = "3.2"

packages/located-error/Cargo.toml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
[package]
22
name = "torrust-tracker-located-error"
33
description = "A library to provide error decorator with the location and the source of the original error."
4-
license-file.workspace = true
4+
keywords = ["library", "helper", "errors"]
5+
readme = "README.md"
6+
57
authors.workspace = true
8+
documentation.workspace = true
69
edition.workspace = true
10+
homepage.workspace = true
11+
license-file.workspace = true
12+
publish.workspace = true
713
repository.workspace = true
14+
rust-version.workspace = true
815
version.workspace = true
916

17+
1018
[dependencies]
1119
log = { version = "0.4", features = ["release_max_level_info"] }
1220

1321
[dev-dependencies]
1422
thiserror = "1.0"
15-

packages/primitives/Cargo.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
[package]
22
name = "torrust-tracker-primitives"
33
description = "A library with the primitive types shared by the Torrust tracker packages."
4-
license-file.workspace = true
4+
keywords = ["library", "api", "primitives"]
5+
readme = "README.md"
6+
57
authors.workspace = true
8+
documentation.workspace = true
69
edition.workspace = true
10+
homepage.workspace = true
11+
license-file.workspace = true
12+
publish.workspace = true
713
repository.workspace = true
14+
rust-version.workspace = true
815
version.workspace = true
916

17+
1018
[dependencies]
1119
serde = { version = "1.0", features = ["derive"] }
1220
derive_more = "0.99"

packages/test-helpers/Cargo.toml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
[package]
22
name = "torrust-tracker-test-helpers"
33
description = "A library providing helpers for testing the Torrust tracker."
4-
license-file.workspace = true
4+
keywords = ["library", "helper", "testing"]
5+
readme = "README.md"
6+
57
authors.workspace = true
8+
documentation.workspace = true
69
edition.workspace = true
10+
homepage.workspace = true
11+
license-file.workspace = true
12+
publish.workspace = true
713
repository.workspace = true
14+
rust-version.workspace = true
815
version.workspace = true
916

1017
[dependencies]
1118
lazy_static = "1.4"
1219
rand = "0.8.5"
13-
torrust-tracker-configuration = { version = "3.0.0-alpha.4", path = "../configuration"}
14-
torrust-tracker-primitives = { version = "3.0.0-alpha.4", path = "../primitives"}
20+
torrust-tracker-configuration = { version = "3.0.0-alpha.4", path = "../configuration" }
21+
torrust-tracker-primitives = { version = "3.0.0-alpha.4", path = "../primitives" }

0 commit comments

Comments
 (0)