summaryrefslogtreecommitdiffstats
path: root/rust
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-09-05 23:00:33 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-09-05 23:00:33 -0700
commita207c60ff756b9d591a56ca2814171dfa41e1a08 (patch)
tree4153a07d1647a89dac3e0dd53b3869960aa0769a /rust
parentd45370efef0aee5063b8290ee4c5ded9c2e11671 (diff)
downloadfatcat-a207c60ff756b9d591a56ca2814171dfa41e1a08.tar.gz
fatcat-a207c60ff756b9d591a56ca2814171dfa41e1a08.zip
update missing rust crate names
Diffstat (limited to 'rust')
-rw-r--r--rust/src/bin/fatcat-auth.rs2
-rw-r--r--rust/src/bin/fatcat-export.rs2
-rw-r--r--rust/src/bin/fatcatd.rs4
3 files changed, 4 insertions, 4 deletions
diff --git a/rust/src/bin/fatcat-auth.rs b/rust/src/bin/fatcat-auth.rs
index de9ade15..0b5c05b0 100644
--- a/rust/src/bin/fatcat-auth.rs
+++ b/rust/src/bin/fatcat-auth.rs
@@ -6,7 +6,7 @@ use fatcat::editing_crud::EditorCrud;
use fatcat::errors::Result;
use fatcat::identifiers::FatcatId;
use fatcat::{auth, server};
-use fatcat_api_spec::models::Editor;
+use fatcat_openapi::models::Editor;
use std::process;
use std::str::FromStr;
diff --git a/rust/src/bin/fatcat-export.rs b/rust/src/bin/fatcat-export.rs
index 6d2d396c..f52c7d17 100644
--- a/rust/src/bin/fatcat-export.rs
+++ b/rust/src/bin/fatcat-export.rs
@@ -16,7 +16,7 @@ use fatcat::entity_crud::*;
use fatcat::errors::Result;
use fatcat::identifiers::FatcatId;
use fatcat::server::{self, DbConn};
-use fatcat_api_spec::models::*;
+use fatcat_openapi::models::*;
use std::str::FromStr;
use uuid::Uuid;
diff --git a/rust/src/bin/fatcatd.rs b/rust/src/bin/fatcatd.rs
index 2c8614c2..67ec3123 100644
--- a/rust/src/bin/fatcatd.rs
+++ b/rust/src/bin/fatcatd.rs
@@ -104,7 +104,7 @@ fn main() -> Result<()> {
.keys()
.collect::<Vec<&String>>(),
);
- let mut router = fatcat_api_spec::router(server);
+ let mut router = fatcat_openapi::router(server);
router.get("/", root_handler, "root-redirect");
router.get("/swagger-ui", swaggerui_handler, "swagger-ui-html");
@@ -140,7 +140,7 @@ fn main() -> Result<()> {
let mut chain = Chain::new(LoggerMiddleware::new(router, logger, formatter));
// authentication
- chain.link_before(fatcat_api_spec::server::ExtractAuthData);
+ chain.link_before(fatcat_openapi::server::ExtractAuthData);
chain.link_before(fatcat::auth::MacaroonAuthMiddleware::new());
chain.link_after(XClacksOverheadMiddleware);