summaryrefslogtreecommitdiffstats
path: root/openpgp/src/macros.rs
AgeCommit message (Collapse)Author
2023-09-26openpgp: More ergonomic and robust interface to zero stacks.Justus Winter
- This is only effective if the value is computed by a function that is never inlined. Add a macro that takes care of that.
2022-12-23Port to Rust Edition 2021.Justus Winter
2022-11-11openpgp: Allow tracer to be used just for tracing.Neal H. Walfield
- The `tracer` macro declares a local macro, `t`, that can be used to show additional tracing information. - It is useful to just show that a function has been entered. - Don't require that `t` be used.
2022-07-04buffered-reader, openpgp: Fix macro's doctests.Justus Winter
- Previously, the doctests for the macros were not run, and hence not tested. Fix the few issues that came up when Rust 1.62 started running doctests. - We cannot test the macros in doctests, because the macros are not public. Add equivalent unit tests instead. - Fixes #893.
2022-07-04openpgp: Drop unnecessary trailing semicolon.Justus Winter
2021-10-28net, openpgp: Fix private documentation.Nora Widdecke
2020-12-10openpgp: Add remaining assert_send_and_sync! calls.Azul
- See #615.
2020-12-08openpgp: Tweak the assert_send_and_sync macro.Justus Winter
- Declare trait bounds using a where clause. It looks a bit odd if there is no bound, but not worse than before.
2020-12-08openpgp: Allow dangling `,` in assert_send_and_sync! calls.Azul
2020-12-08openpgp: Use parens for assert_send_and_sync!.Azul
2020-12-08openpgp: Allow generic types in assert_send_and_sync!.Azul
- Use generics and the anonmymous lifetime in `assert_send_and_sync!`. - See 627.
2020-12-08openpgp: Ensure public types are Send and Sync.Azul
- See #627.
2020-10-26openpgp: Use std::matches! instead of custom destructures_to macroIgor Matuszewski
2020-10-20openpgp: Fix indentation.Justus Winter
- Correctly handle negative indentation levels.
2020-03-31openpgp: Add a replacement note to destructures_to!Igor Matuszewski
2019-10-25rfc2822,openpgp: Move rfc2822 crate to be a private mod in openpgpNeal H. Walfield
- The rfc2822 crate doesn't implement all of RFC 2822. Moreover, it includes a number of extensions. This makes rfc2822 a misnomer. - RFC 2822 is actually obsoleted by RFC 5322. This means that if we ever add support for RFC 5322, it will be an even worse misnomer. - Move the whole crate into the openpgp crate. Note: we don't directly export the API; it is only used internally by packet::userid. - Closes #279.
2019-07-15Prepare for Rust 2018.Justus Winter
- This is the result of running `cargo fix --edition`, with some manual adjustments. - The vast majority of changes merely qualify module paths with 'crate::'. - Two instances of adding an anonymous pattern to a trait's function. - `async` is a keyword in Rust 2018, and hence it needs to be escaped (e.g. in the case of the net::r#async module). - The manual adjustments were needed due to various shortcomings of the analysis employed by `cargo fix`, e.g. unexpanded macros, procedural macros, lalrpop grammars.
2019-03-26openpgp: Move destructures_to macro to macros.rsNeal H. Walfield
2019-01-29openpgp: Add a macro to profile a block of code.Neal H. Walfield
- A macro to make profiling a few bits of code straightforward.
2018-10-09openpgp: Make tracing less invasive.Neal H. Walfield
- Add a few macros to simplify tracing. - Use them.