Moje Cargo.toml vyzerá nasledovne:
[package]
name = "axum_test"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
axum = { version = "^0.7.5" }
serde = { version = "1.0", features = ["derive"] }
tokio = { version = "1.0", features = ["full"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
process_path = { version = "0.1.4" }
pathtrim = "2.0.0"
tower = { version = "0.4", features = ["util"] }
tower-http = { version = "0.5.0", features = ["fs", "trace"] }
Tu si treba všimnúť, že niektoré znaky SVG súboru sme nahradili, lebo to boli biele znaky. Týmto spôsobom môžeme zákazníkovi dodať kompilovaný server bežiaci na html5 technológií. Zdrojový kód: https://hrubos.org/repo/axum_test.zip
Comments “Základná webová aplikácia v Axum v jazyku Rust”