Skip to content

Commit

Permalink
Merge pull request #243 from redbadger/v0.8.0-rc.2
Browse files Browse the repository at this point in the history
V0.8.0 rc.2
  • Loading branch information
StuartHarris authored May 21, 2024
2 parents 05fd9e4 + 54078fe commit 20bb674
Show file tree
Hide file tree
Showing 57 changed files with 1,420 additions and 1,510 deletions.
154 changes: 77 additions & 77 deletions Cargo.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ keywords = ["crux", "crux_core", "cross-platform-ui", "ffi", "wasm"]
rust-version = "1.66"

[workspace.dependencies]
anyhow = "1.0.83"
serde = "1.0.201"
anyhow = "1.0.86"
serde = "1.0.202"

[workspace.lints.rust]
unsafe_code = "forbid"
Expand Down
2 changes: 1 addition & 1 deletion crux_cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ ignore = "0.4.22"
ramhorns = "1.0.0"
serde = { workspace = true, features = ["derive"] }
similar = { version = "2.5.0", features = ["inline"] }
toml = "0.8.2"
toml = "0.8.13"
2 changes: 1 addition & 1 deletion crux_core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ and this project adheres to

## [Unreleased]

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

Release candidate for 0.8.0

Expand Down
10 changes: 5 additions & 5 deletions 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.8.0-rc.1"
version = "0.8.0-rc.2"
readme = "README.md"
authors.workspace = true
repository.workspace = true
Expand All @@ -19,16 +19,16 @@ all-features = true
[dependencies]
anyhow.workspace = true
bincode = "1.3.3"
crossbeam-channel = "0.5.12"
crux_macros = { version = "0.3.10-rc.1", path = "../crux_macros" }
crossbeam-channel = "0.5.13"
crux_macros = { version = "0.3.10-rc.2", path = "../crux_macros" }
erased-serde = "0.4"
futures = "0.3.30"
serde = { workspace = true, features = ["derive"] }
serde-generate = { version = "0.25.1", optional = true }
serde-reflection = { version = "0.3.6", optional = true }
serde_json = "1.0.117"
slab = "0.4.9"
thiserror = "1.0.60"
thiserror = "1.0.61"

[dev-dependencies]
assert_fs = "1.0.13"
Expand All @@ -37,7 +37,7 @@ async-channel = "2.3"
crux_http = { path = "../crux_http" }
crux_time = { path = "../crux_time" }
doctest_support = { path = "../doctest_support" }
serde = { version = "1.0.201", features = ["derive"] }
serde = { version = "1.0.202", features = ["derive"] }
static_assertions = "1.1"
rand = "0.8"
url = "2.5.0"
Expand Down
7 changes: 3 additions & 4 deletions crux_core/src/bridge/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ where
let mut return_buffer = vec![];
let mut ser = bincode::Serializer::new(&mut return_buffer, options);

self.inner
.handle_response(EffectId(id), &mut deser, &mut ser);
self.inner.handle_response(id, &mut deser, &mut ser);

