Merge pull request #32 from ikatson/cargo-package
Update all Cargo.tomls for publishing on crates.io
This commit is contained in:
commit
b763f95ce3
22 changed files with 191 additions and 125 deletions
2
crates/README.md
Normal file
2
crates/README.md
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
This package is a dependency of [rqbit](https://github.com/ikatson/rqbit) torrent client.
|
||||
It can be used by itself too. See more [at the rqbit Github page](https://github.com/ikatson/rqbit).
|
||||
|
|
@ -1,7 +1,12 @@
|
|||
[package]
|
||||
name = "bencode"
|
||||
version = "0.1.0"
|
||||
name = "librqbit-bencode"
|
||||
version = "2.2.1"
|
||||
edition = "2018"
|
||||
description = "Bencode serialization and deserialization using Serde"
|
||||
license = "Apache-2.0"
|
||||
documentation = "https://docs.rs/librqbit-bencode"
|
||||
repository = "https://github.com/ikatson/rqbit"
|
||||
readme = "README.md"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
|
|
@ -13,7 +18,7 @@ sha1-rust = ["sha1w/sha1-rust"]
|
|||
|
||||
[dependencies]
|
||||
serde = {version = "1", features=["derive"]}
|
||||
buffers = {path = "../buffers"}
|
||||
clone_to_owned = {path = "../clone_to_owned"}
|
||||
buffers = {path = "../buffers", package="librqbit-buffers", version = "2.2.1"}
|
||||
clone_to_owned = {path = "../clone_to_owned", package="librqbit-clone-to-owned", version = "2.2.1"}
|
||||
anyhow = "1"
|
||||
sha1w = {path="../sha1w", default-features=false}
|
||||
sha1w = {path="../sha1w", default-features=false, package="librqbit-sha1-wrapper", version="2.2.1"}
|
||||
1
crates/bencode/README.md
Symbolic link
1
crates/bencode/README.md
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../README.md
|
||||
|
|
@ -1,10 +1,14 @@
|
|||
[package]
|
||||
name = "buffers"
|
||||
version = "0.1.0"
|
||||
name = "librqbit-buffers"
|
||||
version = "2.2.1"
|
||||
edition = "2018"
|
||||
description = "Utils to work with &[u8] and Vec<u8> in librqbit source code."
|
||||
license = "Apache-2.0"
|
||||
documentation = "https://docs.rs/librqbit-buffers"
|
||||
readme = "README.md"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
serde = {version = "1", features=["derive"]}
|
||||
clone_to_owned = {path="../clone_to_owned"}
|
||||
clone_to_owned = {path="../clone_to_owned", package="librqbit-clone-to-owned", version = "2.2.1"}
|
||||
1
crates/buffers/README.md
Symbolic link
1
crates/buffers/README.md
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../README.md
|
||||
|
|
@ -1,7 +1,9 @@
|
|||
[package]
|
||||
name = "clone_to_owned"
|
||||
version = "0.1.0"
|
||||
name = "librqbit-clone-to-owned"
|
||||
version = "2.2.1"
|
||||
edition = "2018"
|
||||
description = "Util traits to represent something that can be made owned and change type at the same time."
|
||||
license = "Apache-2.0"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
|
|
|
|||
1
crates/clone_to_owned/README.md
Symbolic link
1
crates/clone_to_owned/README.md
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../README.md
|
||||
|
|
@ -1,17 +1,28 @@
|
|||
[package]
|
||||
name = "dht"
|
||||
version = "0.1.0"
|
||||
name = "librqbit-dht"
|
||||
version = "2.2.1"
|
||||
edition = "2018"
|
||||
description = "DHT implementation, used in rqbit torrent client."
|
||||
license = "Apache-2.0"
|
||||
documentation = "https://docs.rs/librqbit-dht"
|
||||
repository = "https://github.com/ikatson/rqbit"
|
||||
readme = "README.md"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[features]
|
||||
default = ["sha1-system"]
|
||||
sha1-system = ["bencode/sha1-system", "librqbit-core/sha1-system"]
|
||||
sha1-openssl = ["bencode/sha1-openssl", "librqbit-core/sha1-openssl"]
|
||||
sha1-rust = ["bencode/sha1-rust", "librqbit-core/sha1-rust"]
|
||||
|
||||
[dependencies]
|
||||
tokio = {version = "1", features = ["macros", "rt-multi-thread", "net", "sync"]}
|
||||
tokio-stream = {version = "0.1", features = ["sync"]}
|
||||
serde = {version = "1", features = ["derive"]}
|
||||
serde_json = "1"
|
||||
hex = "0.4"
|
||||
bencode = {path = "../bencode", default-features=false}
|
||||
bencode = {path = "../bencode", default-features=false, package="librqbit-bencode", version="2.2.1"}
|
||||
anyhow = "1"
|
||||
parking_lot = "0.12"
|
||||
log = "0.4"
|
||||
|
|
@ -21,7 +32,7 @@ rand = "0.8"
|
|||
indexmap = "1.7"
|
||||
directories = "4"
|
||||
|
||||
clone_to_owned = {path="../clone_to_owned"}
|
||||
librqbit_core = {path="../librqbit_core"}
|
||||
clone_to_owned = {path="../clone_to_owned", package="librqbit-clone-to-owned", version = "2.2.1"}
|
||||
librqbit-core = {path="../librqbit_core", version = "2.2.1"}
|
||||
|
||||
[dev-dependencies]
|
||||
|
|
|
|||
1
crates/dht/README.md
Symbolic link
1
crates/dht/README.md
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../README.md
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
use std::{str::FromStr, time::Duration};
|
||||
|
||||
use anyhow::Context;
|
||||
use dht::{Dht, Id20};
|
||||
use librqbit_dht::{Dht, Id20};
|
||||
use log::info;
|
||||
use tokio_stream::StreamExt;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,15 @@
|
|||
[package]
|
||||
name = "librqbit"
|
||||
version = "0.1.0"
|
||||
version = "2.2.1"
|
||||
authors = ["Igor Katson <igor.katson@gmail.com>"]
|
||||
edition = "2018"
|
||||
description = "The main library used by rqbit torrent client. The binary is just a small wrapper on top of it."
|
||||
license = "Apache-2.0"
|
||||
documentation = "https://docs.rs/librqbit-dht"
|
||||
repository = "https://github.com/ikatson/rqbit"
|
||||
readme = "README.md"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[features]
|
||||
default = ["sha1-system", "default-tls"]
|
||||
|
|
@ -12,23 +19,21 @@ sha1-rust = ["sha1w/sha1-rust"]
|
|||
default-tls = ["reqwest/default-tls"]
|
||||
rust-tls = ["reqwest/rustls-tls"]
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
bencode = {path = "../bencode", default-features=false}
|
||||
buffers = {path = "../buffers"}
|
||||
librqbit_core = {path = "../librqbit_core"}
|
||||
clone_to_owned = {path = "../clone_to_owned"}
|
||||
peer_binary_protocol = {path = "../peer_binary_protocol"}
|
||||
sha1w = {path = "../sha1w", default-features=false}
|
||||
dht = {path = "../dht"}
|
||||
bencode = {path = "../bencode", default-features=false, package="librqbit-bencode", version="2.2.1"}
|
||||
buffers = {path = "../buffers", package="librqbit-buffers", version = "2.2.1"}
|
||||
librqbit-core = {path = "../librqbit_core", version = "2.2.1"}
|
||||
clone_to_owned = {path = "../clone_to_owned", package="librqbit-clone-to-owned", version = "2.2.1"}
|
||||
peer_binary_protocol = {path = "../peer_binary_protocol", package="librqbit-peer-protocol", version = "2.2.1"}
|
||||
sha1w = {path = "../sha1w", default-features=false, package="librqbit-sha1-wrapper", version="2.2.1"}
|
||||
dht = {path = "../dht", package="librqbit-dht", version="2.2.1"}
|
||||
|
||||
tokio = {version = "1", features = ["macros", "rt-multi-thread"]}
|
||||
axum = {version = "0.6"}
|
||||
tokio-stream = "0.1"
|
||||
serde = {version = "1", features=["derive"]}
|
||||
serde_json = "1"
|
||||
serde_urlencoded = "*"
|
||||
serde_urlencoded = "0.7"
|
||||
anyhow = "1"
|
||||
|
||||
http = "0.2"
|
||||
|
|
|
|||
1
crates/librqbit/README.md
Symbolic link
1
crates/librqbit/README.md
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../README.md
|
||||
|
|
@ -1,10 +1,21 @@
|
|||
[package]
|
||||
name = "librqbit_core"
|
||||
version = "0.1.0"
|
||||
name = "librqbit-core"
|
||||
version = "2.2.1"
|
||||
edition = "2018"
|
||||
description = "Important utilities used throughout librqbit useful for working with torrents."
|
||||
license = "Apache-2.0"
|
||||
documentation = "https://docs.rs/librqbit-core"
|
||||
repository = "https://github.com/ikatson/rqbit"
|
||||
readme = "README.md"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[features]
|
||||
default = ["sha1-system"]
|
||||
sha1-system = ["bencode/sha1-system"]
|
||||
sha1-openssl = ["bencode/sha1-openssl"]
|
||||
sha1-rust = ["bencode/sha1-rust"]
|
||||
|
||||
[dependencies]
|
||||
hex = "0.4"
|
||||
anyhow = "1"
|
||||
|
|
@ -13,7 +24,7 @@ uuid = {version = "1", features = ["v4"]}
|
|||
log = "0.4"
|
||||
parking_lot = "0.12"
|
||||
serde = {version = "1", features=["derive"]}
|
||||
buffers = {path="../buffers"}
|
||||
bencode = {path = "../bencode", default-features=false}
|
||||
clone_to_owned = {path="../clone_to_owned"}
|
||||
buffers = {path="../buffers", package="librqbit-buffers", version = "2.2.1"}
|
||||
bencode = {path = "../bencode", default-features=false, package="librqbit-bencode", version="2.2.1"}
|
||||
clone_to_owned = {path="../clone_to_owned", package="librqbit-clone-to-owned", version = "2.2.1"}
|
||||
itertools = "0.11.0"
|
||||
|
|
|
|||
1
crates/librqbit_core/README.md
Symbolic link
1
crates/librqbit_core/README.md
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../README.md
|
||||
|
|
@ -1,17 +1,28 @@
|
|||
[package]
|
||||
name = "peer_binary_protocol"
|
||||
version = "0.1.0"
|
||||
name = "librqbit-peer-protocol"
|
||||
version = "2.2.1"
|
||||
edition = "2018"
|
||||
description = "Protocol for working with torrent peers. Used in rqbit torrent client."
|
||||
license = "Apache-2.0"
|
||||
documentation = "https://docs.rs/librqbit-peer-protocol"
|
||||
repository = "https://github.com/ikatson/rqbit"
|
||||
readme = "README.md"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[features]
|
||||
default = ["sha1-system"]
|
||||
sha1-system = ["bencode/sha1-system", "librqbit-core/sha1-system"]
|
||||
sha1-openssl = ["bencode/sha1-openssl", "librqbit-core/sha1-openssl"]
|
||||
sha1-rust = ["bencode/sha1-rust", "librqbit-core/sha1-rust"]
|
||||
|
||||
[dependencies]
|
||||
serde = {version = "1", features = ["derive"]}
|
||||
bincode = "1"
|
||||
byteorder = "1"
|
||||
buffers = {path="../buffers"}
|
||||
bencode = {path = "../bencode", default-features=false}
|
||||
clone_to_owned = {path="../clone_to_owned"}
|
||||
librqbit_core = {path="../librqbit_core"}
|
||||
buffers = {path="../buffers", package="librqbit-buffers", version = "2.2.1"}
|
||||
bencode = {path = "../bencode", default-features=false, package="librqbit-bencode", version="2.2.1"}
|
||||
clone_to_owned = {path="../clone_to_owned", package="librqbit-clone-to-owned", version = "2.2.1"}
|
||||
librqbit-core = {path="../librqbit_core", version = "2.2.1"}
|
||||
bitvec = "1"
|
||||
anyhow = "1"
|
||||
1
crates/peer_binary_protocol/README.md
Symbolic link
1
crates/peer_binary_protocol/README.md
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../README.md
|
||||
|
|
@ -14,8 +14,8 @@ default-tls = ["librqbit/default-tls"]
|
|||
rust-tls = ["librqbit/rust-tls"]
|
||||
|
||||
[dependencies]
|
||||
librqbit = {path="../librqbit", default-features=false}
|
||||
dht = {path="../dht"}
|
||||
librqbit = {path="../librqbit", default-features=false, version = "2.2.1"}
|
||||
dht = {path="../dht", package="librqbit-dht", version="2.2.1"}
|
||||
tokio = {version = "1", features = ["macros", "rt-multi-thread"]}
|
||||
anyhow = "1"
|
||||
clap = {version = "4", features = ["derive", "deprecated"]}
|
||||
|
|
|
|||
1
crates/rqbit/LICENSE
Symbolic link
1
crates/rqbit/LICENSE
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../../LICENSE
|
||||
1
crates/rqbit/README.md
Symbolic link
1
crates/rqbit/README.md
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../../README.md
|
||||
|
|
@ -1,7 +1,12 @@
|
|||
[package]
|
||||
name = "sha1w"
|
||||
version = "0.1.0"
|
||||
name = "librqbit-sha1-wrapper"
|
||||
version = "2.2.1"
|
||||
edition = "2018"
|
||||
description = "Common interface around various sha1 implementations used in rqbit torrent client."
|
||||
license = "Apache-2.0"
|
||||
documentation = "https://docs.rs/librqbit-sha1-wrapper"
|
||||
repository = "https://github.com/ikatson/rqbit"
|
||||
readme = "README.md"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
|
|
|
|||
1
crates/sha1w/README.md
Symbolic link
1
crates/sha1w/README.md
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../README.md
|
||||
Loading…
Add table
Add a link
Reference in a new issue