summaryrefslogtreecommitdiffstats
path: root/rust/fatcat-openapi/examples/server_lib/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/fatcat-openapi/examples/server_lib/mod.rs')
-rw-r--r--rust/fatcat-openapi/examples/server_lib/mod.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/rust/fatcat-openapi/examples/server_lib/mod.rs b/rust/fatcat-openapi/examples/server_lib/mod.rs
new file mode 100644
index 00000000..bf404d49
--- /dev/null
+++ b/rust/fatcat-openapi/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 {})
+}