Skip to content

update smol dependencies - #866

Merged
dignifiedquire merged 3 commits into
async-rs:masterfrom
Keruspe:smol04
Sep 14, 2020
Merged

dignifiedquire merged 3 commits into
async-rs:masterfrom
Keruspe:smol04

Conversation

@Keruspe

@Keruspe Keruspe commented Aug 27, 2020

Copy link
Copy Markdown
Member

Updates all of the subcomponents of smol that we're now using to their latest versions

cc @stjepang

Signed-off-by: Marc-Antoine Perennou <[email protected]>

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm, thanks!

@ghost

ghost commented Aug 31, 2020 •

Copy link
Copy Markdown

The codebase has a dozen or so instances of this line of code:

once_cell::sync::Lazy::force(&crate::rt::RUNTIME);

With latest version of smol, it is not needed anywhere except in src/task/builder.rs. Can you delete it everywhere except in the task module?

This way, if libraries like async-h1 depend on async-std and only use its timers or networking primitives, the executor threadpool will not even be initialized. The only thread that gets started is the "async-io" thread.

I think this will make async-std feel more lightweight because the executor threadpool is then only started by std::task::spawn().

@Keruspe

Keruspe commented Aug 31, 2020

Copy link
Copy Markdown
Member Author

Nice catch indeed, fixed

Signed-off-by: Marc-Antoine Perennou <[email protected]>
@Keruspe

Keruspe commented Sep 7, 2020

Copy link
Copy Markdown
Member Author

Updated to newly released 1.0 versions

@dignifiedquire dignifiedquire left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

@dignifiedquire
dignifiedquire merged commit f731959 into async-rs:master Sep 14, 2020
@Keruspe

Keruspe commented Sep 14, 2020 •

Copy link
Copy Markdown
Member Author

@stjepang async-executor 1.1.0 fails o android (CI now failing after this has been merged)

error[E0432]: unresolved import `std::sync::atomic::AtomicU64`
  --> /cargo/registry/src/github.com-1ecc6299db9ec823/async-executor-1.1.0/src/lib.rs:29:47
   |
29 | use std::sync::atomic::{AtomicBool, Ordering, AtomicU64, AtomicUsize};
   |                                               ^^^^^^^^^
   |                                               |
   |                                               no `AtomicU64` in `sync::atomic`
   |                                               help: a similar name exists in the module: `AtomicU8`

@ghost

ghost commented Sep 14, 2020

Copy link
Copy Markdown

Should be fixed with async-executor v1.1.1

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.

2 participants