This commit is contained in:
2024-02-27 11:02:16 +08:00
parent 0eee7be57d
commit cca4750530
2 changed files with 3 additions and 3 deletions

View File

@@ -23,7 +23,7 @@
libraries = with pkgs; [ sqlite ] ++ (nixpkgs.lib.optional pkgs.stdenv.isDarwin darwin.apple_sdk.frameworks.Security); libraries = with pkgs; [ sqlite ] ++ (nixpkgs.lib.optional pkgs.stdenv.isDarwin darwin.apple_sdk.frameworks.Security);
in in
rec { rec {
hello = rustPlatform.buildRustPackage rec { ice-publicip-checker = rustPlatform.buildRustPackage rec {
pname = "ice-publicip-checker"; pname = "ice-publicip-checker";
version = "1.0.0"; version = "1.0.0";
@@ -44,7 +44,7 @@
}; };
}; };
default = hello; default = ice-publicip-checker;
}); });
devShells = foreachSystem devShells = foreachSystem
(system: (system:

View File

@@ -40,7 +40,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
listen_address, listen_address,
listen_port, listen_port,
} => { } => {
let service = hello::web::routes::make_service()?; let service = crate::web::routes::make_service()?;
tracing::info!(listen_address, listen_port, "app is service"); tracing::info!(listen_address, listen_port, "app is service");
let listener = let listener =
tokio::net::TcpListener::bind(format!("{listen_address}:{listen_port}")).await?; tokio::net::TcpListener::bind(format!("{listen_address}:{listen_port}")).await?;