utoipa
utoipa copied to clipboard
Multiple authors in env CARGO_PKG_AUTHORS are separated by colon instead of comma
Generation of contact from cargo environment in file utoipa/utoipa-gen/src/openapi/info.rs splits authors environment variable on comma. The line: if let Some((name, email)) = get_parsed_author(authors.split(',').into_iter().next()) { but according to cargo doc authors in env are seperated by colon.
For example:
CARGO_PKG_AUTHORS=Author1 <[email protected]>:Author2 <[email protected]>
Hmm.. Okay, need to take a look at that, when I get time, I dont remember anymore why I implemented the separation by comma back then. Thanks for reporting.