frinyvonnick / gitmoji-changelog

A changelog generator for gitmoji 😜
https://www.npmjs.com/package/gitmoji-changelog
MIT License
388 stars 49 forks source link

✨ Support workspace Cargo.toml with package section #267

Open OlivierLDff opened 1 year ago

OlivierLDff commented 1 year ago

This commit also introduce:

c4th4r5y5 commented 1 year ago

Hi @OlivierLDff

Are you aware of any other format distinction for the toml in Rust?

I've dealt with a similar issue when trying to implement the Python preset (https://github.com/frinyvonnick/gitmoji-changelog/pull/265). It might be worth it to reuse the deep search logic i've put in there to cover more cases that might arise if the format changes.

(For python, I simply do a top-down search of the expected key name and take the first values found. This is somewhat future proof but should require an explicit warning in the readme imo)

OlivierLDff commented 1 year ago

In rust package are either a top key of the cargo.toml are a workspace package, I never saw anything else and I'm not aware if something else exists

OlivierLDff commented 1 year ago

Any news?