summaryrefslogtreecommitdiffstats
path: root/rust/fatcat-api-spec/examples/server_lib/mod.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-09-11 13:59:32 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-09-11 13:59:32 -0700
commitcd8e09fcb6ee0a1b23c0bd57d0f097f99fd6d828 (patch)
treefbd5c91c576a2fce2c44cfe36e5754b69aedc046 /rust/fatcat-api-spec/examples/server_lib/mod.rs
parent0dc872921023030f6ffd320eb038e5379b47fa53 (diff)
downloadfatcat-cd8e09fcb6ee0a1b23c0bd57d0f097f99fd6d828.tar.gz
fatcat-cd8e09fcb6ee0a1b23c0bd57d0f097f99fd6d828.zip
refactor fatcat-api => fatcat-api-spec
Diffstat (limited to 'rust/fatcat-api-spec/examples/server_lib/mod.rs')
-rw-r--r--rust/fatcat-api-spec/examples/server_lib/mod.rs14
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 {})
+}