-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add a runtime for server logic #258
Conversation
fn endpoints(&self) -> #vec<#box_<dyn conjure_http::server::#endpoint_name<I, O> + Sync + Send>> | ||
fn endpoints( | ||
&self, | ||
_: &conjure_http::private::Arc<conjure_http::server::ConjureRuntime>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Conjure-generated server logic just ignores the runtime for now. When #245 is implemented it'll be able to take advantage of the runtime as well.
where | ||
I: IntoIterator, | ||
I::Item: AsRef<str>; | ||
} | ||
|
||
/// A decoder which converts a single value using its [`FromStr`] implementation. | ||
pub enum FromStrDecoder {} | ||
pub struct FromStrDecoder<'a> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if we'd ever want to pull dynamic logic for this kind of thing but I'm future proofing just in case.
I'll be doing the same thing for clients in a separate PR. |
Generate changelog in
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
While the
ConjureRuntime
is currently empty, it will enable us to support things like dynamic configuration of serializable encodings and custom request body limits.cc #182