simple-actors/CHANGELOG.md
Blake Rain a197655365
Some checks failed
Check / check (push) Failing after 23s
feat: better actor construction
2024-05-13 12:47:06 +01:00

1.6 KiB
Raw Permalink Blame History

Changelog

simple-actors 0.4.0 (2024-05-13)

🚨 Breaking Changes

  • The Actor::started method has been replaced by an Actor::create method, and the new create method is used to create the actor from a new associated Actor::Args type. This allows actors to be created in their task, rather than externally. This also allows an actor to be constructed with it's WeakHandle and Context, rather than using intermediate values.

simple-actors 0.3.0 (2024-04-16)

🚨 Breaking Changes

  • Added a Rust version constraint of 1.75.
  • Removed the use of async_trait crate.

simple-actors 0.2.0 (2024-04-08)

🚨 Breaking Changes

  • Spawning actors is now done using a Context, and is no longer optional. This was mostly to combat issues where actors spawned other actors, which resulted in JoinHandles that were not easily tracked. Making the Context mandatory to spawn actors helps mitigate the issue.
  • The get_actor_type_name on a Recipient or WeakRecipient is no longer available, and the Debug trait implementations for those types no longer include the actor type name.

🛠 Fixes

  • Changed the tokio dependency from 1.33 to 1.0
  • Updated the env_logger dev dependency from 0.10 to 0.11

Features

  • The WeakRecipient type was brought further into parity with the WeakHandle type, including the Default and Clone trait implementations and a WeakRecipient::clear() method.