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

Split crate #15

Open
Flowneee opened this issue Jul 22, 2024 · 0 comments
Open

Split crate #15

Flowneee opened this issue Jul 22, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Flowneee
Copy link
Owner

Currently project consist of 2 crates - main (okapi-operation) and proc-macro (okapi-operation-macro). I think it is good idea to split it into multiple crates

  • -core: core types and traits (like ToResponses, ToMediaTypes) + impls for framework-specific types (like axum::extract::Json) under feature flags (because of orphanage rules)
  • -<framework>: additional framework-specific things, for example for axum it could be Router replacement;
  • -macro: proc-macro crate as is + framework-specific features under feature flags
  • top-level crate: gather and expose all other crates with framework-specific feature under feature flags
@Flowneee Flowneee self-assigned this Jul 22, 2024
@Flowneee Flowneee added the enhancement New feature or request label Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant