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
112 changes: 108 additions & 4 deletions Cargo.lock

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

8 changes: 8 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ reqwest = { version = "0.12", default-features = false, features = [
] }
reqwest-eventsource = "0.6"

# TLS
rustls = { version = "0.23", default-features = false, features = ["ring", "std"] }
tokio-rustls = { version = "0.26" }
rcgen = { version = "0.13" }
ring = { version = "0.17" }
rustls-pemfile = { version = "2" }
time = { version = "0.3" }

# CLI (removed clap - now using Python hyperparameter)
strum_macros = "0.27"

Expand Down
12 changes: 11 additions & 1 deletion crates/pulsing-actor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ repository = "https://github.com/reiase/pulsing"
keywords = ["actor", "distributed", "cluster", "gossip"]

[features]
default = []
default = ["tls"]
# Enable integration tests that require a running cluster
integration = []
# Enable OTLP exporter for sending traces to Jaeger/Tempo
otlp = ["opentelemetry-otlp"]
# Enable TLS support with passphrase-derived certificates
tls = ["dep:rustls", "dep:tokio-rustls", "dep:rcgen", "dep:ring", "dep:rustls-pemfile", "dep:time"]

[dependencies]
# Async runtime
Expand Down Expand Up @@ -55,6 +57,14 @@ hyper = { workspace = true }
hyper-util = { workspace = true }
http-body-util = { workspace = true }

# TLS (optional)
rustls = { workspace = true, optional = true }
tokio-rustls = { workspace = true, optional = true }
rcgen = { workspace = true, optional = true }
ring = { workspace = true, optional = true }
rustls-pemfile = { workspace = true, optional = true }
time = { workspace = true, optional = true }

[dev-dependencies]
tokio-test = { workspace = true }
tracing-subscriber = { workspace = true }
Expand Down
2 changes: 2 additions & 0 deletions crates/pulsing-actor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ pub mod circuit_breaker;
pub mod cluster;
pub mod metrics;
pub mod policies;
pub mod supervision;
pub mod system;
pub mod system_actor;
pub mod tracing;
Expand All @@ -130,6 +131,7 @@ pub mod watch;
/// import from `pulsing_actor::actor::*`.
pub mod prelude {
pub use crate::actor::{Actor, ActorContext, ActorRef, Message};
pub use crate::supervision::{BackoffStrategy, RestartPolicy, SupervisionSpec};
pub use crate::system::{
ActorSystem, LoadBalanceStrategy, ResolveOptions, SpawnOptions, SystemConfig,
};
Expand Down
Loading
Loading