mem/lib.rs
1//! # mem
2//! A rather generic memory (block) interface.
3//! Use Mutexes if you need thread safety, this doesn't provide any.
4//!
5//! This crate is mainly for building emulators and such.
6//!
7//! ## But.. why?!
8//! Because abstraction is great.
9//! Well, this is really just an abstraction around byte addressable storage.
10//! Doesn't have to be RAM, could be a file or even a block device.
11//! Or some sort of remote memory interface. Or a live memory debugger/editor for an emulator!
12//! Let your imagination go wild! :)
13
14// Errors
15#![recursion_limit = "1024"]
16
17#[macro_use]
18extern crate error_chain;
19
20// Modules
21// Since this crate is split over a couple of files, this is needed.
22pub mod errors;
23mod interface;
24mod helpers;
25
26pub mod std_impls;
27
28// Export the sub modules globally at crate level.
29pub use interface::*;
30pub use helpers::*;