Skip to content
This repository has been archived by the owner on Dec 25, 2022. It is now read-only.

[WIP] Migrate to newest Actix #63

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

nyurik
Copy link

@nyurik nyurik commented Jun 9, 2022

ATTENTION maintainers: several of the examples need your expert opinion - they are currently panicking with

thread 'main' panicked at '`spawn_local` called from outside of a `task::LocalSet`', .cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.19.2/src/task/local.rs:306:18
  • Update to latest Actix
  • Fix build instructions
  • Mark several tests as failing to avoid confusing users

ATTENTION maintainers: several of the examples need your expert opinion - they are currently panicking with

```
thread 'main' panicked at '`spawn_local` called from outside of a `task::LocalSet`', .cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.19.2/src/task/local.rs:306:18
```

* Update to latest Actix
* Fix build instructions
* Mark several tests as failing to avoid confusing users
@nyurik
Copy link
Author

nyurik commented Jun 9, 2022

@robjtede thx for merging the other PRs, I tried to migrate to the new version of Actix, but i think I might need an expert to look over the changes - I wouldn't want to give the wrong info in the book, but the current info is severely outdated. Any feedback would be great, thx!

@Nerixyz
Copy link

Nerixyz commented Jun 9, 2022

they are currently panicking with

As far as I can tell, since actix-rt v2, you have to run actors inside SystemRunner::block_on, i.e. annotate the (async) main function with #[actix::main], or explicitly call block_on like in the actix tests.

Comment on lines +19 to +20
# intellij files
**/.idea
Copy link
Member

Choose a reason for hiding this comment

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

I'd prefer to place it on your gitignore config.

@JohnTitor
Copy link
Member

JohnTitor commented Jun 19, 2022

Could you also upgrade MSRV CI to 1.54? Or, we even don't have to check MSRV here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants