| Crates.io | eshanized-polaris |
| lib.rs | eshanized-polaris |
| version | 0.1.1 |
| created_at | 2025-10-14 19:13:57.528423+00 |
| updated_at | 2025-10-14 19:25:29.276512+00 |
| description | Rust-native distributed compute and orchestration framework for scaling concurrent workloads |
| homepage | https://gitlab.com/TIVisionOSS/crates/polaris |
| repository | https://gitlab.com/TIVisionOSS/crates/polaris |
| max_upload_size | |
| id | 1882953 |
| size | 72,475 |
Rust-native distributed compute and orchestration framework for scaling concurrent workloads.
use eshanized_polaris::prelude::*;
#[eshanized_polaris::task]
async fn compute(x: i32) -> PolarisResult<i32> {
Ok(x * x)
}
#[tokio::main]
async fn main() -> PolarisResult<()> {
let cluster = Cluster::builder()
.with_local_node()
.build()
.await?;
let task = Task::new("compute", bytes::Bytes::from("5"));
let handle = cluster.submit(task).await?;
let result = handle.result().await?;
Ok(())
}
Add to your Cargo.toml:
[dependencies]
eshanized-polaris = "0.1"
tokio = { version = "1", features = ["full"] }
MIT - See LICENSE for details.