Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ name: CI

on:
pull_request:
types: [opened, synchronize, ready_for_review]
workflow_dispatch:

env:
CARGO_TERM_COLOR: always

jobs:
ci:
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -23,7 +25,15 @@ jobs:
uses: extractions/setup-just@v2

- name: Install cargo-spellcheck
run: cargo install cargo-spellcheck
uses: taiki-e/install-action@v2
with:
tool: cargo-spellcheck
fallback: none

- name: Install taplo
uses: taiki-e/install-action@v2
with:
tool: taplo-cli

- name: Run CI
run: just ci
10 changes: 3 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
[workspace]
members = ["maiko", "maiko-macros"]
resolver = "2"
members = [
"maiko",
"maiko-macros",
]

[workspace.metadata.spellcheck]
config = "spellcheck.toml"

[workspace.metadata.spellcheck]
config = "spellcheck.toml"
2 changes: 2 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ default: check
check:
cargo fmt --all -- --check
cargo clippy --workspace --all-targets --all-features -- -D warnings
taplo fmt --check

# Full CI: format, lint, test, spell, build examples
ci: check test spell build

# Format code
fmt:
cargo fmt --all
taplo fmt

# Run all tests
test:
Expand Down
26 changes: 13 additions & 13 deletions maiko-macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
[package]
name = "maiko-macros"
version = "0.3.1"
edition = "2024"
rust-version = "1.85"
description = "Procedural macros for the Maiko actor runtime"
authors = ["David de Rosier <ddrcode@gmail.com>"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/maiko-rs/maiko"
keywords = ["maiko", "actor", "macro", "derive"]
categories = ["development-tools::procedural-macro-helpers"]
homepage = "https://github.com/maiko-rs/maiko"
authors = ["David de Rosier <ddrcode@gmail.com>"]
categories = ["development-tools::procedural-macro-helpers"]
description = "Procedural macros for the Maiko actor runtime"
documentation = "https://docs.rs/maiko-macros"
readme = "README.md"
edition = "2024"
homepage = "https://github.com/maiko-rs/maiko"
keywords = ["actor", "derive", "macro", "maiko"]
license = "MIT OR Apache-2.0"
name = "maiko-macros"
readme = "README.md"
repository = "https://github.com/maiko-rs/maiko"
rust-version = "1.85"
version = "0.3.1"

[lib]
proc-macro = true

[dependencies]
quote = "1.0"
syn = "2.0"
syn = "2.0"
72 changes: 36 additions & 36 deletions maiko/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,71 +1,71 @@
[package]
name = "maiko"
version = "0.3.1"
edition = "2024"
rust-version = "1.85"
description = "Lightweight event-driven actor runtime with topic-based pub/sub for Tokio"
authors = ["David de Rosier <ddrcode@gmail.com>"]
license = "MIT OR Apache-2.0"
keywords = ["actor", "pubsub", "tokio", "event-driven", "message-passing"]
categories = ["asynchronous", "concurrency"]
repository = "https://github.com/maiko-rs/maiko"
homepage = "https://github.com/maiko-rs/maiko"
authors = ["David de Rosier <ddrcode@gmail.com>"]
categories = ["asynchronous", "concurrency"]
description = "Lightweight event-driven actor runtime with topic-based pub/sub for Tokio"
documentation = "https://docs.rs/maiko"
readme = "README.md"
exclude = [".gitignore", ".github/"]
edition = "2024"
exclude = [".github/", ".gitignore"]
homepage = "https://github.com/maiko-rs/maiko"
keywords = ["actor", "event-driven", "message-passing", "pubsub", "tokio"]
license = "MIT OR Apache-2.0"
name = "maiko"
readme = "README.md"
repository = "https://github.com/maiko-rs/maiko"
rust-version = "1.85"
version = "0.3.1"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[features]
default = ["macros"]
macros = ["dep:maiko-macros"]
serde = ["dep:serde", "dep:serde_json"]
recorder = ["monitoring", "serde"]
monitoring = []
default = ["macros"]
macros = ["dep:maiko-macros"]
monitoring = []
recorder = ["monitoring", "serde"]
serde = ["dep:serde", "dep:serde_json"]
test-harness = ["monitoring"]

[dependencies]
futures-util = { version = "0.3", default-features = false, features = ["alloc"] }
maiko-macros = { version = "=0.3.1", optional = true, path = "../maiko-macros/" }
serde = { version = "1.0", features = ["derive", "rc"], optional = true }
serde_json = { version = "1.0", optional = true }
thiserror = "2.0"
tokio = {version="1.49", features=["macros", "rt", "rt-multi-thread", "time"]}
serde = { version = "1.0", features = ["derive", "rc"], optional = true }
serde_json = { version = "1.0", optional = true }
thiserror = "2.0"
tokio = { version = "1.49", features = ["macros", "rt", "rt-multi-thread", "time"] }
tokio-stream = "0.1"
tracing = "0.1"
uuid = { version = "1.20", features = ["v4"] }
tracing = "0.1"
uuid = { version = "1.20", features = ["v4"] }

[dev-dependencies]
criterion = "0.8.2"
getrandom = "0.4"
criterion = "0.8.2"
getrandom = "0.4"
tracing-subscriber = { version = "0.3", default-features = false, features = ["fmt"] }

[[example]]
name = "hello-world"
name = "hello-world"
required-features = ["default"]

[[example]]
name = "pingpong"
name = "pingpong"
required-features = ["default"]

[[example]]
name = "guesser"
name = "guesser"
required-features = ["default"]

[[example]]
name = "monitoring"
name = "monitoring"
required-features = ["monitoring"]

[[example]]
name = "arbitrage"
name = "arbitrage"
required-features = ["default", "test-harness"]

[[example]]
name = "backpressure"

[[bench]]
name = "broker_subscriber_lookup"
harness = false
path = "benches/broker_subscriber_lookup.rs"
name = "broker_subscriber_lookup"
path = "benches/broker_subscriber_lookup.rs"
9 changes: 9 additions & 0 deletions taplo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
include = ["**/Cargo.toml", "Cargo.toml"]

[formatting]
align_entries = true
column_width = 120
indent_tables = true
reorder_arrays = true
reorder_keys = true
reorder_inline_tables = false
Loading