From ba722671b4791524384010705bef0aaa83c22c0b Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 5 Sep 2019 19:04:34 -0700 Subject: rename rust crate fatcat-api-spec -> fatcat-openapi --- rust/src/auth.rs | 2 +- rust/src/database_models.rs | 2 +- rust/src/editing.rs | 2 +- rust/src/editing_crud.rs | 2 +- rust/src/endpoint_handlers.rs | 4 ++-- rust/src/endpoints.rs | 8 ++++---- rust/src/entity_crud.rs | 2 +- rust/src/errors.rs | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) (limited to 'rust/src') 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 -- cgit v1.2.3