diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-09-05 19:04:34 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-09-05 19:04:34 -0700 |
commit | ba722671b4791524384010705bef0aaa83c22c0b (patch) | |
tree | 9d546b87a36cfa521d8a64ea032948416c9e6314 /rust/fatcat-openapi/examples/server_lib/mod.rs | |
parent | a65dfc914517376b5ededb82e594236c5d61c721 (diff) | |
download | fatcat-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.rs | 14 |
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 {}) +} |