Skip to content
This repository was archived by the owner on Apr 3, 2019. It is now read-only.

chore(deps): update versions of Rust, Rocket and Rusoto #209

Merged
merged 5 commits into from
Oct 29, 2018

Conversation

philbooth
Copy link
Contributor

Fixes #207.

We've been pinned to an ancient version of Rust for a while and I really wanted to get us updated before cutting train 124 (which is hopefully going to see some traffic). Updating Rust required updating Rocket and Rusoto, so that's done here too. Initially I wanted to do a full cargo update but the build fails if you do that because of rust-lang/rust#55376. As soon as that's resolved, we should update the other deps too.

Most of the code changes here are because cargo fmt. There's also a couple of knock-on code changes from the Rocket update (the disappearance of rocket_contrib::JsonValue and the disappearance of rocket::LoggingLevel::Off).

Because there's a bit going on, I've kept everything as separate commits. If we want to review them separately I'm happy to break this into multiple PRs. Also, as discussed in retro recently, if you want to join me in Vidyo so I can take you through the changes in more detail, I am more than happy to do that.

@mozilla/fxa-devs r?

Copy link

@rfk rfk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look reasonable and the tests pass, 👍

@@ -58,7 +51,7 @@ fn main() {
let config = settings
.build_rocket_config()
.expect("Error creating rocket config");
rocket::custom(config)
rocket::custom(config, settings.log.level.0.as_str() != "off")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the .0 here going to conflict with you other PR where you remove the use of this .0 style?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ha, yes it is. 😄

@@ -24,7 +24,6 @@
//! [send]: ../fxa_email_send/index.html
//! [queues]: ../fxa_email_queues/index.html

#![feature(assoc_unix_epoch)]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's this one from?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feature graduated to stable at some point in the three months since we last updated the Rust version, so we no longer need to explicitly pref it on.

@philbooth philbooth merged commit eeb4b60 into master Oct 29, 2018
@philbooth philbooth deleted the pb/update-deps branch October 29, 2018 22:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update deps and Rust version
2 participants