mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
aquatic_udp: rename glommio feature to "io_uring", remove from default
This commit is contained in:
parent
d0aa87f99e
commit
5729f337ad
3 changed files with 3 additions and 5 deletions
1
TODO.md
1
TODO.md
|
|
@ -1,7 +1,6 @@
|
||||||
# TODO
|
# TODO
|
||||||
|
|
||||||
* aquatic_udp glommio
|
* aquatic_udp glommio
|
||||||
* disable by default!
|
|
||||||
* consider adding ConnectedScrapeRequest::Scrape(PendingScrapeRequest)
|
* consider adding ConnectedScrapeRequest::Scrape(PendingScrapeRequest)
|
||||||
containing TransactionId and BTreeMap<usize, InfoHash>, and same for
|
containing TransactionId and BTreeMap<usize, InfoHash>, and same for
|
||||||
response
|
response
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,7 @@ path = "src/lib/lib.rs"
|
||||||
name = "aquatic_udp"
|
name = "aquatic_udp"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["with-glommio"]
|
io_uring = ["glommio", "futures-lite"]
|
||||||
with-glommio = ["glommio", "futures-lite"]
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
anyhow = "1"
|
anyhow = "1"
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ use cfg_if::cfg_if;
|
||||||
|
|
||||||
pub mod common;
|
pub mod common;
|
||||||
pub mod config;
|
pub mod config;
|
||||||
#[cfg(all(feature = "with-glommio", target_os = "linux"))]
|
#[cfg(all(feature = "io_uring", target_os = "linux"))]
|
||||||
pub mod glommio;
|
pub mod glommio;
|
||||||
pub mod mio;
|
pub mod mio;
|
||||||
|
|
||||||
|
|
@ -21,7 +21,7 @@ pub const APP_NAME: &str = "aquatic_udp: UDP BitTorrent tracker";
|
||||||
|
|
||||||
pub fn run(config: Config) -> ::anyhow::Result<()> {
|
pub fn run(config: Config) -> ::anyhow::Result<()> {
|
||||||
cfg_if! {
|
cfg_if! {
|
||||||
if #[cfg(all(feature = "with-glommio", target_os = "linux"))] {
|
if #[cfg(all(feature = "io_uring", target_os = "linux"))] {
|
||||||
glommio::run(config)
|
glommio::run(config)
|
||||||
} else {
|
} else {
|
||||||
mio::run(config)
|
mio::run(config)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue