feat: add image fetching
This commit is contained in:
27
src/main.rs
27
src/main.rs
@@ -1,4 +1,24 @@
|
||||
#![feature(seek_stream_len)]
|
||||
#![feature(seek_stream_len, once_cell_try)]
|
||||
#![allow(clippy::future_not_send)] // will get to fix these later
|
||||
|
||||
//! # About, Licensing and More
|
||||
//!
|
||||
//! Check the README.md for entry-level documentation.
|
||||
//!
|
||||
//! # Where is my documentation?
|
||||
//!
|
||||
//! For ease of development and centralized **corrent** information, this codebase will serve both
|
||||
//! as project documentation AND documentation for the behavior of the OpenID Connect server.
|
||||
//!
|
||||
//! Might be hard to figure out how the program behaves based on the code, but I will try to put
|
||||
//! behavior parameters in [`consts`], so that might be a good starting point to know some stuff
|
||||
//! (e.g. profile profile picture search path).
|
||||
//!
|
||||
//! Checking out [`conf`] might be useful too to know what could've been configured by server
|
||||
//! administrators and less likely but maybe there can also be certain parameters in [`args`].
|
||||
//!
|
||||
//! I will try to keep those 3 modules as documented as possible, please feel free to open any
|
||||
//! issues/PRs regarding information in there.
|
||||
|
||||
use std::fs::File;
|
||||
|
||||
@@ -9,8 +29,10 @@ use crate::ext::FileExt;
|
||||
pub mod args;
|
||||
pub mod auth;
|
||||
pub mod conf;
|
||||
pub mod consts;
|
||||
pub mod ext;
|
||||
pub mod serdes;
|
||||
pub mod server;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> anyhow::Result<()> {
|
||||
@@ -23,8 +45,7 @@ async fn main() -> anyhow::Result<()> {
|
||||
|
||||
println!("{conf:#?}");
|
||||
|
||||
let res = auth::authenticate(&args, "javalsai", "test").await;
|
||||
println!("{res:?}");
|
||||
server::start_app(args, conf).await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user