fix #23: separate modules for endpoints and framework #24
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've reorganized the root of the repo. Previously there were two kinds of root modules: modules for particular Cloudflare endpoints (e.g. DNS or WorkersKV) and modules for the fundamental API framework (e.g. response, apiclient, auth).
This PR restructures the root of the crate so there are only two root modules:
framework
andendpoints
.Before:
After:
This will make it much more clear for contributors where their code should go. Are you adding a new endpoint?
endpoints
module. Are you changing the underlying API framework?framework
module.I've already integrated these changes into a branch of tunnelmon, and it was very straightforward.