-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
Simple API for prototyping #449
Conversation
I like the direction of this, I've also been thinking about how we can "scale down" the minimum required API examples to get something useful. Some stream-of-consciousness thoughts:
|
A default feature means it's there unless you specifically opt out, so I'm not sure there's an accessibility cost. It is a pretty marginal dependency cost, though...
Haven't done a principled review. I think external is more correct in the general case because it ensures the caller doesn't have to jump through hoops to control executor use, but it's a minor footgun.
Associated functions, you mean?
Nope! :D
Default web trust roots are currently set in |
I did mean associated functions. If we have those and default web trust roots, this would be pretty good. We could potentially iterate on internal vs external driver spawning from there. Personally I'm always a bit on the fence about #451 (because I feel Mozilla is a better steward for my default trust roots than some of the OS vendors), but it probably makes sense for this. |
The big problem with webpki-roots is not that it's less trustworthy, but that it doesn't provide updates without updating the entire program; I think most projects can't be expected to distribute updates as frequently and reliably as Firefox does. |
Ah, very good point. |
Inspiration for simple API from quiche's README: https://github.com/cloudflare/quiche |
Closing in favor of #1250. |
We've sought to expose an extremely flexible API, which is as a consequence somewhat complicated to get started with. This PR presents a straw proposal for an optional alternative API that's much friendlier and less versatile.
Drawbacks include:
Are there ways we can improve on those? If not, is this worth doing at all?