Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Add support for the time crate #32

Merged
merged 2 commits into from Nov 19, 2020
Merged

Conversation

Weasy666
Copy link
Contributor

This commit puts chrono behind a feature flag and adds time as an alternative to it.

One thing to note is, that i had to exclude https://github.com/Weasy666/paseto/blob/1b97dcb99565807e43057e96470a03472ed9ac46/src/tokens/mod.rs#L51 from being build, when both features easy_token_chrono and easy_token_time are activated, as there is no way to guess which time crate should be used to parse the json time.

@CLAassistant
Copy link

CLAassistant commented Nov 13, 2020

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

@Mythra Mythra left a comment

Choose a reason for hiding this comment

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

This seems like great work so far! Thanks so much for putting in the work!

README.md Outdated Show resolved Hide resolved
examples/local-using-builders.rs Show resolved Hide resolved
examples/public-using-builder.rs Show resolved Hide resolved
src/tokens/builder.rs Outdated Show resolved Hide resolved
src/tokens/mod.rs Outdated Show resolved Hide resolved
src/tokens/mod.rs Outdated Show resolved Hide resolved
This commit puts `chrono` behind a feature flag and adds `time` as an alternative to it.
Copy link
Collaborator

@Mythra Mythra left a comment

Choose a reason for hiding this comment

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

Looking great so far! Thanks for all your work!

examples/local-using-builders.rs Show resolved Hide resolved
examples/public-using-builder.rs Show resolved Hide resolved
src/tokens/mod.rs Show resolved Hide resolved
@Weasy666
Copy link
Contributor Author

Ok...this should again be ready for a review. Hopefully the final one 😅🙃. Sorry for missing all the little things.

@Weasy666 Weasy666 requested a review from Mythra November 19, 2020 21:26
Copy link
Collaborator

@Mythra Mythra left a comment

Choose a reason for hiding this comment

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

No need to be sorry at all, thanks for your hard work! We'll merge this in for now, and I'll work on doing some things on my end and cutting a release!

@Mythra Mythra merged commit 7742bb6 into instructure:master Nov 19, 2020
@Weasy666
Copy link
Contributor Author

You are welcome. And happy to hear that.

@frederikbosch
Copy link
Contributor

frederikbosch commented Dec 8, 2020

Good work on this PR! I am a happy user of the lib and hope a new version can be released. Would that be an option?

@Mythra
Copy link
Collaborator

Mythra commented Dec 8, 2020

Hey @frederikbosch ,

Yep I'm getting to it, unfortunately have had some other things pop up first. But I'll schedule for some time for it, at the latest I'd expect this weekend.

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

Successfully merging this pull request may close these issues.

None yet

4 participants