Introduce a ContextBuilder struct (#3698)

The way to create a Context is now rather burdensome, users have to
create and import a bunch of things just to get a Context.  So let's
introduce a builder.

Notice that the builder can only produce an open context, if the
context can not be opened it is dropped.  This is on purpose, the
Context itself can become RAII again at some point by doing this.
Only the FFI needs to have the concept of an open and a closed
Context.
This commit is contained in:
Floris Bruynooghe
2022-11-04 21:23:06 +01:00
committed by GitHub
parent 053c9372cb
commit 3150d2b94b
2 changed files with 152 additions and 0 deletions

View File

@@ -31,6 +31,8 @@
- Rust: Introduce a ContextBuilder #3698
### Changes
- allow sender timestamp to be in the future, but not too much