Minor Cargo.toml questions

⚓ Rust    📅 2026-01-28    👤 surdeus    👁️ 1      

surdeus

Info

This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Minor Cargo.toml questions

Minor issues:

  1. Is it possible to have Cargo build a Linux target with a name "example.fcgi"? I have to rename after each build. I don't see a way to set the suffix.

  2. When generating multple [bin] targets, is there any way to set a description for each target?

[[bin]]
name = "uploadterrain"           # The name of the target.
path = "src/server/uploadterrain.rs"    # The source file of the target.
# description = "This becomes uploadterrain.fcgi and runs on an Apache server under mod_fcgid"

Can't use description there.

I suspect the answer to both is "no".

3 posts - 3 participants

Read full topic

🏷️ Rust_feed