This commit is contained in:
guochao 2024-02-27 11:02:16 +08:00
parent 0eee7be57d
commit cca4750530
Signed by: guochao
GPG Key ID: 79F7306D2AA32FC3
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);
in
rec {
hello = rustPlatform.buildRustPackage rec {
ice-publicip-checker = rustPlatform.buildRustPackage rec {
pname = "ice-publicip-checker";
version = "1.0.0";
@ -44,7 +44,7 @@
};
};
default = hello;
default = ice-publicip-checker;
});
devShells = foreachSystem
(system:

View File

@ -40,7 +40,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
listen_address,
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");
let listener =
tokio::net::TcpListener::bind(format!("{listen_address}:{listen_port}")).await?;