diff options
Diffstat (limited to 'rust/fatcat-api-spec/examples/server_lib/mod.rs')
-rw-r--r-- | rust/fatcat-api-spec/examples/server_lib/mod.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/rust/fatcat-api-spec/examples/server_lib/mod.rs b/rust/fatcat-api-spec/examples/server_lib/mod.rs new file mode 100644 index 00000000..5291637e --- /dev/null +++ b/rust/fatcat-api-spec/examples/server_lib/mod.rs @@ -0,0 +1,14 @@ +//! Main library entry point for fatcat implementation. + +mod server; + +mod errors { + error_chain!{} +} + +pub use self::errors::*; + +/// Instantiate a new server. +pub fn server() -> Result<server::Server> { + Ok(server::Server {}) +} |