Use (patched) crates.io deps for crates, add some package metadata

This commit is contained in:
Joakim Frostegård 2020-09-13 17:28:18 +02:00
parent 66e9882f48
commit fe11ed138a
15 changed files with 66 additions and 28 deletions

14
Cargo.lock generated
View file

@ -23,9 +23,9 @@ checksum = "e8fd72866655d1904d6b0997d0b07ba561047d070fbe29de039031c641b61217"
[[package]]
name = "ahash"
version = "0.4.4"
version = "0.4.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6d66721683190aeea775c737eee925aea24719058d86d815e8ee121dd9f37d19"
checksum = "0adac150c2dd5a9c864d054e07bda5e6bc010cd10036ea5f17e82a2f5867f735"
[[package]]
name = "aho-corasick"
@ -719,7 +719,7 @@ version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "00d63df3d41950fb462ed38308eea019113ad1508da725bbedcd0fa5a85ef5f7"
dependencies = [
"ahash 0.4.4",
"ahash 0.4.5",
"serde",
]
@ -1411,9 +1411,9 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3"
[[package]]
name = "serde"
version = "1.0.115"
version = "1.0.116"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e54c9a88f2da7238af84b5101443f0c0d0a3bbdc455e34a5c9497b1903ed55d5"
checksum = "96fe57af81d28386a513cbc6858332abc6117cfdb5999647c6444b8f43a370a5"
dependencies = [
"serde_derive",
]
@ -1449,9 +1449,9 @@ dependencies = [
[[package]]
name = "serde_derive"
version = "1.0.115"
version = "1.0.116"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "609feed1d0a73cc36a0182a840a9b37b4a82f0b1150369f0536a9e3f2a31dc48"
checksum = "f630a6370fd8e457873b4bd2ffdae75408bc291ba72be773772a4c2a065d9ae8"
dependencies = [
"proc-macro2",
"quote",

View file

@ -16,6 +16,21 @@ members = [
"aquatic_ws_protocol",
]
[patch.crates-io]
aquatic = { path = "aquatic" }
aquatic_cli_helpers = { path = "aquatic_cli_helpers" }
aquatic_common = { path = "aquatic_common" }
aquatic_http = { path = "aquatic_http" }
aquatic_http_load_test = { path = "aquatic_http_load_test" }
aquatic_http_protocol = { path = "aquatic_http_protocol" }
aquatic_udp = { path = "aquatic_udp" }
aquatic_udp_bench = { path = "aquatic_udp_bench" }
aquatic_udp_load_test = { path = "aquatic_udp_load_test" }
aquatic_udp_protocol = { path = "aquatic_udp_protocol" }
aquatic_ws = { path = "aquatic_ws" }
aquatic_ws_load_test = { path = "aquatic_ws_load_test" }
aquatic_ws_protocol = { path = "aquatic_ws_protocol" }
[profile.release]
debug = true
lto = true

View file

@ -4,13 +4,16 @@ version = "0.1.0"
authors = ["Joakim Frostegård <joakim.frostegard@gmail.com>"]
edition = "2018"
license = "Apache-2.0"
description = "Blazingly fast, multi-threaded BitTorrent tracker (UDP, HTTP, WebTorrent)"
repository = "https://github.com/greatest-ape/aquatic"
keywords = ["bittorrent", "torrent", "webtorrent"]
[[bin]]
name = "aquatic"
[dependencies]
aquatic_cli_helpers = { path = "../aquatic_cli_helpers" }
aquatic_http = { path = "../aquatic_http" }
aquatic_udp = { path = "../aquatic_udp" }
aquatic_ws = { path = "../aquatic_ws" }
aquatic_cli_helpers = "0.1.0"
aquatic_http = "0.1.0"
aquatic_udp = "0.1.0"
aquatic_ws = "0.1.0"
mimalloc = { version = "0.1", default-features = false }

View file

@ -4,6 +4,8 @@ version = "0.1.0"
authors = ["Joakim Frostegård <joakim.frostegard@gmail.com>"]
edition = "2018"
license = "Apache-2.0"
description = "aquatic BitTorrent tracker CLI helpers"
repository = "https://github.com/greatest-ape/aquatic"
[dependencies]
anyhow = "1"

View file

@ -4,6 +4,8 @@ version = "0.1.0"
authors = ["Joakim Frostegård <joakim.frostegard@gmail.com>"]
edition = "2018"
license = "Apache-2.0"
description = "aquatic BitTorrent tracker common code"
repository = "https://github.com/greatest-ape/aquatic"
[lib]
name = "aquatic_common"

View file

@ -4,6 +4,8 @@ version = "0.1.0"
authors = ["Joakim Frostegård <joakim.frostegard@gmail.com>"]
edition = "2018"
license = "Apache-2.0"
description = "Blazingly fast, multi-threaded HTTP BitTorrent tracker"
repository = "https://github.com/greatest-ape/aquatic"
[lib]
name = "aquatic_http"
@ -15,9 +17,9 @@ path = "src/bin/main.rs"
[dependencies]
anyhow = "1"
aquatic_cli_helpers = { path = "../aquatic_cli_helpers" }
aquatic_common = { path = "../aquatic_common" }
aquatic_http_protocol = { path = "../aquatic_http_protocol" }
aquatic_cli_helpers = "0.1.0"
aquatic_common = "0.1.0"
aquatic_http_protocol = "0.1.0"
crossbeam-channel = "0.4"
either = "1"
hashbrown = "0.9"

View file

@ -4,14 +4,16 @@ version = "0.1.0"
authors = ["Joakim Frostegård <joakim.frostegard@gmail.com>"]
edition = "2018"
license = "Apache-2.0"
description = "HTTP BitTorrent tracker protocol"
repository = "https://github.com/greatest-ape/aquatic"
[[bin]]
name = "aquatic_http_load_test"
[dependencies]
anyhow = "1"
aquatic_cli_helpers = { path = "../aquatic_cli_helpers" }
aquatic_http_protocol = { path = "../aquatic_http_protocol" }
aquatic_cli_helpers = "0.1.0"
aquatic_http_protocol = "0.1.0"
hashbrown = "0.9"
mimalloc = { version = "0.1", default-features = false }
mio = { version = "0.7", features = ["udp", "os-poll", "os-util"] }

View file

@ -4,6 +4,7 @@ version = "0.1.0"
authors = ["Joakim Frostegård <joakim.frostegard@gmail.com>"]
edition = "2018"
license = "Apache-2.0"
repository = "https://github.com/greatest-ape/aquatic"
[lib]
name = "aquatic_http_protocol"

View file

@ -4,6 +4,8 @@ version = "0.1.0"
authors = ["Joakim Frostegård <joakim.frostegard@gmail.com>"]
edition = "2018"
license = "Apache-2.0"
description = "Blazingly fast, multi-threaded UDP BitTorrent tracker"
repository = "https://github.com/greatest-ape/aquatic"
[lib]
name = "aquatic_udp"
@ -14,9 +16,9 @@ name = "aquatic_udp"
[dependencies]
anyhow = "1"
aquatic_cli_helpers = { path = "../aquatic_cli_helpers" }
aquatic_common = { path = "../aquatic_common" }
aquatic_udp_protocol = { path = "../aquatic_udp_protocol" }
aquatic_cli_helpers = "0.1.0"
aquatic_common = "0.1.0"
aquatic_udp_protocol = "0.1.0"
crossbeam-channel = "0.4"
hashbrown = "0.9"
histogram = "0.6"

View file

@ -4,14 +4,15 @@ version = "0.1.0"
authors = ["Joakim Frostegård <joakim.frostegard@gmail.com>"]
edition = "2018"
license = "Apache-2.0"
repository = "https://github.com/greatest-ape/aquatic"
[[bin]]
name = "aquatic_udp_bench"
[dependencies]
anyhow = "1"
aquatic_cli_helpers = { path = "../aquatic_cli_helpers" }
aquatic_udp = { path = "../aquatic_udp" }
aquatic_cli_helpers = "0.1.0"
aquatic_udp = "0.1.0"
crossbeam-channel = "0.4"
indicatif = "0.15"
mimalloc = { version = "0.1", default-features = false }

View file

@ -4,14 +4,15 @@ version = "0.1.0"
authors = ["Joakim Frostegård <joakim.frostegard@gmail.com>"]
edition = "2018"
license = "Apache-2.0"
repository = "https://github.com/greatest-ape/aquatic"
[[bin]]
name = "aquatic_udp_load_test"
[dependencies]
anyhow = "1"
aquatic_cli_helpers = { path = "../aquatic_cli_helpers" }
aquatic_udp_protocol = { path = "../aquatic_udp_protocol" }
aquatic_cli_helpers = "0.1.0"
aquatic_udp_protocol = "0.1.0"
crossbeam-channel = "0.4"
hashbrown = "0.9"
mimalloc = { version = "0.1", default-features = false }

View file

@ -4,6 +4,8 @@ version = "0.1.0"
authors = ["Joakim Frostegård <joakim.frostegard@gmail.com>"]
edition = "2018"
license = "Apache-2.0"
description = "UDP BitTorrent tracker protocol"
repository = "https://github.com/greatest-ape/aquatic"
[dependencies]
byteorder = "1"

View file

@ -4,6 +4,8 @@ version = "0.1.0"
authors = ["Joakim Frostegård <joakim.frostegard@gmail.com>"]
edition = "2018"
license = "Apache-2.0"
description = "Blazingly fast, multi-threaded WebTorrent tracker"
repository = "https://github.com/greatest-ape/aquatic"
[lib]
name = "aquatic_ws"
@ -15,9 +17,9 @@ path = "src/bin/main.rs"
[dependencies]
anyhow = "1"
aquatic_cli_helpers = { path = "../aquatic_cli_helpers" }
aquatic_common = { path = "../aquatic_common" }
aquatic_ws_protocol = { path = "../aquatic_ws_protocol" }
aquatic_cli_helpers = "0.1.0"
aquatic_common = "0.1.0"
aquatic_ws_protocol = "0.1.0"
crossbeam-channel = "0.4"
either = "1"
hashbrown = { version = "0.9", features = ["serde"] }

View file

@ -4,14 +4,15 @@ version = "0.1.0"
authors = ["Joakim Frostegård <joakim.frostegard@gmail.com>"]
edition = "2018"
license = "Apache-2.0"
repository = "https://github.com/greatest-ape/aquatic"
[[bin]]
name = "aquatic_ws_load_test"
[dependencies]
anyhow = "1"
aquatic_cli_helpers = { path = "../aquatic_cli_helpers" }
aquatic_ws_protocol = { path = "../aquatic_ws_protocol" }
aquatic_cli_helpers = "0.1.0"
aquatic_ws_protocol = "0.1.0"
hashbrown = { version = "0.9", features = ["serde"] }
mimalloc = { version = "0.1", default-features = false }
mio = { version = "0.7", features = ["udp", "os-poll", "os-util"] }

View file

@ -4,6 +4,8 @@ version = "0.1.0"
authors = ["Joakim Frostegård <joakim.frostegard@gmail.com>"]
edition = "2018"
license = "Apache-2.0"
description = "WebTorrent tracker protocol"
repository = "https://github.com/greatest-ape/aquatic"
[lib]
name = "aquatic_ws_protocol"