Skip to content

Commit

Permalink
Release crux_core v0.8.0-rc.0
Browse files Browse the repository at this point in the history
  • Loading branch information
StuartHarris committed May 20, 2024
1 parent f2bc473 commit 54ca824
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 31 additions & 1 deletion crux_core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,45 @@ and this project adheres to

## [Unreleased]

## [0.8.0-rc.0](https://github.com/redbadger/crux/compare/crux_core-v0.7.6...crux_core-v0.8.0-rc.0) - 2024-05-20

Release candidate for 0.8.0

Note: this is a breaking change release.

There are 2 main changes, both of which are breaking.

1. Simplify construction of capabilities, so they don't require the app type.
The `Effect` derive macro no longer requires the name of the type that
implements the `App` trait in situations where its name is not also `App`.
This simplifies user code. See https://github.com/redbadger/crux/pull/241 for
more details.

2. Requests now use `EffectId(u32)` instead of `Uuid`. This is the `id` that is
used to identify the effect in the effect registry in order to match
responses from the shell with their initial request. Ids are serialized as a
plain integer of type `u32` and they can be reused as effects are resolved.
See https://github.com/redbadger/crux/pull/238 for more details.

### Other

- update docs, comments and book
- Remove remaining mentions of the app attribute for Effect macro
- Make WithContext generic over Event, not App, enabling App types to be generic
- registry now slab allocated with u32
- add Clone impl for ComposeContext

## [0.7.6](https://github.com/redbadger/crux/compare/crux_core-v0.7.5...crux_core-v0.7.6) - 2024-05-15

### Other

- remove unused deps

## [0.7.5](https://github.com/redbadger/crux/compare/crux_core-v0.7.4...crux_core-v0.7.5) - 2024-05-14

This is a minor maintenance release, with the most interesting change being a
relaxation of the `Fn` trait bound to `FnOnce`/`FnMut` in capability event callbacks. (see https://github.com/redbadger/crux/pull/229 for more info)
relaxation of the `Fn` trait bound to `FnOnce`/`FnMut` in capability event
callbacks. (see https://github.com/redbadger/crux/pull/229 for more info)

### Other

Expand Down
2 changes: 1 addition & 1 deletion crux_core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "crux_core"
description = "Cross-platform app development in Rust"
version = "0.7.6"
version = "0.8.0-rc.0"
readme = "README.md"
authors.workspace = true
repository.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crux_http/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ rust-version.workspace = true
[dependencies]
anyhow.workspace = true
async-trait = "0.1.80"
crux_core = { version = "0.7", path = "../crux_core" }
crux_core = { version = "0.8.0-rc.0", path = "../crux_core" }
derive_builder = "0.20.0"
futures-util = "0.3"
http-types = { package = "http-types-red-badger-temporary-fork", version = "2.12.0", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion crux_kv/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ rust-version.workspace = true

[dependencies]
anyhow.workspace = true
crux_core = { version = "0.7", path = "../crux_core" }
crux_core = { version = "0.8.0-rc.0", path = "../crux_core" }
serde = { workspace = true, features = ["derive"] }
thiserror = "1.0.60"
2 changes: 1 addition & 1 deletion crux_platform/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ keywords.workspace = true
rust-version.workspace = true

[dependencies]
crux_core = { version = "0.7", path = "../crux_core" }
crux_core = { version = "0.8.0-rc.0", path = "../crux_core" }
serde = { workspace = true, features = ["derive"] }
2 changes: 1 addition & 1 deletion crux_time/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ keywords.workspace = true
rust-version.workspace = true

[dependencies]
crux_core = { version = "0.7", path = "../crux_core" }
crux_core = { version = "0.8.0-rc.0", path = "../crux_core" }
serde = { workspace = true, features = ["derive"] }
chrono = { version = "0.4.38", features = ["serde"], optional = true }
thiserror = "1.0.60"
Expand Down
2 changes: 1 addition & 1 deletion templates/simple_counter/shared_types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ rust-version.workspace = true

[build-dependencies]
anyhow.workspace = true
crux_core = { version = "0.7", features = ["typegen"] }
crux_core = { version = "0.8.0-rc.0", features = ["typegen"] }
shared = { path = "../shared", features = ["typegen"] }

0 comments on commit 54ca824

Please sign in to comment.