Skip to content
This repository has been archived by the owner on Jun 2, 2020. It is now read-only.

Remove export! macro. #336

Merged
merged 1 commit into from
Jul 11, 2019
Merged

Remove export! macro. #336

merged 1 commit into from
Jul 11, 2019

Conversation

peterhuene
Copy link
Owner

This commit removes the export! macro from azure-functions.

The macro was previously used to declare the given modules as well as generate
a FUNCTIONS constant passed to the main function.

Unfortunately because the modules were being defined dynamically, syntax errors
in the function source files would mean a completely undiagnosable error
message would be emitted by the compiler pointing at the export! macro.

The fix is to remove the export! macro entirely and implement a more
sophisticated cargo func new that relies on no macro implementations.

Fixes #335.

This commit removes the `export!` macro from `azure-functions`.

The macro was previously used to declare the given modules as well as generate
a `FUNCTIONS` constant passed to the main function.

Unfortunately because the modules were being defined dynamically, syntax errors
in the function source files would mean a completely undiagnosable error
message would be emitted by the compiler pointing at the `export!` macro.

The fix is to remove the `export!` macro entirely and implement a more
sophisticated `cargo func new` that relies on no macro implementations.

Fixes #335.
@peterhuene peterhuene added this to the 0.10.0 milestone Jul 11, 2019
@cla-bot cla-bot bot added the cla-signed The CLA has been signed by the contributor. label Jul 11, 2019
@peterhuene peterhuene added the breaking change The resolution to the issue will be considered a breaking change. label Jul 11, 2019
@peterhuene peterhuene merged commit 02dfd6c into dev Jul 11, 2019
@peterhuene peterhuene deleted the remove-export-macro branch July 11, 2019 06:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
breaking change The resolution to the issue will be considered a breaking change. cla-signed The CLA has been signed by the contributor.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant