Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to use modern Rust dependencies #4

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

ggrossman
Copy link

@ggrossman ggrossman commented Jul 10, 2024

This sample is 9 years old, and because it doesn't pin versions in Cargo.toml, it no longer compiles out of the box. It also depends on unsupported and deprecated lIbraries such as rustc-serialize.

  • nickel web framework replaced with actix-web, which is a modern and actively maintained Rust web framework.
  • rustc_serialize crate replaced with serde for serialization and deserialization.
  • mongodb crate syntax updated to the latest version, with async/await support.
  • jwt crate is replaced with jsonwebtoken, which is a commonly used JWT library in Rust.
  • hyper crate and related HTTP utilities are replaced by actix-web features.
  • The updated code uses env_logger for logging, actix_web::middleware::Logger for request logging, and futures::StreamExt for MongoDB cursor handling.

@ggrossman ggrossman changed the title Add authentication back Update to use modern Rust dependencies (nickel.rs -> actix web) Jul 10, 2024
@ggrossman ggrossman changed the title Update to use modern Rust dependencies (nickel.rs -> actix web) Update to use modern Rust dependencies Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant