Module ockam_core::compat[][src]

Expand description

A facade around the various collections and primitives needed when using “std”, “no_std + alloc” or “no_std” targets.

When importing from the standard library:

  1. always prefer core:: over std:: where it’s available. (e.g. std::fmt::Result -> core::fmt::Result)
  2. use ockam_core::compat:: equivalents where possible. (e.g. std::sync::Arc -> ockam_core::compat::sync::Arc)
  3. if you need to add new items to compat, follow the originating namespace. (e.g. compat::vec::Vec and not compat::Vec)

Modules

std::borrow

std::boxed

std::collections

std::error::Error trait

Traits, helpers, and type definitions for core I/O functionality.

std::net

rand

std::string

std::task

std::vec

Macros

std::format