20 breaking releases

0.21.0 Nov 25, 2025
0.20.0 May 28, 2025
0.19.0 May 23, 2025
0.18.0 Mar 21, 2025
0.2.0 Nov 21, 2023

#2047 in WebAssembly

Download history 179/week @ 2025-09-20 341/week @ 2025-09-27 280/week @ 2025-10-04 227/week @ 2025-10-11 208/week @ 2025-10-18 733/week @ 2025-10-25 167/week @ 2025-11-01 161/week @ 2025-11-08 658/week @ 2025-11-15 326/week @ 2025-11-22 153/week @ 2025-11-29 332/week @ 2025-12-06 81/week @ 2025-12-13 137/week @ 2025-12-20 185/week @ 2025-12-27 239/week @ 2026-01-03

645 downloads per month
Used in 12 crates (10 directly)

Apache-2.0

1.5MB
5K SLoC

wasmcloud-core

This repository contains the core data types, traits and reusable functionality to enable the wasmCloud ecosystem.

This crate provides:

  • Utilities for dealing with WIT types
  • Types used across wasmCloud Hosts
  • Types used in linking on wasmCloud lattices
  • Logging types
  • Utilities for interacting with NATS
  • ... and more

This crate is meant to be used by programs, utilities and infrastructure targeting the wasmCloud platform.

Installation

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"

Features

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

Using wasmcloud-core

wasmcloud-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,
};

Contributing

Have a change that belongs be in wasmcloud-core? Please feel free to file an issue and/or join us on the wasmCloud slack!

Dependencies

~63–88MB
~1.5M SLoC