remove unnecessary features from async-std & tokio
This commit is contained in:
+2
-1
@@ -1,12 +1,13 @@
|
|||||||
## Upcoming
|
## Upcoming
|
||||||
|
|
||||||
- Nothing as of now
|
- Reduced amount of required features of `async_std` and `async_tokio`
|
||||||
|
|
||||||
# v0.2.2
|
# v0.2.2
|
||||||
|
|
||||||
- osu & fruits:
|
- osu & fruits:
|
||||||
- Fixed specific slider patterns
|
- Fixed specific slider patterns
|
||||||
- Optimized Bezier, Catmull, and other small things
|
- Optimized Bezier, Catmull, and other small things
|
||||||
|
|
||||||
Benchmarking for osu!standard showed a 25%+ improvement for performance aswell as accuracy
|
Benchmarking for osu!standard showed a 25%+ improvement for performance aswell as accuracy
|
||||||
|
|
||||||
- fruits:
|
- fruits:
|
||||||
|
|||||||
+7
-1
@@ -31,6 +31,8 @@ async_tokio = ["tokio"]
|
|||||||
[dependencies.async-std]
|
[dependencies.async-std]
|
||||||
version = "1.9"
|
version = "1.9"
|
||||||
optional = true
|
optional = true
|
||||||
|
default-features = false
|
||||||
|
features = ["async-io", "std"]
|
||||||
|
|
||||||
[dependencies.tokio]
|
[dependencies.tokio]
|
||||||
version = "1.2"
|
version = "1.2"
|
||||||
@@ -40,4 +42,8 @@ features = ["io-util"]
|
|||||||
|
|
||||||
[dev-dependencies.tokio]
|
[dev-dependencies.tokio]
|
||||||
version = "1.2"
|
version = "1.2"
|
||||||
features = ["fs", "rt-multi-thread"]
|
features = ["fs", "rt"]
|
||||||
|
|
||||||
|
[dev-dependencies.async-std]
|
||||||
|
version = "1.9"
|
||||||
|
default-features = true
|
||||||
|
|||||||
+3
-2
@@ -855,9 +855,10 @@ mod tests {
|
|||||||
#[cfg(feature = "async_tokio")]
|
#[cfg(feature = "async_tokio")]
|
||||||
#[test]
|
#[test]
|
||||||
fn parsing_async_tokio() {
|
fn parsing_async_tokio() {
|
||||||
use tokio::{fs::File, runtime::Runtime};
|
use tokio::{fs::File, runtime::Builder};
|
||||||
|
|
||||||
Runtime::new()
|
Builder::new_current_thread()
|
||||||
|
.build()
|
||||||
.expect("could not start runtime")
|
.expect("could not start runtime")
|
||||||
.block_on(async {
|
.block_on(async {
|
||||||
let map_id = map_id();
|
let map_id = map_id();
|
||||||
|
|||||||
+2
-1
@@ -68,7 +68,8 @@ fn fruits_sync() {
|
|||||||
#[cfg(feature = "async_tokio")]
|
#[cfg(feature = "async_tokio")]
|
||||||
#[test]
|
#[test]
|
||||||
fn fruits_async_tokio() {
|
fn fruits_async_tokio() {
|
||||||
tokio::runtime::Runtime::new()
|
tokio::runtime::Builder::new_current_thread()
|
||||||
|
.build()
|
||||||
.expect("could not start runtime")
|
.expect("could not start runtime")
|
||||||
.block_on(async {
|
.block_on(async {
|
||||||
for result in RESULTS {
|
for result in RESULTS {
|
||||||
|
|||||||
+2
-1
@@ -68,7 +68,8 @@ fn mania_sync() {
|
|||||||
#[cfg(feature = "async_tokio")]
|
#[cfg(feature = "async_tokio")]
|
||||||
#[test]
|
#[test]
|
||||||
fn mania_async_tokio() {
|
fn mania_async_tokio() {
|
||||||
tokio::runtime::Runtime::new()
|
tokio::runtime::Builder::new_current_thread()
|
||||||
|
.build()
|
||||||
.expect("could not start runtime")
|
.expect("could not start runtime")
|
||||||
.block_on(async {
|
.block_on(async {
|
||||||
for result in RESULTS {
|
for result in RESULTS {
|
||||||
|
|||||||
+2
-1
@@ -82,7 +82,8 @@ fn osu_sync() {
|
|||||||
#[cfg(feature = "async_tokio")]
|
#[cfg(feature = "async_tokio")]
|
||||||
#[test]
|
#[test]
|
||||||
fn osu_async_tokio() {
|
fn osu_async_tokio() {
|
||||||
tokio::runtime::Runtime::new()
|
tokio::runtime::Builder::new_current_thread()
|
||||||
|
.build()
|
||||||
.expect("could not start runtime")
|
.expect("could not start runtime")
|
||||||
.block_on(async {
|
.block_on(async {
|
||||||
for result in RESULTS {
|
for result in RESULTS {
|
||||||
|
|||||||
+2
-1
@@ -68,7 +68,8 @@ fn taiko_sync() {
|
|||||||
#[cfg(feature = "async_tokio")]
|
#[cfg(feature = "async_tokio")]
|
||||||
#[test]
|
#[test]
|
||||||
fn taiko_async_tokio() {
|
fn taiko_async_tokio() {
|
||||||
tokio::runtime::Runtime::new()
|
tokio::runtime::Builder::new_current_thread()
|
||||||
|
.build()
|
||||||
.expect("could not start runtime")
|
.expect("could not start runtime")
|
||||||
.block_on(async {
|
.block_on(async {
|
||||||
for result in RESULTS {
|
for result in RESULTS {
|
||||||
|
|||||||
Reference in New Issue
Block a user