Expand description
A facade around the various collections and primitives needed to
support std, no_std + alloc or no_std targets.
When importing from the standard library:
- always prefer
core::<mod>overstd::<mod>where it’s available. (e.g.std::fmt::Result->core::fmt::Result) - use
ockam_core::compat::<mod>equivalents where possible. (e.g.std::sync::Arc->ockam_core::compat::sync::Arc) - if you need to add new items to compat, follow the originating
namespace. (e.g.
compat::vec::Vecand notcompat::Vec)
Modules§
- borrow
- Provides
std::borrowforalloctargets. A module for working with borrowed data. - boxed
- Provides
std::boxedforalloctargets. - collections
- Provides
std::collectionsand alternatehashbrownmap and set implementations. - error
- Provides a
std::error::Errortrait. - fmt
- Provides
core::fmt - future
- Provides
future::poll_once - io
- Traits, helpers, and type definitions for core I/O functionality.
- net
- Provides
std::net. Networking primitives for TCP/UDP communication. - rand
- Provides
rand. - str
- Provides
std::str. - string
- Provides
std::string. - sync
- Provides
std::syncforstdtargets. - task
- Provides
std::taskforstdtargets. Types and Traits for working with asynchronous tasks. - time
- Provides
std::timeforstdtargets. - vec
- Provides
std::vec.
Macros§
- format
- Provides
std::formatforalloctargets. Creates aStringusing interpolation of runtime expressions.