return_buffer
}
Expand Down Expand Up @@ -167,15 +166,15 @@ where
///
/// The `output` is serialized capability output. It will be deserialized by the core.
/// The `id` MUST match the `id` of the effect that triggered it, else the core will panic.
pub fn handle_response<'de, D, S>(&self, id: EffectId, response: D, requests_out: S)
pub fn handle_response<'de, D, S>(&self, id: u32, response: D, requests_out: S)
where
for<'a> A::Event: Deserialize<'a>,
D: ::serde::de::Deserializer<'de>,
S: ::serde::ser::Serializer,
{
let mut erased_response = <dyn erased_serde::Deserializer>::erase(response);
self.process(
Some(id),
Some(EffectId(id)),
&mut erased_response,
&mut <dyn erased_serde::Serializer>::erase(requests_out),
);
Expand Down
4 changes: 2 additions & 2 deletions crux_http/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ and this project adheres to

## [Unreleased]

## [0.9.2-rc.1](https://github.com/redbadger/crux/compare/crux_http-v0.9.1...crux_http-v0.9.2-rc.1) - 2024-05-20
## [0.9.2-rc.2](https://github.com/redbadger/crux/compare/crux_http-v0.9.1...crux_http-v0.9.2-rc.2) - 2024-05-21

### Other

- Release crux_core v0.8.0-rc.1
- Release crux_core v0.8.0-rc.2

## [0.9.1](https://github.com/redbadger/crux/compare/crux_http-v0.9.0...crux_http-v0.9.1) - 2024-05-14

Expand Down
6 changes: 3 additions & 3 deletions crux_http/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "crux_http"
description = "HTTP capability for use with crux_core"
version = "0.9.2-rc.1"
version = "0.9.2-rc.2"
readme = "README.md"
authors.workspace = true
repository.workspace = true
Expand All @@ -13,14 +13,14 @@ rust-version.workspace = true
[dependencies]
anyhow.workspace = true
async-trait = "0.1.80"
crux_core = { version = "0.8.0-rc.1", path = "../crux_core" }
crux_core = { version = "0.8.0-rc.2", 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 }
pin-project-lite = "0.2.14"
serde = { workspace = true, features = ["derive"] }
serde_json = "1.0.117"
thiserror = "1.0.60"
thiserror = "1.0.61"
url = "2.5.0"

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions crux_kv/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ and this project adheres to

## [Unreleased]

## [0.4.1-rc.1](https://github.com/redbadger/crux/compare/crux_kv-v0.4.0...crux_kv-v0.4.1-rc.1) - 2024-05-20
## [0.4.1-rc.2](https://github.com/redbadger/crux/compare/crux_kv-v0.4.0...crux_kv-v0.4.1-rc.2) - 2024-05-21

### Other

- Release crux_core v0.8.0-rc.1
- Release crux_core v0.8.0-rc.2
- registry now slab allocated with u32

## [0.4.0](https://github.com/redbadger/crux/compare/crux_kv-v0.3.0...crux_kv-v0.4.0) - 2024-05-17
Expand Down
6 changes: 3 additions & 3 deletions crux_kv/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "crux_kv"
description = "Key-Value capability for use with crux_core"
version = "0.4.1-rc.1"
version = "0.4.1-rc.2"
readme = "README.md"
authors.workspace = true
repository.workspace = true
Expand All @@ -12,6 +12,6 @@ rust-version.workspace = true

[dependencies]
anyhow.workspace = true
crux_core = { version = "0.8.0-rc.1", path = "../crux_core" }
crux_core = { version = "0.8.0-rc.2", path = "../crux_core" }
serde = { workspace = true, features = ["derive"] }
thiserror = "1.0.60"
thiserror = "1.0.61"
2 changes: 1 addition & 1 deletion crux_macros/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ and this project adheres to

## [Unreleased]

## [0.3.10-rc.1](https://github.com/redbadger/crux/compare/crux_macros-v0.3.9...crux_macros-v0.3.10-rc.1) - 2024-05-20
## [0.3.10-rc.2](https://github.com/redbadger/crux/compare/crux_macros-v0.3.9...crux_macros-v0.3.10-rc.2) - 2024-05-21

### Other

Expand Down
12 changes: 6 additions & 6 deletions crux_macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "crux_macros"
description = "Macros for use with crux_core"
version = "0.3.10-rc.1"
version = "0.3.10-rc.2"
authors.workspace = true
repository.workspace = true
edition.workspace = true
Expand All @@ -13,15 +13,15 @@ rust-version.workspace = true
proc-macro = true

[dependencies]
darling = "0.20.8"
darling = "0.20.9"
proc-macro-error = "1.0.4"
proc-macro2 = "1.0.82"
proc-macro2 = "1.0.83"
quote = "1.0.36"
syn = "2.0.63"
syn = "2.0.65"

[dev-dependencies]
crux_core = { path = "../crux_core" }
crux_http = { path = "../crux_http" }
insta = "1.38"
insta = "1.39"
prettyplease = "0.2"
serde = { version = "1.0.201", features = ["derive"] }
serde = { version = "1.0.202", features = ["derive"] }
4 changes: 2 additions & 2 deletions crux_platform/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.1.12-rc.1](https://github.com/redbadger/crux/compare/crux_platform-v0.1.11...crux_platform-v0.1.12-rc.1) - 2024-05-20
## [0.1.12-rc.2](https://github.com/redbadger/crux/compare/crux_platform-v0.1.11...crux_platform-v0.1.12-rc.2) - 2024-05-21

### Other

- Release crux_core v0.8.0-rc.1
- Release crux_core v0.8.0-rc.2

## [0.1.11](https://github.com/redbadger/crux/compare/crux_platform-v0.1.10...crux_platform-v0.1.11) - 2024-05-15

Expand Down
4 changes: 2 additions & 2 deletions crux_platform/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "crux_platform"
description = "Platform capability for use with crux_core"
version = "0.1.12-rc.1"
version = "0.1.12-rc.2"
readme = "README.md"
authors.workspace = true
repository.workspace = true
Expand All @@ -11,5 +11,5 @@ keywords.workspace = true
rust-version.workspace = true

[dependencies]
crux_core = { version = "0.8.0-rc.1", path = "../crux_core" }
crux_core = { version = "0.8.0-rc.2", path = "../crux_core" }
serde = { workspace = true, features = ["derive"] }
4 changes: 2 additions & 2 deletions crux_time/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ and this project adheres to

## [Unreleased]

## [0.4.3-rc.1](https://github.com/redbadger/crux/compare/crux_time-v0.4.2...crux_time-v0.4.3-rc.1) - 2024-05-20
## [0.4.3-rc.2](https://github.com/redbadger/crux/compare/crux_time-v0.4.2...crux_time-v0.4.3-rc.2) - 2024-05-21

### Other

- Release crux_core v0.8.0-rc.1
- Release crux_core v0.8.0-rc.2

## [0.4.2](https://github.com/redbadger/crux/compare/crux_time-v0.4.1...crux_time-v0.4.2) - 2024-05-15

Expand Down
6 changes: 3 additions & 3 deletions crux_time/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "crux_time"
description = "Time capability for use with crux_core"
version = "0.4.3-rc.1"
version = "0.4.3-rc.2"
readme = "README.md"
authors.workspace = true
repository.workspace = true
Expand All @@ -11,10 +11,10 @@ keywords.workspace = true
rust-version.workspace = true

[dependencies]
crux_core = { version = "0.8.0-rc.1", path = "../crux_core" }
crux_core = { version = "0.8.0-rc.2", path = "../crux_core" }
serde = { workspace = true, features = ["derive"] }
chrono = { version = "0.4.38", features = ["serde"], optional = true }
thiserror = "1.0.60"
thiserror = "1.0.61"

[dev-dependencies]
serde_json = "1.0.117"
4 changes: 2 additions & 2 deletions examples/bridge_echo/Cargo.lock

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

4 changes: 2 additions & 2 deletions examples/bridge_echo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ keywords = ["crux", "crux_core", "cross-platform-ui", "ffi", "wasm"]
rust-version = "1.66"

[workspace.dependencies]
anyhow = "1.0.83"
anyhow = "1.0.86"
# crux_core = "0.7"
crux_core = { path = "../../crux_core" }
serde = "1.0.201"
serde = "1.0.202"

[workspace.metadata.bin]
cargo-xcode = { version = "=1.7.0" }
2 changes: 1 addition & 1 deletion examples/bridge_echo/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ rust-version.workspace = true
[dependencies]
anyhow.workspace = true
tokio = { version = "1.37", features = ["full"] }
crossbeam-channel = "0.5.12"
crossbeam-channel = "0.5.13"
shared = { path = "../shared" }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
6 changes: 3 additions & 3 deletions examples/bridge_echo/shared/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ typegen = ["crux_core/typegen"]
crux_core.workspace = true
serde = { workspace = true, features = ["derive"] }
lazy_static = "1.4.0"
uniffi = "0.27.1"
uniffi = "0.27.2"
wasm-bindgen = "0.2.92"

[target.uniffi-bindgen.dependencies]
uniffi = { version = "0.27.1", features = ["cli"] }
uniffi = { version = "0.27.2", features = ["cli"] }

[build-dependencies]
uniffi = { version = "0.27.1", features = ["build"] }
uniffi = { version = "0.27.2", features = ["build"] }
2 changes: 1 addition & 1 deletion examples/bridge_echo/web-remix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@remix-run/eslint-config": "^2.9.2",
"@types/react": "^18.3.2",
"@types/react-dom": "^18.3.0",
"eslint": "^9.2.0",
"eslint": "^9.3.0",
"typescript": "^5.4.5"
},
"engines": {
Expand Down
Loading

0 comments on commit 20bb674

Please sign in to comment.