mail client (IMAP/SMTP)
git clone https://git.lucas.co/cce-mail.git
src/wpe/mod.rs (886B)
1 //! Embedded WPE WebKit for HTML mail (feature `wpe`, on by default).
2 //!
3 //! `subclass.rs`, `glib_source.rs`, `input.rs` and `wrapper.h` are verbatim
4 //! copies of cce-browser's `src/wpe/` — the proven embedding pattern (see
5 //! that crate's WPE-PORT.md). Keep them byte-identical to ease a future
6 //! extraction into a shared crate; anything mail-specific belongs in
7 //! `host.rs`, which replaces the browser's tabbed `WebKitHost` with the
8 //! single sandboxed [`host::MailWebView`].
9
10 pub mod ffi {
11 #![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, dead_code)]
12 include!(concat!(env!("OUT_DIR"), "/wpe_bindings.rs"));
13 }
14
15 mod glib_source;
16 mod host;
17 mod input;
18 // dead_code: the copy stays verbatim; mail never pastes into a page, so the
19 // browser's clipboard-sync direction goes unused here.
20 #[allow(dead_code)]
21 mod subclass;
22
23 pub use host::MailWebView;