Rename garage_core to garage_model

This commit is contained in:
Alex 2020-07-07 13:59:22 +02:00
parent f0918b377e
commit bec26a1312
23 changed files with 32 additions and 32 deletions

6
Cargo.lock generated
View file

@ -339,7 +339,7 @@ dependencies = [
"futures 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)",
"futures-util 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)",
"garage_api 0.1.0",
"garage_core 0.1.0",
"garage_model 0.1.0",
"garage_rpc 0.1.0",
"garage_table 0.1.0",
"garage_util 0.1.0",
@ -365,7 +365,7 @@ dependencies = [
"crypto-mac 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
"futures 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)",
"futures-util 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)",
"garage_core 0.1.0",
"garage_model 0.1.0",
"garage_table 0.1.0",
"garage_util 0.1.0",
"hex 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
@ -383,7 +383,7 @@ dependencies = [
]
[[package]]
name = "garage_core"
name = "garage_model"
version = "0.1.0"
dependencies = [
"arc-swap 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)",

View file

@ -3,7 +3,7 @@ members = [
"src/util",
"src/rpc",
"src/table",
"src/core",
"src/model",
"src/api",
"src/garage",
]

View file

@ -12,7 +12,7 @@ path = "lib.rs"
[dependencies]
garage_util = { path = "../util" }
garage_table = { path = "../table" }
garage_core = { path = "../core" }
garage_model = { path = "../model" }
bytes = "0.4"
hex = "0.3"

View file

@ -9,7 +9,7 @@ use hyper::{Body, Method, Request, Response, Server};
use garage_util::error::Error;
use garage_core::garage::Garage;
use garage_model::garage::Garage;
use crate::http_util::*;
use crate::signature::check_signature;

View file

@ -8,10 +8,10 @@ use garage_table::*;
use garage_util::data::*;
use garage_util::error::Error;
use garage_core::block_ref_table::*;
use garage_core::garage::Garage;
use garage_core::object_table::*;
use garage_core::version_table::*;
use garage_model::block_ref_table::*;
use garage_model::garage::Garage;
use garage_model::object_table::*;
use garage_model::version_table::*;
use crate::http_util::*;

View file

@ -6,8 +6,8 @@ use hyper::{Body, Request, Response};
use garage_util::data::*;
use garage_util::error::Error;
use garage_core::garage::Garage;
use garage_core::object_table::*;
use garage_model::garage::Garage;
use garage_model::object_table::*;
use crate::encoding::*;
use crate::http_util::*;

View file

@ -9,8 +9,8 @@ use garage_util::error::Error;
use garage_table::EmptyKey;
use garage_core::garage::Garage;
use garage_core::object_table::*;
use garage_model::garage::Garage;
use garage_model::object_table::*;
use crate::http_util::*;

View file

@ -7,7 +7,7 @@ use hyper::Response;
use garage_util::error::Error;
use garage_core::garage::Garage;
use garage_model::garage::Garage;
use crate::encoding::*;
use crate::http_util::*;

View file

@ -9,11 +9,11 @@ use garage_table::*;
use garage_util::data::*;
use garage_util::error::Error;
use garage_core::block::INLINE_THRESHOLD;
use garage_core::block_ref_table::*;
use garage_core::garage::Garage;
use garage_core::object_table::*;
use garage_core::version_table::*;
use garage_model::block::INLINE_THRESHOLD;
use garage_model::block_ref_table::*;
use garage_model::garage::Garage;
use garage_model::object_table::*;
use garage_model::version_table::*;
use crate::encoding::*;
use crate::http_util::*;

View file

@ -8,8 +8,8 @@ use sha2::{Digest, Sha256};
use garage_table::*;
use garage_util::error::Error;
use garage_core::garage::Garage;
use garage_core::key_table::*;
use garage_model::garage::Garage;
use garage_model::key_table::*;
use crate::encoding::uri_encode;

View file

@ -14,7 +14,7 @@ path = "main.rs"
garage_util = { path = "../util" }
garage_rpc = { path = "../rpc" }
garage_table = { path = "../table" }
garage_core = { path = "../core" }
garage_model = { path = "../model" }
garage_api = { path = "../api" }
bytes = "0.4"

View file

@ -10,9 +10,9 @@ use garage_table::*;
use garage_rpc::rpc_client::*;
use garage_rpc::rpc_server::*;
use garage_core::bucket_table::*;
use garage_core::garage::Garage;
use garage_core::key_table::*;
use garage_model::bucket_table::*;
use garage_model::garage::Garage;
use garage_model::key_table::*;
use crate::repair::Repair;
use crate::*;

View file

@ -2,10 +2,10 @@ use std::sync::Arc;
use tokio::sync::watch;
use garage_core::block_ref_table::*;
use garage_core::garage::Garage;
use garage_core::object_table::*;
use garage_core::version_table::*;
use garage_model::block_ref_table::*;
use garage_model::garage::Garage;
use garage_model::object_table::*;
use garage_model::version_table::*;
use garage_table::*;
use garage_util::error::Error;

View file

@ -9,7 +9,7 @@ use garage_util::config::*;
use garage_util::error::Error;
use garage_api::api_server;
use garage_core::garage::Garage;
use garage_model::garage::Garage;
use garage_rpc::rpc_server::RpcServer;
use crate::admin_rpc::*;

View file

@ -1,5 +1,5 @@
[package]
name = "garage_core"
name = "garage_model"
version = "0.1.0"
authors = ["Alex Auvolat <alex@adnab.me>"]
edition = "2018"