smart-house-web: в работе
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1,3 @@
|
||||
/.idea/
|
||||
/**/.DS_Store
|
||||
/tmp/
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
[package]
|
||||
name = "smart-house-web"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
[workspace]
|
||||
resolver = "3"
|
||||
members = ["backend"]
|
||||
|
||||
[dependencies]
|
||||
[workspace.dependencies]
|
||||
|
||||
9
smart-house-web/backend/Cargo.toml
Normal file
9
smart-house-web/backend/Cargo.toml
Normal file
@@ -0,0 +1,9 @@
|
||||
[package]
|
||||
name = "backend"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
axum = "0.8.9"
|
||||
tracing = "0.1.44"
|
||||
tracing-subscriber = "0.3.23"
|
||||
10
smart-house-web/backend/src/main.rs
Normal file
10
smart-house-web/backend/src/main.rs
Normal file
@@ -0,0 +1,10 @@
|
||||
use tracing::info;
|
||||
|
||||
fn main() {
|
||||
// tracing_subscriber::fmt::init();
|
||||
let _s = tracing_subscriber::fmt()
|
||||
.event_format(tracing_subscriber::fmt::format().compact())
|
||||
.init();
|
||||
info!("logger initialized");
|
||||
println!("Hello, world!");
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
}
|
||||
Reference in New Issue
Block a user