Skip to content

Replace futures with futures-util with no default features - #522

Open
paolobarbolini wants to merge 1 commit into
sreeise:masterfrom
paolobarbolini:futures-smaller
Open

Replace futures with futures-util with no default features#522
paolobarbolini wants to merge 1 commit into
sreeise:masterfrom
paolobarbolini:futures-smaller

Conversation

@paolobarbolini

Copy link
Copy Markdown

This replaces futures with futures-util. futures re-exports the futures-util API plus adds a few more things that this crate never uses, so making the switch reduces the dependency tree.

I've also replaced two occurrences of futures::executor::block_on(tokio::fs::remove_file(path)).unwrap(); in test-tools with std APIs, which didn't make sense because tokio expects it's own method to be called from it's own runtime. Also tokio::fs::remove_file spawns std::fs::remove_file on a blocking thread, so we may as well call the std API directly with no indirection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant