| Crates.io | wasmcloud-core |
| lib.rs | wasmcloud-core |
| version | 0.20.0 |
| created_at | 2023-11-08 17:51:31.740144+00 |
| updated_at | 2025-05-28 02:49:46.424765+00 |
| description | wasmCloud core functionality shared throughout the ecosystem |
| homepage | |
| repository | https://github.com/wasmCloud/wasmCloud |
| max_upload_size | |
| id | 1029207 |
| size | 357,995 |
wasmcloud-coreThis repository contains the core data types, traits and reusable functionality to enable the wasmCloud ecosystem.
This crate provides:
This crate is meant to be used by programs, utilities and infrastructure targeting the wasmCloud platform.
To use wasmcloud-core in your project, you can add it via cargo add:
cargo add wasmcloud-core
Or include the following in your Cargo.toml:
wasmcloud-core = "0.7.0"
wasmcloud-core comes with the following features:
| Feature | Default? | Description |
|---|---|---|
| hyper-rustls | yes | Enable hyper-rustls usage (see tls module) |
| oci | yes | Enable oci-client and [oci-wasm] usage (see tls module) |
| reqwest | yes | Enable [reqwest][request] extensions (see tls module) |
| rustls-native-certs | yes | Enable rustls-native-certs (see tls module) |
| webpki-roots | yes | Enable webpki-roots (see tls module) |
| otel | no | Enable OpenTelemetry module support |
wasmcloud-corewasmcloud-core does not provide a prelude, but instead exports types as needed under appropriate modules.
Import the needed types and traits as necessary from your project similarly to the following:
use wasmcloud_core::nats::convert_header_map_to_hashmap;
use wasmcloud_core::rpc::{health_subject, link_del_subject, link_put_subject, shutdown_subject};
use wasmcloud_core::{
HealthCheckRequest, HealthCheckResponse, HostData, InterfaceLinkDefinition, LatticeTarget,
};
Have a change that belongs be in wasmcloud-core? Please feel free to file an issue and/or join us on the wasmCloud slack!