cargo run 自定义[bin]文件

阅读 81

2022-02-14

# cargo new test

# cargo run

# Cargo.toml 文件如下:

[package]
name = "Testrs"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[[bin]]
name = "Testrs"
path = "src/test.rs"  # 指定自定义文件  默认是"src/main.rs"


[dependencies]
actix-web={ version = "3.3.2", features = ["openssl"] } 
openssl = { version = "0.10", features = ["vendored"] }
bytes="1.1.0"
futures="0.3.19"
actix="0.12"
ldap3 = "0.9"


精彩评论(0)

0 0 举报