-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #1275
- Loading branch information
Showing
100 changed files
with
920 additions
and
830 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,94 +1,13 @@ | ||
[package] | ||
name = "syncstorage" | ||
version = "0.10.2" | ||
license = "MPL-2.0" | ||
authors = [ | ||
"Ben Bangert <[email protected]>", | ||
"Phil Jenvey <[email protected]>", | ||
"Mozilla Services Engineering <[email protected]>" | ||
[workspace] | ||
resolver = "2" | ||
members = [ | ||
"syncstorage-db-common", | ||
"syncstorage-common", | ||
"tokenserver-common", | ||
"syncstorage", | ||
] | ||
edition = "2018" | ||
default-run = "syncstorage" | ||
default-members = ["syncstorage"] | ||
|
||
[profile.release] | ||
# Enables line numbers in Sentry | ||
# Enables line numbers in Sentry reporting | ||
debug = 1 | ||
|
||
[dependencies] | ||
actix-http = "2" | ||
actix-web = "3" | ||
actix-web-httpauth = "0.5" | ||
actix-rt = "1" # Pin to 1.0, due to dependencies on Tokio | ||
actix-cors = "0.5" | ||
async-trait = "0.1.40" | ||
backtrace = "0.3.61" | ||
base64 = "0.13" | ||
bb8 = "0.4.1" # pin to 0.4 due to dependencies on Tokio | ||
bytes = "1.0" | ||
cadence = "0.26" | ||
chrono = "0.4" | ||
config = "0.11" | ||
# Pin to 0.5 for now, to keep it under tokio 0.2 (issue977). | ||
# Fix for #803 (deadpool#92) points to our fork for now | ||
#deadpool = "0.5" # pin to 0.5 | ||
deadpool = { git = "https://github.com/mozilla-services/deadpool", branch = "deadpool-v0.5.2-issue92" } | ||
diesel = { version = "1.4", features = ["mysql", "r2d2"] } | ||
diesel_logger = "0.1.1" | ||
diesel_migrations = { version = "1.4.0", features = ["mysql"] } | ||
docopt = "1.1.0" | ||
dyn-clone = "1.0.4" | ||
env_logger = "0.9" | ||
futures = { version = "0.3", features = ["compat"] } | ||
google-cloud-rust-raw = "0.11.0" | ||
# Some versions of OpenSSL 1.1.1 conflict with grpcio's built-in boringssl which can cause | ||
# syncserver to either fail to either compile, or start. In those cases, try | ||
# `cargo build --features grpcio/openssl ...` | ||
grpcio = { version = "0.9" } | ||
lazy_static = "1.4.0" | ||
hawk = "3.2" | ||
hex = "0.4.3" | ||
hostname = "0.3.1" | ||
hkdf = "0.11" | ||
hmac = "0.11" | ||
http = "0.2.5" | ||
log = { version = "0.4", features = ["max_level_debug", "release_max_level_info"] } | ||
mime = "0.3" | ||
mockito = "0.30.0" | ||
num_cpus = "1" | ||
# must match what's used by googleapis-raw | ||
protobuf = "2.20.0" | ||
pyo3 = { version = "0.14", features = ["auto-initialize"] } | ||
rand = "0.8" | ||
regex = "1.4" | ||
reqwest = { version = "0.10.10", features = ["json", "rustls-tls"] } | ||
# pin to 0.19: https://github.com/getsentry/sentry-rust/issues/277 | ||
sentry = { version = "0.19", features = ["with_curl_transport"] }# pin to 0.19 until on-prem sentry server is updated | ||
sentry-backtrace = "0.19" | ||
serde = "1.0" | ||
serde_derive = "1.0" | ||
serde_json = { version = "1.0", features = ["arbitrary_precision"] } | ||
scheduled-thread-pool = "0.2" | ||
sha2 = "0.9" | ||
slog = { version = "2.5", features = ["max_level_info", "release_max_level_info", "dynamic-keys"] } | ||
slog-async = "2.5" | ||
slog-envlogger = "2.2.0" | ||
slog-mozlog-json = "0.1" | ||
slog-scope = "4.3" | ||
slog-stdlog = "4.1" | ||
slog-term = "2.6" | ||
thiserror = "1.0.26" | ||
time = "^0.3" | ||
# pinning to 0.2.4 due to high number of dependencies (actix, bb8, deadpool, etc.) | ||
tokio = { version = "0.2.4", features = ["macros", "sync"] } | ||
url = "2.1" | ||
urlencoding = "2.1" | ||
uuid = { version = "0.8.2", features = ["serde", "v4"] } | ||
validator = "0.14" | ||
validator_derive = "0.14" | ||
woothee = "0.11" | ||
|
||
[features] | ||
no_auth = [] | ||
|
||
[[bin]] | ||
name = "purge_ttl" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[package] | ||
name = "syncstorage-common" | ||
version = "0.10.2" | ||
edition = "2021" | ||
|
||
[dependencies] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#[macro_export] | ||
macro_rules! from_error { | ||
($from:ty, $to:ty, $to_kind:expr) => { | ||
impl From<$from> for $to { | ||
fn from(inner: $from) -> $to { | ||
$to_kind(inner).into() | ||
} | ||
} | ||
}; | ||
} | ||
|
||
#[macro_export] | ||
macro_rules! impl_fmt_display { | ||
($error:ty, $kind:ty) => { | ||
impl fmt::Display for $error { | ||
fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result { | ||
fmt::Display::fmt(&self.kind, formatter) | ||
} | ||
} | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[package] | ||
name = "syncstorage-db-common" | ||
version = "0.10.2" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
async-trait = "0.1.40" | ||
backtrace = "0.3.61" | ||
chrono = "0.4" | ||
# Pin to 0.5 for now, to keep it under tokio 0.2 (issue977). | ||
# Fix for #803 (deadpool#92) points to our fork for now | ||
#deadpool = "0.5" # pin to 0.5 | ||
deadpool = { git = "https://github.com/mozilla-services/deadpool", branch = "deadpool-v0.5.2-issue92" } | ||
diesel = { version = "1.4", features = ["mysql", "r2d2"] } | ||
diesel_migrations = { version = "1.4.0", features = ["mysql"] } | ||
# Some versions of OpenSSL 1.1.1 conflict with grpcio's built-in boringssl which can cause | ||
# syncserver to either fail to either compile, or start. In those cases, try | ||
# `cargo build --features grpcio/openssl ...` | ||
grpcio = { version = "0.9" } | ||
hostname = "0.3.1" | ||
http = "0.2.6" | ||
futures = { version = "0.3", features = ["compat"] } | ||
lazy_static = "1.4.0" | ||
serde = "1.0" | ||
serde_json = { version = "1.0", features = ["arbitrary_precision"] } | ||
syncstorage-common = { path = "../syncstorage-common" } | ||
thiserror = "1.0.26" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.