-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Nicholasguyett/stable migration (#265)
* aa * Remove nightly toolchain annotation * aardwolf-models: Add missing getters for updated_at/created_at/confirmed_at * aardwolf-models: Add more missing getters * Replace deprecated table_name attribute * Upgrade disel and uuid * Replace deprecated sql_type attribute * Update connection and transaction handling code to match new diesel interface * Reconcile diesel serialization/deserialization changes * Update uuid in aardwolf-models * Update test and examples to compile using updated version of diesel * aardwolf-types: Use latest stable futures instead of preview * aardwolf-types: Update to latest diesel and update usage of test utility functions * Upgrade ruct and gettext. Fixed compiler errors in src/*.rs files * Update and/or reconcile templates and associated structs to compiler without error * aardwolf-templates: Move compile_i18n! above include_i18n! in the file * Add explainer comment for the ordering of gettext macros * Initialize nav_top in Home constructor instead of requiring external initialization * aardwolf-actix: Update actix and diesel dependencies * aardwold-actix: replace deprecated use of `header()` on `HttpResponse` * aardwolf-actix: Update server setup * aardwolf-actix: update route function declarations and input handling * aardwolf-actix: update cookie setting logic * aardwolf-actix: update import of HttpResponseBuilder * aardwolf-actix - Update FromRequest implementations * Applying `cargo fix` suggestion. * Remove nightly-only dependencies and made sure all shared dependencies are in-sync --------- Co-authored-by: Banjo Fox <drbanjofox@protonmail.com> Co-authored-by: Banjo Fox <4459812+BanjoFox@users.noreply.github.com>
- Loading branch information
1 parent
9034a7b
commit 0077fba
Showing
99 changed files
with
2,677 additions
and
4,240 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,42 +1,42 @@ | ||
[package] | ||
name = "aardwolf" | ||
version = "0.1.0" | ||
authors = ["Eric Chadbourne <sillystring@protonmail.com>", "Elijah Mark Anderson <kd0bpv@gmail.com>", "Paul Woolcock <paul@woolcock.us>", "asonix <asonix@asonix.dog>"] | ||
description = "Powering connected social communities with free software." | ||
edition = "2018" | ||
|
||
[workspace] | ||
members = [ | ||
"aardwolf-actix", | ||
"aardwolf-models", | ||
"aardwolf-templates", | ||
"aardwolf-test-helpers", | ||
"aardwolf-types", | ||
] | ||
|
||
[features] | ||
default = ["simple-logging", "actix"] | ||
actix = ["aardwolf-actix"] | ||
|
||
[dependencies] | ||
config = "~0.9.3" | ||
failure = "~0.1.8" | ||
log = "~0.4.14" | ||
yaml-rust = "~0.4.5" | ||
# Use simple log files or stdout/stderr. Conflicts with use-systemd and | ||
# log-* features. | ||
simple-logging = { version = "~2.0", optional = true } | ||
# Use syslog for writing logs. Conflicts with use-systemd and log-* features. | ||
syslog = { version = "~5.0", optional = true } | ||
# Integrate with Systemd, includes Journald for logging. Conflicts with log-* | ||
# features. | ||
systemd = { version = "~0.8.2", optional = true } | ||
|
||
[dependencies.aardwolf-actix] | ||
version = "0.1" | ||
path = "aardwolf-actix" | ||
optional = true | ||
|
||
[dependencies.clap] | ||
version = "~2.33" | ||
[package] | ||
name = "aardwolf" | ||
version = "0.1.0" | ||
authors = ["Eric Chadbourne <sillystring@protonmail.com>", "Elijah Mark Anderson <kd0bpv@gmail.com>", "Paul Woolcock <paul@woolcock.us>", "asonix <asonix@asonix.dog>"] | ||
description = "Powering connected social communities with free software." | ||
edition = "2018" | ||
|
||
[workspace] | ||
members = [ | ||
"aardwolf-actix", | ||
"aardwolf-models", | ||
"aardwolf-templates", | ||
"aardwolf-test-helpers", | ||
"aardwolf-types", | ||
] | ||
|
||
[features] | ||
default = ["simple-logging", "actix"] | ||
actix = ["aardwolf-actix"] | ||
|
||
[dependencies] | ||
config = "0.9" | ||
failure = "0.1" | ||
log = "0.4" | ||
yaml-rust = "~0.4.5" | ||
# Use simple log files or stdout/stderr. Conflicts with use-systemd and | ||
# log-* features. | ||
simple-logging = { version = "~2.0", optional = true } | ||
# Use syslog for writing logs. Conflicts with use-systemd and log-* features. | ||
syslog = { version = "~5.0", optional = true } | ||
# Integrate with Systemd, includes Journald for logging. Conflicts with log-* | ||
# features. | ||
systemd = { version = "~0.8.2", optional = true } | ||
|
||
[dependencies.aardwolf-actix] | ||
version = "0.1" | ||
path = "aardwolf-actix" | ||
optional = true | ||
|
||
[dependencies.clap] | ||
version = "~2.33" | ||
features = ["yaml"] |
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,5 +1,7 @@ | ||
use actix_web::{http::header::LOCATION, HttpResponse}; | ||
|
||
pub fn redirect(to: &str) -> HttpResponse { | ||
HttpResponse::SeeOther().header(LOCATION, to).finish() | ||
HttpResponse::SeeOther() | ||
.append_header((LOCATION, to)) | ||
.finish() | ||
} |
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
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.