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

feat: re-export external types from the API as part of the API #923

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

woshilapin
Copy link
Contributor

Today, all users of transit_model can't depend only on transit_model in their Cargo.toml because if one of the API returns a NaiveDate, or any Idx, the use basically needs to also import chrono and typed_index_collection. On top of that, it must find and import the exact same version of the dependency that the one declared in transit_model (or else, might face compilation errors).

Let's be more explicit on the API we expose. Note that I did not make an exhaustive research of all the things that we must re-export, only a brief dive to catch most of them. It's a step forward, might not be a perfect step though 🤷

pbench
pbench previously approved these changes Sep 26, 2023
@woshilapin woshilapin force-pushed the expose-typed-index-collection branch 4 times, most recently from 7947864 to 5e8094a Compare September 28, 2023 13:50
@ArnaudOggy ArnaudOggy removed their request for review October 30, 2023 09:04
@woshilapin
Copy link
Contributor Author

Fell free to move forward or close this PR. Since I won't be working on it anymore, I might close it if nothing happened at some point in the future.

@datanel datanel force-pushed the expose-typed-index-collection branch from 5e8094a to 10c35a7 Compare December 12, 2023 07:43
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.

3 participants