summaryrefslogtreecommitdiffstats
path: root/rust/fatcat-openapi/examples/server_lib/mod.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-09-05 19:04:34 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-09-05 19:04:34 -0700
commitba722671b4791524384010705bef0aaa83c22c0b (patch)
tree9d546b87a36cfa521d8a64ea032948416c9e6314 /rust/fatcat-openapi/examples/server_lib/mod.rs
parenta65dfc914517376b5ededb82e594236c5d61c721 (diff)
downloadfatcat-ba722671b4791524384010705bef0aaa83c22c0b.tar.gz
fatcat-ba722671b4791524384010705bef0aaa83c22c0b.zip
rename rust crate fatcat-api-spec -> fatcat-openapi
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 {})
+}