-
Notifications
You must be signed in to change notification settings - Fork 0
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
video server #17
base: main
Are you sure you want to change the base?
video server #17
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{ | ||
defaultPackage = naersk-lib.buildPackage ./.; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here is #19
benches/a_benchmark.rs
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
config/settings.toml
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
axum settings.
Update README.md
total time ~15 hrs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the Rust programming language, the keyword pub
stands for "public." It is used in front of functions, structs, and modules to indicate that they are publicly accessible from outside their current scope. This means other parts of your code can call or use those public elements without needing an explicit reference or import statement. In contrast, private elements (denoted by 'pub(super)') are only visible within the local module and its children, while no keyword is needed for private elements in a single-module crate.
benches/a_benchmark.rs
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Seeking for the project to integrate into the application that I have. The project must have functionality similar to the module I am replacing, ideally a video streaming service: https://github.com/tokio-rs/axum/blob/main/ECOSYSTEM.md |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ building a web server, a database,
https://rust-lang.github.io/async-book/
add a route, add a handler, move handlers to lib.rs
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
let app = Router::new()
.nest_service("/assets/", static_file_router())
.route("/favicon.ico", get(favicon))
.route("/video/:video_id", get(video_handler))
.route("/", get(index))
.route("/reload", post(reload))
.route("/healthcheck", get(health_check))
.layer(TraceLayer::new_for_http())
.with_state(state);
https://swagger.io/tools/swagger-ui/ https://github.com/aalekhpatel07/static-video-server/blob/master/src/main.rs#L135-L143 |
Subject: Your Dream Job Awaits: Apply Now to Join GitHub as a Developer! Hey there, We've got some thrilling news for you! GitHub is currently looking for skilled Developers to join our team. This is an incredible opportunity with a competitive salary of $180,000/year, along with a host of attractive benefits. Interested in taking your career to the next level? Don't miss out! Click here to apply and secure your spot. Looking forward to potentially welcoming you aboard! Best regards, |
This version of the work is based on fission-codes template for axum web server.
A simple, high performance and secure live media server in Rust.
The default user test is at
swagger-ui/
, I added routes to /src/lib and /src/handlers.Maybe it makes sense to have
/src/lib/handlers
? It depends.