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

Extract logic into a library. #68

Merged
merged 2 commits into from
Sep 7, 2022
Merged

Extract logic into a library. #68

merged 2 commits into from
Sep 7, 2022

Conversation

calavera
Copy link
Contributor

@calavera calavera commented Sep 7, 2022

This change moves the main codebase into a library to help with reusability.

This way the adapter can be used independently of the main app.

This change also replaces the log crate with tracing, which is more widely used in the lambda echosystem.

Signed-off-by: David Calavera [email protected]

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

This change move the main codebase into a library to help with reusability.

This way the adapter can be used independently of the main app.

This change also replaces the `log` crate with `tracing`, which is more widely used in the lambda echosystem.

Signed-off-by: David Calavera <[email protected]>
@bnusunny
Copy link
Contributor

bnusunny commented Sep 7, 2022

Thanks very much for refactoring the logic into lib.rs. Just a few minor things to take care of.

src/lib.rs Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
rustfmt.toml Outdated Show resolved Hide resolved
Signed-off-by: David Calavera <[email protected]>
Copy link
Contributor

@bnusunny bnusunny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bnusunny bnusunny merged commit aff16a6 into awslabs:main Sep 7, 2022
@calavera calavera deleted the library branch September 7, 2022 16:48
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.

2 participants