mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 18:31:52 +00:00
* update makefile * fix * add efi support * fix efi * clean up * add `make update` and `make update-overlay` * more protections * update package lock * rename reflash to indicate it isn't real * fix authcookie * Update product.yaml
34 lines
683 B
Rust
34 lines
683 B
Rust
use std::sync::Arc;
|
|
|
|
use futures::future::BoxFuture;
|
|
use hyper::{Body, Error as HyperError, Request, Response};
|
|
use rpc_toolkit::command;
|
|
|
|
use crate::Error;
|
|
|
|
pub mod dhcp;
|
|
pub mod dns;
|
|
pub mod interface;
|
|
pub mod keys;
|
|
#[cfg(feature = "avahi")]
|
|
pub mod mdns;
|
|
pub mod net_controller;
|
|
pub mod ssl;
|
|
pub mod static_server;
|
|
pub mod tor;
|
|
pub mod utils;
|
|
pub mod vhost;
|
|
pub mod web_server;
|
|
pub mod wifi;
|
|
|
|
pub const PACKAGE_CERT_PATH: &str = "/var/lib/embassy/ssl";
|
|
|
|
#[command(subcommands(tor::tor, dhcp::dhcp))]
|
|
pub fn net() -> Result<(), Error> {
|
|
Ok(())
|
|
}
|
|
|
|
pub type HttpHandler = Arc<
|
|
dyn Fn(Request<Body>) -> BoxFuture<'static, Result<Response<Body>, HyperError>> + Send + Sync,
|
|
>;
|