Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate helpful errors from dotenv! macro #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Plecra
Copy link
Contributor

@Plecra Plecra commented Jul 14, 2020

I accidentally deleted the repo for #53, so I had to recreate this PR. It uses the compile_error macro to create spanned errors in case the macro fails, providing better UX.

Closes #9

allan2 referenced this pull request in allan2/dotenvy Feb 28, 2022
The following is also duplicated in the changelog.

- `dotenv` crate forked as `dotenvy`
- `dotenv_codegen` forked as `dotenvy_codgen`
- `dotenv_codegen_implementation` forked as `dotenvy_codegen_impl`
- Crate description for dotenvy_codegen
- Crate description for dotenvy_codgen_impl
- New language in README
- MIT license badge in README
- Generate helpful errors from dotenv! macro (full merge of [dotenv-rs/dotenv #58](https://github.com/dotenv-rs/dotenv/pull/57/files#))

- replaced deprecated `std::env_home:dir()` with `dirs:home_dir`
- Better handling of `home_dir` (merge of [dotenv-rs/dotenv #62](https://github.com/dotenv-rs/dotenv/pull/62/files#))
- assertions dealing with `Result` (based on [dotenv-rs/dotenv #57](https://github.com/dotenv-rs/dotenv/pull/57/files#))
- upgraded clap in `dotenvy` bin from v2 to v3.1 (covers [dotenv-rs/dotenv #76](https://github.com/dotenv-rs/dotenv/pull/76/files))

- example folder. The simple example has been moved to the README.
- `extern`
- unnecessary `use` statements in doc examples
@hoijui
Copy link

hoijui commented Mar 7, 2022

This is included in the new repo:
https://github.com/allan2/dotenvy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nicer parse error messages in dotenv! macro
2 participants