Crate peace_core

Source
Expand description

Low level data types for the peace automation framework.

This crate exists because:

  • peace_cfg has a dependency on peace_resource_rt for Resources, used in Item::setup.

  • peace_resource_rt has a dependency on ItemId, as uses TypeMap<ItemId, _> for the States maps.

    When peace#67 is implemented, the progress module can be moved out of peace_core into peace_cfg.

Re-exports§

pub extern crate id_newtype;
pub use peace_fmt;

Macros§

app_name
Returns a const AppName validated at compile time.
id_newtype
Implements common behaviour for an ID type.
profile
Returns a const Profile validated at compile time.

Structs§

AppName
Name of the application that is run by end users.
AppNameInvalidFmt
Error indicating AppName provided is not in the correct format.