-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
GH-39 # Switch to rocket 0.5rc and rust stable
- Loading branch information
Showing
14 changed files
with
918 additions
and
1,074 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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,25 +1,21 @@ | ||
[package] | ||
name = "jarm_online" | ||
version = "0.2.0" | ||
version = "0.2.2" | ||
edition = "2018" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
rocket = "0.4" | ||
rocket = { version = "=0.5.0-rc.3", features = ["json"] } | ||
rust_jarm = "0.3" | ||
serde = { version = "1.0", features = ["derive"] } | ||
lazy_static = "1.4" | ||
regex = "1.7" | ||
csv = "1.2" | ||
csv = "1.3" | ||
openssl = { version = "~0.10.55", features = ["vendored"] } # Required for sentry | ||
sentry = "0.31" | ||
rocket-sentry = "0.7" # 0.8 require rocket 0.5 | ||
rocket-sentry = { git = "https://github.com/Hugo-C/rocket-sentry", branch = "master" } | ||
|
||
[dependencies.rocket_contrib] | ||
version = "0.4" | ||
default-features = false | ||
features = ["json"] | ||
|
||
[dev-dependencies] | ||
rstest = "0.18" | ||
rstest = "0.18" |
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 |
---|---|---|
@@ -1,19 +1,12 @@ | ||
[development] | ||
address = "localhost" | ||
[debug] | ||
address = "127.0.0.1" | ||
port = 8000 | ||
workers = 2 | ||
keep_alive = 5 | ||
read_timeout = 5 | ||
write_timeout = 5 | ||
log = "normal" | ||
log_level = "normal" | ||
limits = { forms = 32768 } | ||
|
||
[production] | ||
[release] | ||
address = "127.0.0.1" | ||
port = 8000 | ||
workers = 2 | ||
keep_alive = 5 | ||
read_timeout = 5 | ||
write_timeout = 5 | ||
log = "normal" | ||
log_level = "normal" | ||
limits = { forms = 32768 } |
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 |
---|---|---|
|
@@ -16,9 +16,8 @@ services: | |
build: . | ||
image: jarm_online_api | ||
container_name: jarm_online_api_container | ||
stop_signal: SIGKILL # SIGTERM is allowed in config starting with rocket.rs 0.5 | ||
environment: | ||
- ROCKET_ENV=production | ||
- ROCKET_PROFILE=release | ||
- ROCKET_SENTRY_DSN=${ROCKET_SENTRY_DSN:-https://[email protected]/123} | ||
ports: | ||
- "8000:8000" |
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.