aboutsummaryrefslogtreecommitdiffstats
path: root/rust/src
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/src
parenta65dfc914517376b5ededb82e594236c5d61c721 (diff)
downloadfatcat-ba722671b4791524384010705bef0aaa83c22c0b.tar.gz
fatcat-ba722671b4791524384010705bef0aaa83c22c0b.zip
rename rust crate fatcat-api-spec -> fatcat-openapi
Diffstat (limited to 'rust/src')
-rw-r--r--rust/src/auth.rs2
-rw-r--r--rust/src/database_models.rs2
-rw-r--r--rust/src/editing.rs2
-rw-r--r--rust/src/editing_crud.rs2
-rw-r--r--rust/src/endpoint_handlers.rs4
-rw-r--r--rust/src/endpoints.rs8
-rw-r--r--rust/src/entity_crud.rs2
-rw-r--r--rust/src/errors.rs2
8 files changed, 12 insertions, 12 deletions
diff --git a/rust/src/auth.rs b/rust/src/auth.rs
index 1a006ffd..b88a72b0 100644
--- a/rust/src/auth.rs
+++ b/rust/src/auth.rs
@@ -18,7 +18,7 @@ use crate::server::*;
use chrono::prelude::*;
use diesel;
use diesel::prelude::*;
-use fatcat_api_spec::models::{Editgroup, Editor};
+use fatcat_openapi::models::{Editgroup, Editor};
use std::collections::HashMap;
use std::env;
use std::str::FromStr;
diff --git a/rust/src/database_models.rs b/rust/src/database_models.rs
index 79b0137b..e4bca2b0 100644
--- a/rust/src/database_models.rs
+++ b/rust/src/database_models.rs
@@ -4,7 +4,7 @@ use crate::database_schema::*;
use crate::errors::*;
use crate::identifiers::uuid2fcid;
use chrono::Utc;
-use fatcat_api_spec::models::{
+use fatcat_openapi::models::{
ChangelogEntry, Editgroup, EditgroupAnnotation, Editor, EntityEdit, ReleaseRef,
};
use serde_json;
diff --git a/rust/src/editing.rs b/rust/src/editing.rs
index 65cd5bb8..4890b231 100644
--- a/rust/src/editing.rs
+++ b/rust/src/editing.rs
@@ -11,7 +11,7 @@ use crate::identifiers::FatcatId;
use crate::server::DbConn;
use diesel;
use diesel::prelude::*;
-use fatcat_api_spec::models::*;
+use fatcat_openapi::models::*;
pub struct EditContext {
pub editor_id: FatcatId,
diff --git a/rust/src/editing_crud.rs b/rust/src/editing_crud.rs
index 2526ef2b..8da3cabd 100644
--- a/rust/src/editing_crud.rs
+++ b/rust/src/editing_crud.rs
@@ -5,7 +5,7 @@ use crate::errors::*;
use crate::identifiers::{self, FatcatId};
use crate::server::DbConn;
use diesel::prelude::*;
-use fatcat_api_spec::models::*;
+use fatcat_openapi::models::*;
use std::str::FromStr;
use uuid::Uuid;
diff --git a/rust/src/endpoint_handlers.rs b/rust/src/endpoint_handlers.rs
index a44861ee..64b6ed62 100644
--- a/rust/src/endpoint_handlers.rs
+++ b/rust/src/endpoint_handlers.rs
@@ -14,8 +14,8 @@ use crate::errors::*;
use crate::identifiers::*;
use crate::server::*;
use diesel::prelude::*;
-use fatcat_api_spec::models;
-use fatcat_api_spec::models::*;
+use fatcat_openapi::models;
+use fatcat_openapi::models::*;
macro_rules! entity_auto_batch_handler {
($post_auto_batch_handler:ident, $model:ident) => {
diff --git a/rust/src/endpoints.rs b/rust/src/endpoints.rs
index a762fe18..2f30a7fa 100644
--- a/rust/src/endpoints.rs
+++ b/rust/src/endpoints.rs
@@ -17,9 +17,9 @@ use crate::identifiers::FatcatId;
use crate::server::*;
use cadence::prelude::*;
use diesel::Connection;
-use fatcat_api_spec::models;
-use fatcat_api_spec::models::*;
-use fatcat_api_spec::*;
+use fatcat_openapi::models;
+use fatcat_openapi::models::*;
+use fatcat_openapi::*;
use futures::{self, Future};
use sentry::integrations::failure::capture_fail;
use std::cmp;
@@ -62,7 +62,7 @@ macro_rules! generic_err_responses {
}
/// Helper for generating wrappers (which return "Box::new(futures::done(Ok(BLAH)))" like the
-/// codegen fatcat-api-spec code wants) that call through to actual helpers (which have simple
+/// codegen fatcat-openapi code wants) that call through to actual helpers (which have simple
/// Result<> return types)
macro_rules! wrap_entity_handlers {
// Would much rather just have entity ident, then generate the other fields from that, but Rust
diff --git a/rust/src/entity_crud.rs b/rust/src/entity_crud.rs
index 3a1597ec..c0c9e30b 100644
--- a/rust/src/entity_crud.rs
+++ b/rust/src/entity_crud.rs
@@ -14,7 +14,7 @@ use crate::identifiers::*;
use crate::server::DbConn;
use diesel::prelude::*;
use diesel::{self, insert_into};
-use fatcat_api_spec::models::*;
+use fatcat_openapi::models::*;
use sha1::Sha1;
use std::marker::Sized;
use std::str::FromStr;
diff --git a/rust/src/errors.rs b/rust/src/errors.rs
index cb53e6d1..e18e660f 100644
--- a/rust/src/errors.rs
+++ b/rust/src/errors.rs
@@ -15,7 +15,7 @@
pub use failure::Error;
use failure::Fail;
-use fatcat_api_spec::models;
+use fatcat_openapi::models;
use std::result;
/// A type alias for handling errors throughout this crate