Skip to content

Extract logic into a library.#68

Merged
bnusunny merged 2 commits intoaws:mainfrom
calavera:library
Sep 7, 2022
Merged

Extract logic into a library.#68
bnusunny merged 2 commits intoaws:mainfrom
calavera:library

Conversation

@calavera
Copy link
Copy Markdown
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 david.calavera@gmail.com

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

@calavera calavera requested a review from bnusunny September 7, 2022 02:22
@calavera calavera force-pushed the library branch 2 times, most recently from d2eba3a to 1ebed5a Compare September 7, 2022 03:35
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 <david.calavera@gmail.com>
@bnusunny
Copy link
Copy Markdown
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.

Comment thread src/lib.rs
Comment thread src/lib.rs Outdated
Comment thread rustfmt.toml Outdated
Signed-off-by: David Calavera <david.calavera@gmail.com>
Copy link
Copy Markdown
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 aws: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